Replace __attribute references with __attribute__
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 20 Apr 2009 16:08:46 +0000 (11:08 -0500)
committerWolfgang Denk <wd@denx.de>
Mon, 27 Apr 2009 23:01:39 +0000 (01:01 +0200)
__attribute__ follows gcc's documented syntax and is generally more
common than __attribute.  This change is only asthetic and should not
affect functionality.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
13 files changed:
cpu/arm920t/at91rm9200/ether.c
cpu/arm920t/s3c24x0/usb_ohci.h
cpu/mips/au1x00_usb_ohci.h
cpu/mpc5xxx/usb_ohci.h
cpu/mpc86xx/cpu.c
cpu/ppc4xx/usb_ohci.h
drivers/mmc/mmc.c
drivers/usb/host/ohci.h
drivers/usb/musb/musb_core.h
include/asm-m68k/types.h
include/asm-ppc/types.h
include/asm-sparc/types.h
net/eth.c

index b00b948ee86111adf35648ead0b4aaaa34af95f2..d9d33a23208e7e744662eabd3012c1753936d3cf 100644 (file)
@@ -53,10 +53,11 @@ typedef struct {
 #if defined(CONFIG_CMD_NET)
 
 /* alignment as per Errata #11 (64 bytes) is insufficient! */
-rbf_t rbfdt[RBF_FRAMEMAX] __attribute((aligned(512)));
+rbf_t rbfdt[RBF_FRAMEMAX] __attribute__((aligned(512)));
 rbf_t *rbfp;
 
-unsigned char rbf_framebuf[RBF_FRAMEMAX][RBF_FRAMELEN] __attribute((aligned(4)));
+unsigned char rbf_framebuf[RBF_FRAMEMAX][RBF_FRAMELEN]
+       __attribute__((aligned(4)));
 
 /* structure to interface the PHY */
 AT91S_PhyOps PhyOps;
index 3af5fca804aaa6a3acb90e6e5c81b8d29fea4ad7..8e093fbfc640433eb871910d9b46c000153f826e 100644 (file)
@@ -55,7 +55,7 @@ struct ed {
 
        struct usb_device *usb_dev;
        __u32 unused[3];
-} __attribute((aligned(16)));
+} __attribute__((aligned(16)));
 typedef struct ed ed_t;
 
 
@@ -112,7 +112,7 @@ struct td {
        __u32 data;
 
        __u32 unused2[2];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 typedef struct td td_t;
 
 #define OHCI_ED_SKIP   (1 << 14)
@@ -130,7 +130,7 @@ struct ohci_hcca {
        __u16   pad1;                   /* set to 0 on each frame_no change */
        __u32   done_head;              /* info returned for an interrupt */
        u8      reserved_for_hc[116];
-} __attribute((aligned(256)));
+} __attribute__((aligned(256)));
 
 
 /*
@@ -172,7 +172,7 @@ struct ohci_regs {
                __u32   status;
                __u32   portstatus[MAX_ROOT_PORTS];
        } roothub;
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 
 /* OHCI CONTROL AND STATUS REGISTER MASKS */
index 631ef0a22785866f3720ec1adb1b154a0ebf0ef3..bb9f351099eacf7921f7aec4ce48fd934ec906b9 100644 (file)
@@ -56,7 +56,7 @@ struct ed {
 
        struct usb_device *usb_dev;
        __u32 unused[3];
-} __attribute((aligned(16)));
+} __attribute__((aligned(16)));
 typedef struct ed ed_t;
 
 
@@ -114,7 +114,7 @@ struct td {
        __u32 data;
 
        __u32 unused2[2];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 typedef struct td td_t;
 
 #define OHCI_ED_SKIP   (1 << 14)
@@ -132,7 +132,7 @@ struct ohci_hcca {
        __u16   pad1;                   /* set to 0 on each frame_no change */
        __u32   done_head;              /* info returned for an interrupt */
        u8              reserved_for_hc[116];
-} __attribute((aligned(256)));
+} __attribute__((aligned(256)));
 
 
 /*
@@ -174,7 +174,7 @@ struct ohci_regs {
                __u32   status;
                __u32   portstatus[MAX_ROOT_PORTS];
        } roothub;
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 
 /* OHCI CONTROL AND STATUS REGISTER MASKS */
index 884f1d5e519cf3266279b12de7708ab5c42ca4b9..6eedbdd1d9f74efd4037978f187a1119a422c0e2 100644 (file)
@@ -56,7 +56,7 @@ struct ed {
 
        struct usb_device *usb_dev;
        __u32 unused[3];
-} __attribute((aligned(16)));
+} __attribute__((aligned(16)));
 typedef struct ed ed_t;
 
 
@@ -113,7 +113,7 @@ struct td {
        __u32 data;
 
        __u32 unused2[2];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 typedef struct td td_t;
 
 #define OHCI_ED_SKIP   (1 << 14)
@@ -136,7 +136,7 @@ struct ohci_hcca {
 #endif
        __u32   done_head;              /* info returned for an interrupt */
        u8              reserved_for_hc[116];
-} __attribute((aligned(256)));
+} __attribute__((aligned(256)));
 
 
 /*
@@ -178,7 +178,7 @@ struct ohci_regs {
                __u32   status;
                __u32   portstatus[MAX_ROOT_PORTS];
        } roothub;
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 
 /* OHCI CONTROL AND STATUS REGISTER MASKS */
index c41616d2fb024e830242265928e3d52d66ed9930..653a137396abf34d5dcd0351d67dfc7c5d25bca8 100644 (file)
@@ -40,7 +40,7 @@ __board_reset(void)
 {
        /* Do nothing */
 }
-void board_reset(void) __attribute((weak, alias("__board_reset")));
+void board_reset(void) __attribute__((weak, alias("__board_reset")));
 
 
 int
index 706e05ea2154d3e1db8196d826f484d1d3394154..2c3dc4f99ca7a9c8c45463336c14752bdad9aacb 100644 (file)
@@ -55,7 +55,7 @@ struct ed {
 
        struct usb_device *usb_dev;
        __u32 unused[3];
-} __attribute((aligned(16)));
+} __attribute__((aligned(16)));
 typedef struct ed ed_t;
 
 /* TD info field */
@@ -111,7 +111,7 @@ struct td {
        __u32 data;
 
        __u32 unused2[2];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 typedef struct td td_t;
 
 #define OHCI_ED_SKIP   (1 << 14)
@@ -134,7 +134,7 @@ struct ohci_hcca {
 #endif
        __u32 done_head;        /* info returned for an interrupt */
        u8 reserved_for_hc[116];
-} __attribute((aligned(256)));
+} __attribute__((aligned(256)));
 
 /*
  * Maximum number of root hub ports.
@@ -175,7 +175,7 @@ struct ohci_regs {
                __u32 status;
                __u32 portstatus[MAX_ROOT_PORTS];
        } roothub;
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 /* OHCI CONTROL AND STATUS REGISTER MASKS */
 
index 96186d92fe04625eab9774fa2c02cbbdb4e72193..7791c3896e98a00461bda3d4f18bb55d599bad82 100644 (file)
@@ -896,8 +896,8 @@ static int __def_mmc_init(bd_t *bis)
        return -1;
 }
 
-int cpu_mmc_init(bd_t *bis) __attribute((weak, alias("__def_mmc_init")));
-int board_mmc_init(bd_t *bis) __attribute((weak, alias("__def_mmc_init")));
+int cpu_mmc_init(bd_t *bis) __attribute__((weak, alias("__def_mmc_init")));
+int board_mmc_init(bd_t *bis) __attribute__((weak, alias("__def_mmc_init")));
 
 void print_mmc_devices(char separator)
 {
index a547337e7f3cc50111e72cb160877430844bfa5b..79aa79dc65ac931a45f7197965cf7f9d4edcade2 100644 (file)
@@ -101,7 +101,7 @@ struct ed {
        struct usb_device *usb_dev;
        void *purb;
        __u32 unused[2];
-} __attribute((aligned(16)));
+} __attribute__((aligned(16)));
 typedef struct ed ed_t;
 
 
@@ -161,7 +161,7 @@ struct td {
        __u32 data;
 
        __u32 unused2[2];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 typedef struct td td_t;
 
 #define OHCI_ED_SKIP   (1 << 14)
@@ -184,7 +184,7 @@ struct ohci_hcca {
 #endif
        __u32   done_head;              /* info returned for an interrupt */
        u8              reserved_for_hc[116];
-} __attribute((aligned(256)));
+} __attribute__((aligned(256)));
 
 
 /*
@@ -228,7 +228,7 @@ struct ohci_regs {
                __u32   status;
                __u32   portstatus[CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS];
        } roothub;
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 /* Some EHCI controls */
 #define EHCI_USBCMD_OFF                0x20
index 2597c5fc7ec9d68587e9e8501f602572dc80fcdb..b81c5365ec1d72bf5daa52b28c77f77c4df29969 100644 (file)
@@ -97,7 +97,7 @@ struct musb_regs {
                u8      rxhubaddr;
                u8      rxhubport;
        } tar[16];
-} __attribute((aligned(32)));
+} __attribute__((aligned(32)));
 
 /*
  * MUSB Register bits
index 44b4ca5bd5a77f1f21c60bb4265e45e8dc754697..3ffcab20df95ec01db49c81eda331ecc9bd5f0c0 100644 (file)
@@ -21,7 +21,7 @@ __extension__ typedef unsigned long long __u64;
 
 typedef struct {
        __u32 u[4];
-} __attribute((aligned(16))) vector128;
+} __attribute__((aligned(16))) vector128;
 
 #ifdef __KERNEL__
 /*
index 864391f03bd12391e215b625f544efbec4fe8bcd..b27a6b753a06cb02f55d187badc8e2f915af761d 100644 (file)
@@ -21,7 +21,7 @@ __extension__ typedef unsigned long long __u64;
 
 typedef struct {
        __u32 u[4];
-} __attribute((aligned(16))) vector128;
+} __attribute__((aligned(16))) vector128;
 
 #ifdef __KERNEL__
 /*
index 2cf974a7a9cf5e805f1d1937a6c20ca2b26a3fc9..0a8a26c5976ebe1d6c94a8b9cb4bb4c02b2db52c 100644 (file)
@@ -42,7 +42,7 @@ typedef unsigned long long __u64;
 
 typedef struct {
        __u32 u[4];
-} __attribute((aligned(16))) vector128;
+} __attribute__((aligned(16))) vector128;
 
 #ifdef __KERNEL__
 /*
index 4bbf84b6bb028c2d01ce644b83dd020bc2b1e4be..c6fa5b94318cad1e4d3466397033455360205d9c 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -68,8 +68,8 @@ static int __def_eth_init(bd_t *bis)
 {
        return -1;
 }
-int cpu_eth_init(bd_t *bis) __attribute((weak, alias("__def_eth_init")));
-int board_eth_init(bd_t *bis) __attribute((weak, alias("__def_eth_init")));
+int cpu_eth_init(bd_t *bis) __attribute__((weak, alias("__def_eth_init")));
+int board_eth_init(bd_t *bis) __attribute__((weak, alias("__def_eth_init")));
 
 extern int mv6436x_eth_initialize(bd_t *);
 extern int mv6446x_eth_initialize(bd_t *);