summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'cpu')
-rw-r--r--cpu/arm920t/at91rm9200/ether.c5
-rw-r--r--cpu/arm920t/s3c24x0/usb_ohci.h8
-rw-r--r--cpu/ixp/npe/IxFeatureCtrl.c2
-rw-r--r--cpu/mips/au1x00_usb_ohci.h8
-rw-r--r--cpu/mpc5xxx/usb_ohci.h8
-rw-r--r--cpu/mpc83xx/fdt.c4
-rw-r--r--cpu/mpc86xx/cpu.c2
-rw-r--r--cpu/ppc4xx/usb_ohci.h8
8 files changed, 23 insertions, 22 deletions
diff --git a/cpu/arm920t/at91rm9200/ether.c b/cpu/arm920t/at91rm9200/ether.c
index b00b948..d9d33a2 100644
--- a/cpu/arm920t/at91rm9200/ether.c
+++ b/cpu/arm920t/at91rm9200/ether.c
@@ -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;
diff --git a/cpu/arm920t/s3c24x0/usb_ohci.h b/cpu/arm920t/s3c24x0/usb_ohci.h
index 3af5fca..8e093fb 100644
--- a/cpu/arm920t/s3c24x0/usb_ohci.h
+++ b/cpu/arm920t/s3c24x0/usb_ohci.h
@@ -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 */
diff --git a/cpu/ixp/npe/IxFeatureCtrl.c b/cpu/ixp/npe/IxFeatureCtrl.c
index e02aabf..2e196a1 100644
--- a/cpu/ixp/npe/IxFeatureCtrl.c
+++ b/cpu/ixp/npe/IxFeatureCtrl.c
@@ -317,7 +317,7 @@ ixFeatureCtrlProductIdRead ()
/* Use ARM instruction to move register0 from coprocessor to ARM register */
#ifndef __wince
- __asm("mrc p15, 0, %0, cr0, cr0, 0;" : "=r"(pdId) :);
+ __asm__("mrc p15, 0, %0, cr0, cr0, 0;" : "=r"(pdId) :);
#else
#ifndef IN_KERNEL
diff --git a/cpu/mips/au1x00_usb_ohci.h b/cpu/mips/au1x00_usb_ohci.h
index 631ef0a..bb9f351 100644
--- a/cpu/mips/au1x00_usb_ohci.h
+++ b/cpu/mips/au1x00_usb_ohci.h
@@ -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 */
diff --git a/cpu/mpc5xxx/usb_ohci.h b/cpu/mpc5xxx/usb_ohci.h
index 884f1d5..6eedbdd 100644
--- a/cpu/mpc5xxx/usb_ohci.h
+++ b/cpu/mpc5xxx/usb_ohci.h
@@ -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 */
diff --git a/cpu/mpc83xx/fdt.c b/cpu/mpc83xx/fdt.c
index 4cc9047..13443cb 100644
--- a/cpu/mpc83xx/fdt.c
+++ b/cpu/mpc83xx/fdt.c
@@ -41,8 +41,8 @@ void fdt_fixup_muram (void *blob)
data[0] = 0;
data[1] = QE_MURAM_SIZE - 2 * sizeof(unsigned long);
- do_fixup_by_path(blob, "/qe/muram/data-only", "reg",
- data, sizeof (data), 0);
+ do_fixup_by_compat(blob, "fsl,qe-muram-data", "reg",
+ data, sizeof (data), 0);
}
#endif
diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c
index c41616d..653a137 100644
--- a/cpu/mpc86xx/cpu.c
+++ b/cpu/mpc86xx/cpu.c
@@ -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
diff --git a/cpu/ppc4xx/usb_ohci.h b/cpu/ppc4xx/usb_ohci.h
index 706e05e..2c3dc4f 100644
--- a/cpu/ppc4xx/usb_ohci.h
+++ b/cpu/ppc4xx/usb_ohci.h
@@ -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 */