All of lore.kernel.org
 help / color / mirror / Atom feed
* [niks:has_ioport_v4 36/41] drivers/usb/host/pci-quirks.h:19:19: error: static declaration of 'usb_hcd_amd_remote_wakeup_quirk' follows non-static declaration
@ 2023-05-12  1:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-12  1:32 UTC (permalink / raw)
  To: Niklas Schnelle; +Cc: oe-kbuild-all, Arnd Bergmann

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git has_ioport_v4
head:   68cc8a94b043dfb8a94359d5f0e1fe3dd82c5549
commit: 22366521cf677f472949762ac1c492baca4a8ffe [36/41] usb: pci-quirks: handle HAS_IOPORT dependencies
config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20230512/202305120954.8Ylrk7aZ-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/commit/?id=22366521cf677f472949762ac1c492baca4a8ffe
        git remote add niks https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git
        git fetch --no-tags niks has_ioport_v4
        git checkout 22366521cf677f472949762ac1c492baca4a8ffe
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/usb/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305120954.8Ylrk7aZ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/usb/host/ehci-hcd.c:99:
>> drivers/usb/host/pci-quirks.h:19:19: error: static declaration of 'usb_hcd_amd_remote_wakeup_quirk' follows non-static declaration
      19 | static inline int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev)
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/usb/host/ehci-hcd.c:24:
   include/linux/usb/hcd.h:489:12: note: previous declaration of 'usb_hcd_amd_remote_wakeup_quirk' with type 'int(struct pci_dev *)'
     489 | extern int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *dev);
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/usb_hcd_amd_remote_wakeup_quirk +19 drivers/usb/host/pci-quirks.h

     7	
     8	#ifdef CONFIG_USB_PCI_AMD
     9	int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev);
    10	bool usb_amd_hang_symptom_quirk(void);
    11	bool usb_amd_prefetch_quirk(void);
    12	void usb_amd_dev_put(void);
    13	bool usb_amd_quirk_pll_check(void);
    14	void usb_amd_quirk_pll_disable(void);
    15	void usb_amd_quirk_pll_enable(void);
    16	void sb800_prefetch(struct device *dev, int on);
    17	bool usb_amd_pt_check_port(struct device *device, int port);
    18	#else
  > 19	static inline int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev)
    20	{
    21		return 0;
    22	}
    23	static inline bool usb_amd_hang_symptom_quirk(void)
    24	{
    25		return false;
    26	};
    27	static inline bool usb_amd_prefetch_quirk(void)
    28	{
    29		return false;
    30	}
    31	static inline bool usb_amd_quirk_pll_check(void)
    32	{
    33		return false;
    34	}
    35	static inline void usb_amd_quirk_pll_disable(void) {}
    36	static inline void usb_amd_quirk_pll_enable(void) {}
    37	static inline void usb_amd_dev_put(void) {}
    38	static inline void sb800_prefetch(struct device *dev, int on) {}
    39	static inline bool usb_amd_pt_check_port(struct device *device, int port)
    40	{
    41		return false;
    42	}
    43	#endif /* CONFIG_USB_PCI_AMD */
    44	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-12  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12  1:32 [niks:has_ioport_v4 36/41] drivers/usb/host/pci-quirks.h:19:19: error: static declaration of 'usb_hcd_amd_remote_wakeup_quirk' follows non-static declaration kernel test robot

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.