Skip to contentSkip to conversation

linux-next: build warnings after merge of the pci tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Jun 20, 2016 – Jun 21, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Bjorn,

After merging the pci tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:88:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return err;
          ^
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
   return PTR_ERR(cfg);
          ^
drivers/pci/host/pci-host-common.c:108:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return err;
         ^

Introduced by commit

3f8dcfc3fbba ("PCI: generic: Free resource list close to where it's allocated")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 16 lines · Stephen Rothwell

Hi Bjorn,

After merging the pci tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:88:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return err;
          ^
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
   return PTR_ERR(cfg);
          ^
drivers/pci/host/pci-host-common.c:108:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return err;
         ^
Quoted 3 lines

Introduced by commit

3f8dcfc3fbba ("PCI: generic: Free resource list close to where it's allocated")

Fixed, thanks a lot, Stephen!

#2 lore raw

Hi Bjorn,

Quoted 18 lines · On Mon, 20 Jun 2016 14:11:36 -0500 Bjorn Helgaas <[email protected]> wrote:
Quoted 16 lines · Stephen Rothwell

Hi Bjorn,

After merging the pci tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:88:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return err;
          ^
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
   return PTR_ERR(cfg);
          ^
drivers/pci/host/pci-host-common.c:108:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return err;
         ^
Quoted 5 lines
Quoted 3 lines

Introduced by commit

3f8dcfc3fbba ("PCI: generic: Free resource list close to where it's allocated")

Fixed, thanks a lot, Stephen!

Thanks. Unfortunately, I still get this warning:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return PTR_ERR(cfg);
          ^
Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 25 lines · Stephen Rothwell

Hi Bjorn,

Quoted 22 lines · On Mon, 20 Jun 2016 14:11:36 -0500 Bjorn Helgaas <[email protected]> wrote:
Quoted 19 lines · Stephen Rothwell

Hi Bjorn,

After merging the pci tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:88:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return err;
          ^
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
   return PTR_ERR(cfg);
          ^
drivers/pci/host/pci-host-common.c:108:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
  return err;
         ^

Introduced by commit

3f8dcfc3fbba ("PCI: generic: Free resource list close to where it's allocated")

Quoted 8 lines
Quoted 1 line

Fixed, thanks a lot, Stephen!

Thanks. Unfortunately, I still get this warning:

drivers/pci/host/pci-host-common.c: In function 'gen_pci_init':
drivers/pci/host/pci-host-common.c:93:10: warning: return makes pointer from integer without a cast [-Wint-conversion]

   return PTR_ERR(cfg);
          ^

Crap, sorry, PTR_ERR/ERR_PTR confusion. I *think* I fixed it now.

Bjorn