summaryrefslogtreecommitdiff
path: root/openwrt/package/linux/kernel-source
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-29 17:50:19 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-29 17:50:19 +0000
commit5068cd22d54de4e365ebcca0387027e9f7a57aaf (patch)
treed1d85e8a3d5dd989f01f480817050544e7097f07 /openwrt/package/linux/kernel-source
parent23770f95c361e40ceaaa54e8c3dfa6436b9c26fe (diff)
add some gcc 4.0 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@764 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/linux/kernel-source')
-rw-r--r--openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c2
-rw-r--r--openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c b/openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c
index 0b704d41b1..1b37c511e9 100644
--- a/openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c
+++ b/openwrt/package/linux/kernel-source/drivers/net/hnd/bcmutils.c
@@ -745,7 +745,7 @@ crc32(
/* handle bulk of data as 32-bit words */
pend = pdata + (nbytes & 0xfffffffc);
while (pdata < pend) {
- *tptr = *((ulong *)pdata)++;
+ *tptr = (*((ulong *)pdata))++;
CRC_INNER_LOOP(32, crc, tmp[0]);
CRC_INNER_LOOP(32, crc, tmp[1]);
CRC_INNER_LOOP(32, crc, tmp[2]);
diff --git a/openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c b/openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c
index 50ec33986d..2c9cb55c79 100644
--- a/openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c
+++ b/openwrt/package/linux/kernel-source/drivers/net/hnd/sbutils.c
@@ -136,7 +136,7 @@ sb_read_sbreg(void *sbh, volatile uint32 *sbr)
INTR_OFF(si, intr_val);
tmp = 1;
OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1);
- (uint32)sbr &= ~(1 << 11); /* mask out bit 11*/
+ sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/
}
val = R_REG(sbr);
@@ -170,7 +170,7 @@ sb_write_sbreg(void *sbh, volatile uint32 *sbr, uint32 v)
INTR_OFF(si, intr_val);
tmp = 1;
OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1);
- (uint32)sbr &= ~(1 << 11); /* mask out bit 11 */
+ sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/
}
if (si->bus == PCMCIA_BUS) {