Thread (6 messages) 6 messages, 2 authors, 2012-09-06

Re: [pci:pci:bjorn-cleanup-remove 16/16] drivers/parisc/dino.c:598:3: error: implicit declaration of

From: Bjorn Helgaas <bhelgaas@google.com>
Date: 2012-08-20 15:45:11

On Sun, Aug 19, 2012 at 5:54 AM, Fengguang Wu [off-list ref] wrote:
Hi Bjorn,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/bjorn-cleanup-remove
head:   f757bd1fe5535350c50058bf999f437cb9106d52
commit: f757bd1fe5535350c50058bf999f437cb9106d52 [16/16] PCI: Remove unused pci_dev_b()
config: parisc-defconfig (attached as .config)

All related error/warning messages:

drivers/parisc/dino.c: In function 'dino_fixup_bus':
drivers/parisc/dino.c:598:3: error: implicit declaration of function 'pci_dev_b' [-Werror=implicit-function-declaration]
drivers/parisc/dino.c:598:7: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors

vim +598 drivers/parisc/dino.c
   595
   596
   597          list_for_each(ln, &bus->devices) {
 > 598                  dev = pci_dev_b(ln);
   599                  if (is_card_dino(&dino_dev->hba.dev->id))
   600                          dino_card_fixup(dev);
   601
Fixed.

Thanks a lot for finding this!  This is an awesome service -- I hadn't
even put it into "next" yet, so I had no idea you'd even look at it.

Bjorn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help