All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-devel] [sound:for-next 37/38] include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used
@ 2019-10-21 13:58 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-10-21 13:58 UTC (permalink / raw)
  To: Kai-Heng Feng; +Cc: Takashi Iwai, alsa-devel, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   bacd861452d2be86a4df341b12e32db7dac8021e
commit: 52525b7a3cf82adec5c6cf0ecbd23ff228badc94 [37/38] PCI: Add a helper to check Power Resource Requirements _PR3 existence
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 52525b7a3cf82adec5c6cf0ecbd23ff228badc94
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/sparc/kernel/iommu.c:20:0:
>> include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used [-Werror=unused-function]
    static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
                ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/pci_pr3_present +2317 include/linux/pci.h

  2310	
  2311	void
  2312	pci_msi_register_fwnode_provider(struct fwnode_handle *(*fn)(struct device *));
  2313	bool pci_pr3_present(struct pci_dev *pdev);
  2314	#else
  2315	static inline struct irq_domain *
  2316	pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; }
> 2317	static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
  2318	#endif
  2319	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59095 bytes --]

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sound:for-next 37/38] include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used
@ 2019-10-21 13:58 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-10-21 13:58 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   bacd861452d2be86a4df341b12e32db7dac8021e
commit: 52525b7a3cf82adec5c6cf0ecbd23ff228badc94 [37/38] PCI: Add a helper to check Power Resource Requirements _PR3 existence
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 52525b7a3cf82adec5c6cf0ecbd23ff228badc94
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/sparc/kernel/iommu.c:20:0:
>> include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used [-Werror=unused-function]
    static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
                ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/pci_pr3_present +2317 include/linux/pci.h

  2310	
  2311	void
  2312	pci_msi_register_fwnode_provider(struct fwnode_handle *(*fn)(struct device *));
  2313	bool pci_pr3_present(struct pci_dev *pdev);
  2314	#else
  2315	static inline struct irq_domain *
  2316	pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; }
> 2317	static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
  2318	#endif
  2319	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 59095 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [alsa-devel] [sound:for-next 37/38] include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used
  2019-10-21 13:58 ` kbuild test robot
@ 2019-10-21 14:28   ` Takashi Iwai
  -1 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2019-10-21 14:28 UTC (permalink / raw)
  To: kbuild test robot; +Cc: alsa-devel, Kai-Heng Feng, kbuild-all

On Mon, 21 Oct 2019 15:58:15 +0200,
kbuild test robot wrote:
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
> head:   bacd861452d2be86a4df341b12e32db7dac8021e
> commit: 52525b7a3cf82adec5c6cf0ecbd23ff228badc94 [37/38] PCI: Add a helper to check Power Resource Requirements _PR3 existence
> config: sparc64-allmodconfig (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 7.4.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 52525b7a3cf82adec5c6cf0ecbd23ff228badc94
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.4.0 make.cross ARCH=sparc64 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>

Grr, this was due to missing inline.  Fixed in below.


Takashi

-- 8< --
From: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] PCI: Fix missing inline for pci_pr3_present()

The inline prefix was missing in the dummy function pci_pr3_present()
definition.  Fix it.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 52525b7a3cf8 ("PCI: Add a helper to check Power Resource Requirements _PR3 existence")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 include/linux/pci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 1d15c5d49cdd..be529d311122 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -2314,7 +2314,7 @@ bool pci_pr3_present(struct pci_dev *pdev);
 #else
 static inline struct irq_domain *
 pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; }
-static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
+static inline bool pci_pr3_present(struct pci_dev *pdev) { return false; }
 #endif
 
 #ifdef CONFIG_EEH
-- 
2.16.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [sound:for-next 37/38] include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used
@ 2019-10-21 14:28   ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2019-10-21 14:28 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1949 bytes --]

On Mon, 21 Oct 2019 15:58:15 +0200,
kbuild test robot wrote:
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
> head:   bacd861452d2be86a4df341b12e32db7dac8021e
> commit: 52525b7a3cf82adec5c6cf0ecbd23ff228badc94 [37/38] PCI: Add a helper to check Power Resource Requirements _PR3 existence
> config: sparc64-allmodconfig (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 7.4.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 52525b7a3cf82adec5c6cf0ecbd23ff228badc94
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.4.0 make.cross ARCH=sparc64 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>

Grr, this was due to missing inline.  Fixed in below.


Takashi

-- 8< --
From: Takashi Iwai <tiwai@suse.de>
Subject: [PATCH] PCI: Fix missing inline for pci_pr3_present()

The inline prefix was missing in the dummy function pci_pr3_present()
definition.  Fix it.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 52525b7a3cf8 ("PCI: Add a helper to check Power Resource Requirements _PR3 existence")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 include/linux/pci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/pci.h b/include/linux/pci.h
index 1d15c5d49cdd..be529d311122 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -2314,7 +2314,7 @@ bool pci_pr3_present(struct pci_dev *pdev);
 #else
 static inline struct irq_domain *
 pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; }
-static bool pci_pr3_present(struct pci_dev *pdev) { return false; }
+static inline bool pci_pr3_present(struct pci_dev *pdev) { return false; }
 #endif
 
 #ifdef CONFIG_EEH
-- 
2.16.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-21 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 13:58 [alsa-devel] [sound:for-next 37/38] include/linux/pci.h:2317:13: error: 'pci_pr3_present' defined but not used kbuild test robot
2019-10-21 13:58 ` kbuild test robot
2019-10-21 14:28 ` [alsa-devel] " Takashi Iwai
2019-10-21 14:28   ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.