Subject: [powerpc:next 59/78] arch/powerpc/platforms/pseries/eeh_pe.c:98:23: error: 'eeh_phb_pe_get' defined but not used

From: Fengguang Wu <[email-masked]>
Date: Mon, 10 Sep 2012 10:34:13 +0800

Hi Gavin,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next
head:   4715fed600109e0bd3d6cfa2b925a643173a08b4
commit: 55037d176107c33ac79528bf9ab282a6b0b51e16 [59/78] powerpc/eeh: Create PEs for PHBs
config: powerpc-defconfig (attached as .config)

All related error/warning messages:

arch/powerpc/platforms/pseries/eeh_pe.c:98:23: error: 'eeh_phb_pe_get' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

vim +98 arch/powerpc/platforms/pseries/eeh_pe.c
    93	 *
    94	 * The overall PEs form hierarchy tree. The first layer of the
    95	 * hierarchy tree is composed of PHB PEs. The function is used
    96	 * to retrieve the corresponding PHB PE according to the given PHB.
    97	 */
  > 98	static struct eeh_pe *eeh_phb_pe_get(struct pci_controller *phb)
    99	{
   100		struct eeh_pe *pe;
   101	
   102		eeh_lock();
   103	

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <[email-masked]>                     Intel Corporation