linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mark:arm64/uaccess/rework 12/19] arch/arm64/mm/extable.c:65:6: warning: no previous prototype for function 'ex_handler_luz'
@ 2021-10-09  1:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-09  1:28 UTC (permalink / raw)
  To: Mark Rutland; +Cc: llvm, kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/uaccess/rework
head:   692de878f919de31942d0d28571b5e6f32c7135e
commit: c4b57def6a878f04d1b72cecabfb9734ebd643f4 [12/19] arm64: use fixup handler for load_unaligned_zeropad()
config: arm64-randconfig-r003-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ed2e8e04ff42eb4d8009999ae1fd341a30bf6c0)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=c4b57def6a878f04d1b72cecabfb9734ebd643f4
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/uaccess/rework
        git checkout c4b57def6a878f04d1b72cecabfb9734ebd643f4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

All warnings (new ones prefixed by >>):

   arch/arm64/mm/extable.c:43:6: warning: no previous prototype for function 'ex_handler_fixup' [-Wmissing-prototypes]
   bool ex_handler_fixup(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_fixup(const struct exception_table_entry *ex,
   ^
   static 
   arch/arm64/mm/extable.c:51:6: warning: no previous prototype for function 'ex_handler_efault_zero' [-Wmissing-prototypes]
   bool ex_handler_efault_zero(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_efault_zero(const struct exception_table_entry *ex,
   ^
   static 
>> arch/arm64/mm/extable.c:65:6: warning: no previous prototype for function 'ex_handler_luz' [-Wmissing-prototypes]
   bool ex_handler_luz(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_luz(const struct exception_table_entry *ex,
   ^
   static 
   3 warnings generated.


vim +/ex_handler_luz +65 arch/arm64/mm/extable.c

    64	
  > 65	bool ex_handler_luz(const struct exception_table_entry *ex,
    66			    struct pt_regs *regs)
    67	{
    68		int reg_data = FIELD_GET(EX_DATA_REG_DATA, ex->data);
    69		int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex->data);
    70		unsigned long data, addr, offset;
    71	
    72		addr = pt_regs_read_reg(regs, reg_addr);
    73	
    74		offset = addr & 0x7UL;
    75		addr &= ~0x7UL;
    76	
    77		data = *(unsigned long*)addr;
    78	

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

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

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

only message in thread, other threads:[~2021-10-09  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09  1:28 [mark:arm64/uaccess/rework 12/19] arch/arm64/mm/extable.c:65:6: warning: no previous prototype for function 'ex_handler_luz' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).