[linux-next:master 10774/13831] arch/powerpc/platforms/pseries/vas.c:186:13: error: no previous prototype for function 'pseries_vas_fault_thread_fn'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3579aa488520feeda433ceca23ef4704bf8cd280
commit: 6d0aaf5e0de00491de136f387ebed55604cedebe [10774/13831] powerpc/pseries/vas: Setup IRQ and fault handling
config: powerpc-randconfig-r031-20210628 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4c92e31dd0f1bd152eda883af20ff7fbcaa14945)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6d0aaf5e0de00491de136f387ebed55604cedebe
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 6d0aaf5e0de00491de136f387ebed55604cedebe
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/powerpc/platforms/pseries/vas.c:186:13: error: no previous prototype for function 'pseries_vas_fault_thread_fn' [-Werror,-Wmissing-prototypes]
   irqreturn_t pseries_vas_fault_thread_fn(int irq, void *data)
               ^
   arch/powerpc/platforms/pseries/vas.c:186:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   irqreturn_t pseries_vas_fault_thread_fn(int irq, void *data)
   ^
   static 
   1 error generated.


vim +/pseries_vas_fault_thread_fn +186 arch/powerpc/platforms/pseries/vas.c

   176	
   177	/*
   178	 * Handle the fault interrupt.
   179	 * When the fault interrupt is received for each window, query the
   180	 * hypervisor to get the fault CRB on the specific fault. Then
   181	 * process the CRB by updating CSB or send signal if the user space
   182	 * CSB is invalid.
   183	 * Note: The hypervisor forwards an interrupt for each fault request.
   184	 *	So one fault CRB to process for each H_GET_NX_FAULT hcall.
   185	 */
 > 186	irqreturn_t pseries_vas_fault_thread_fn(int irq, void *data)
   187	{
   188		struct pseries_vas_window *txwin = data;
   189		struct coprocessor_request_block crb;
   190		struct vas_user_win_ref *tsk_ref;
   191		int rc;
   192	
   193		rc = h_get_nx_fault(txwin->vas_win.winid, (u64)virt_to_phys(&crb));
   194		if (!rc) {
   195			tsk_ref = &txwin->vas_win.task_ref;
   196			vas_dump_crb(&crb);
   197			vas_update_csb(&crb, tsk_ref);
   198		}
   199	
   200		return IRQ_HANDLED;
   201	}
   202	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux