From: kbuild test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@01.org,
"James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
linux-scsi@vger.kernel.org,
"Martin K. Petersen" <martin.petersen@oracle.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] scsi: wd7000: print sector number as 64-bit
Date: Fri, 17 Jun 2016 01:36:52 +0800 [thread overview]
Message-ID: <201606170138.QVDnvLmx%fengguang.wu@intel.com> (raw)
In-Reply-To: <4878482.cSGU6mK9NX@wuerfel>
[-- Attachment #1: Type: text/plain, Size: 6385 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 46344 bytes --]
next prev parent reply other threads:[~2016-06-16 17:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 20:42 [PATCH 1/2] scsi: lpfc: avoid harmless comparison warning Arnd Bergmann
2016-06-15 20:54 ` [PATCH 2/2] scsi: wd7000: print sector number as 64-bit Arnd Bergmann
2016-06-16 17:36 ` kbuild test robot [this message]
2016-06-17 11:45 ` Arnd Bergmann
2016-06-21 1:12 ` Martin K. Petersen
2016-06-21 11:41 ` Arnd Bergmann
2016-06-16 7:39 ` [PATCH 1/2] scsi: lpfc: avoid harmless comparison warning Johannes Thumshirn
2016-07-14 3:15 ` Martin K. Petersen
2016-07-15 19:16 ` James Smart
2016-07-20 23:54 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201606170138.QVDnvLmx%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=jejb@linux.vnet.ibm.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox