lkml.org 
[lkml]   [2016]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] scsi: wd7000: print sector number as 64-bit
Hi,

[auto build test WARNING on scsi/for-next]
[also build test WARNING on v4.7-rc3 next-20160616]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/scsi-lpfc-avoid-harmless-comparison-warning/20160616-045453
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha

All warnings (new ones prefixed by >>):

drivers/scsi/wd7000.c: In function 'mail_out':
drivers/scsi/wd7000.c:915:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
any2scsi((unchar *) ogmbs[ogmb].scbptr, (int) scbptr);
^
drivers/scsi/wd7000.c: In function 'wd7000_queuecommand_lck':
drivers/scsi/wd7000.c:1117:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
any2scsi(scb->dataptr, (int) sgb);
^
drivers/scsi/wd7000.c:1121:4: warning: 'isa_page_to_bus' is deprecated [-Wdeprecated-declarations]
any2scsi(sgb[i].ptr, isa_page_to_bus(sg_page(sg)) + sg->offset);
^
In file included from include/linux/io.h:25:0,
from include/linux/irq.h:24,
from include/asm-generic/hardirq.h:12,
from arch/alpha/include/asm/hardirq.h:7,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from drivers/scsi/wd7000.c:170:
arch/alpha/include/asm/io.h:95:39: note: declared here
static inline dma_addr_t __deprecated isa_page_to_bus(struct page *page)
^
drivers/scsi/wd7000.c:1128:4: warning: 'isa_page_to_bus' is deprecated [-Wdeprecated-declarations]
any2scsi(scb->dataptr, isa_page_to_bus(sg_page(sg)) + sg->offset);
^
In file included from include/linux/io.h:25:0,
from include/linux/irq.h:24,
from include/asm-generic/hardirq.h:12,
from arch/alpha/include/asm/hardirq.h:7,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from drivers/scsi/wd7000.c:170:
arch/alpha/include/asm/io.h:95:39: note: declared here
static inline dma_addr_t __deprecated isa_page_to_bus(struct page *page)
^
drivers/scsi/wd7000.c: In function 'wd7000_diagnostics':
drivers/scsi/wd7000.c:1151:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
any2scsi(icb.ptr, (int) &buf);
^
drivers/scsi/wd7000.c: In function 'wd7000_adapter_reset':
drivers/scsi/wd7000.c:1236:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
any2scsi((unchar *) & (init_cmd.mailboxes), (int) &(host->mb));
^
In file included from include/linux/kernel.h:13:0,
from include/linux/delay.h:10,
from drivers/scsi/wd7000.c:168:
drivers/scsi/wd7000.c: In function 'wd7000_detect':
drivers/scsi/wd7000.c:1482:59: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dprintk("wd7000_detect: adapter allocated at 0x%x\n", (int) host);
^
include/linux/printk.h:114:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^
>> drivers/scsi/wd7000.c:1482:5: note: in expansion of macro 'dprintk'
dprintk("wd7000_detect: adapter allocated at 0x%x\n", (int) host);
^

vim +/dprintk +1482 drivers/scsi/wd7000.c

^1da177e Linus Torvalds 2005-04-16 1466 dprintk("ok!\n");
^1da177e Linus Torvalds 2005-04-16 1467
^1da177e Linus Torvalds 2005-04-16 1468 if (inb(iobase + ASC_INTR_STAT) == 1) {
^1da177e Linus Torvalds 2005-04-16 1469 /*
^1da177e Linus Torvalds 2005-04-16 1470 * We register here, to get a pointer to the extra space,
^1da177e Linus Torvalds 2005-04-16 1471 * which we'll use as the Adapter structure (host) for
^1da177e Linus Torvalds 2005-04-16 1472 * this adapter. It is located just after the registered
^1da177e Linus Torvalds 2005-04-16 1473 * Scsi_Host structure (sh), and is located by the empty
^1da177e Linus Torvalds 2005-04-16 1474 * array hostdata.
^1da177e Linus Torvalds 2005-04-16 1475 */
^1da177e Linus Torvalds 2005-04-16 1476 sh = scsi_register(tpnt, sizeof(Adapter));
^1da177e Linus Torvalds 2005-04-16 1477 if (sh == NULL)
^1da177e Linus Torvalds 2005-04-16 1478 goto err_release;
^1da177e Linus Torvalds 2005-04-16 1479
^1da177e Linus Torvalds 2005-04-16 1480 host = (Adapter *) sh->hostdata;
^1da177e Linus Torvalds 2005-04-16 1481
^1da177e Linus Torvalds 2005-04-16 @1482 dprintk("wd7000_detect: adapter allocated at 0x%x\n", (int) host);
^1da177e Linus Torvalds 2005-04-16 1483 memset(host, 0, sizeof(Adapter));
^1da177e Linus Torvalds 2005-04-16 1484
^1da177e Linus Torvalds 2005-04-16 1485 host->irq = configs[pass].irq;
^1da177e Linus Torvalds 2005-04-16 1486 host->dma = configs[pass].dma;
^1da177e Linus Torvalds 2005-04-16 1487 host->iobase = iobase;
^1da177e Linus Torvalds 2005-04-16 1488 host->int_counter = 0;
^1da177e Linus Torvalds 2005-04-16 1489 host->bus_on = configs[pass].bus_on;
^1da177e Linus Torvalds 2005-04-16 1490 host->bus_off = configs[pass].bus_off;

:::::: The code at line 1482 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2016-06-16 20:21    [W:0.163 / U:7.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site