All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.15 1/5] drivers/pci/pci.h:610:61: error: expected identifier or '(' before '{' token
Date: Thu, 24 Oct 2024 08:08:59 +0800	[thread overview]
Message-ID: <202410240813.ILHkhksS-lkp@intel.com> (raw)

Hi David,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://android.googlesource.com/kernel/common android13-5.15
head:   38edc4724f5ea26f3015dbe044c2ac4f79f7adcf
commit: eaddd7157d019ff9415b6f65ae506f169a5d54c6 [1/5] BACKPORT: PCI/ASPM: Move pci_save_ltr_state() to aspm.c
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20241024/202410240813.ILHkhksS-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241024/202410240813.ILHkhksS-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410240813.ILHkhksS-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from drivers/pci/of.c:16:
>> drivers/pci/pci.h:610:61: error: expected identifier or '(' before '{' token
     610 | static inline void pci_save_ltr_state(struct pci_dev *dev); { }
         |                                                             ^
   drivers/pci/pci.h:611:64: error: expected identifier or '(' before '{' token
     611 | static inline void pci_restore_ltr_state(struct pci_dev *dev); { }
         |                                                                ^
>> drivers/pci/pci.h:610:20: warning: 'pci_save_ltr_state' declared 'static' but never defined [-Wunused-function]
     610 | static inline void pci_save_ltr_state(struct pci_dev *dev); { }
         |                    ^~~~~~~~~~~~~~~~~~
>> drivers/pci/pci.h:611:20: warning: 'pci_restore_ltr_state' declared 'static' but never defined [-Wunused-function]
     611 | static inline void pci_restore_ltr_state(struct pci_dev *dev); { }
         |                    ^~~~~~~~~~~~~~~~~~~~~


vim +610 drivers/pci/pci.h

   589	
   590	/* PCI error reporting and recovery */
   591	pci_ers_result_t pcie_do_recovery(struct pci_dev *dev,
   592			pci_channel_state_t state,
   593			pci_ers_result_t (*reset_subordinates)(struct pci_dev *pdev));
   594	
   595	bool pcie_wait_for_link(struct pci_dev *pdev, bool active);
   596	#ifdef CONFIG_PCIEASPM
   597	void pcie_aspm_init_link_state(struct pci_dev *pdev);
   598	void pcie_aspm_exit_link_state(struct pci_dev *pdev);
   599	void pcie_aspm_pm_state_change(struct pci_dev *pdev);
   600	void pcie_aspm_powersave_config_link(struct pci_dev *pdev);
   601	void pci_configure_ltr(struct pci_dev *pdev);
   602	void pci_save_ltr_state(struct pci_dev *dev);
   603	void pci_restore_ltr_state(struct pci_dev *dev);
   604	#else
   605	static inline void pcie_aspm_init_link_state(struct pci_dev *pdev) { }
   606	static inline void pcie_aspm_exit_link_state(struct pci_dev *pdev) { }
   607	static inline void pcie_aspm_pm_state_change(struct pci_dev *pdev) { }
   608	static inline void pcie_aspm_powersave_config_link(struct pci_dev *pdev) { }
   609	static inline void pci_configure_ltr(struct pci_dev *pdev) { }
 > 610	static inline void pci_save_ltr_state(struct pci_dev *dev); { }
 > 611	static inline void pci_restore_ltr_state(struct pci_dev *dev); { }
   612	#endif
   613	

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

                 reply	other threads:[~2024-10-24  0:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202410240813.ILHkhksS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.