summaryrefslogtreecommitdiff
path: root/include/configs/MVBLUE.h
diff options
context:
space:
mode:
authorShinya Kuribayashi <skuribay@ruby.dti.ne.jp>2009-02-22 14:24:11 +0900
committerWolfgang Denk <wd@denx.de>2009-02-22 21:15:43 +0100
commit14209ac13ff631e36c9a9dd426c59c2e2f5dab00 (patch)
tree6fad477ce619a0a779263107ab312e5cc2d62084 /include/configs/MVBLUE.h
parent16bdc39f7555e23c76f1dcd3da96e7bbce839241 (diff)
downloadu-boot-imx-14209ac13ff631e36c9a9dd426c59c2e2f5dab00.zip
u-boot-imx-14209ac13ff631e36c9a9dd426c59c2e2f5dab00.tar.gz
u-boot-imx-14209ac13ff631e36c9a9dd426c59c2e2f5dab00.tar.bz2
MIPS: Fix GCC-4.2 'discards qualifiers from pointer target type' warnings
Compiling dbau1x00 and gth2 boards with GCC-4.2, you would see new warnings like this: skuribay@ubuntu:u-boot.git$ ./MAKEALL dbau1000 Configuring for dbau1x00 board... au1x00_eth.c: In function 'au1x00_send': au1x00_eth.c:158: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type au1x00_eth.c: In function 'au1x00_recv': au1x00_eth.c:211: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type au1x00_eth.c: In function 'au1x00_init': au1x00_eth.c:252: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type au1x00_eth.c: In function 'au1x00_recv': au1x00_eth.c:211: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type au1x00_eth.c: In function 'au1x00_init': au1x00_eth.c:252: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type au1x00_eth.c: In function 'au1x00_send': au1x00_eth.c:158: warning: passing argument 1 of 'virt_to_phys' discards qualifiers from pointer target type We're passing a volatile pointer to a function which is expecting a non- volatile pointer. That's potentially dangerous, so gcc warns about it. Confirmed with ELDK 4.2 (GCC 4.2.2) and Sourcey G++ 4.2 (GCC 4.2.3). To fix this, we add a volatile attribute to the argument in question. The virt_to_phys function in Linux kernel also does the same thing. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'include/configs/MVBLUE.h')
0 files changed, 0 insertions, 0 deletions