In file included from ./include/linux/kernel.h:14:0, from ./include/linux/delay.h:22, from drivers/mmc/host/bcm2835-sdhost.c:35:
drivers/mmc/host/bcm2835-sdhost.c: In function 'log_init':
./include/linux/kern_levels.h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
./include/linux/printk.h:309:9: note: in definition of macro 'pr_printk_hash'
printk(level pr_fmt(format), ##__VA_ARGS__)
^~~~~
./include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
#define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~
./include/linux/printk.h:333:17: note: in expansion of macro 'KERN_INFO'
pr_printk_hash(KERN_INFO, fmt, ##__VA_ARGS__) ^~~~~~~~~
drivers/mmc/host/bcm2835-sdhost.c:249:3: note: in expansion of macro 'pr_info'
pr_info("sdhost: log_buf @ %p (%x)\n",
^~~~~~~
drivers/mmc/host/bcm2835-sdhost.c:249:35: note: format string is defined here
pr_info("sdhost: log_buf @ %p (%x)\n", ~^ %llx
drivers/mmc/host/bcm2835-sdhost.c: In function 'bcm2835_sdhost_dma_complete':
drivers/mmc/host/bcm2835-sdhost.c:530:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
log_event("DMA<", (u32)host->data, bcm2835_sdhost_read(host, SDHSTS)); ^
[SNIP]
Compiling Bionic 4.15 linux-raspi2 yields:
In file included from ./include/ linux/kernel. h:14:0,
from ./include/ linux/delay. h:22,
from drivers/ mmc/host/ bcm2835- sdhost. c:35: mmc/host/ bcm2835- sdhost. c: In function 'log_init': linux/kern_ levels. h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] linux/printk. h:309:9: note: in definition of macro 'pr_printk_hash' linux/kern_ levels. h:14:19: note: in expansion of macro 'KERN_SOH'
^~ ~~~~~~ linux/printk. h:333:17: note: in expansion of macro 'KERN_INFO' hash(KERN_ INFO, fmt, ##__VA_ARGS__)
^~~~ ~~~~~ mmc/host/ bcm2835- sdhost. c:249:3: note: in expansion of macro 'pr_info' mmc/host/ bcm2835- sdhost. c:249:35: note: format string is defined here
~ ^
% llx mmc/host/ bcm2835- sdhost. c: In function 'bcm2835_ sdhost_ dma_complete' : mmc/host/ bcm2835- sdhost. c:530:20: warning: cast from pointer to integer of different size [-Wpointer- to-int- cast] sdhost_ read(host, SDHSTS));
^
drivers/
./include/
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
./include/
printk(level pr_fmt(format), ##__VA_ARGS__)
^~~~~
./include/
#define KERN_INFO KERN_SOH "6" /* informational */
./include/
pr_printk_
drivers/
pr_info("sdhost: log_buf @ %p (%x)\n",
^~~~~~~
drivers/
pr_info("sdhost: log_buf @ %p (%x)\n",
drivers/
drivers/
log_event("DMA<", (u32)host->data, bcm2835_
[SNIP]