lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212162232.QB2eJ7DI-lkp@intel.com>
Date:   Fri, 16 Dec 2022 22:11:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org
Subject: arch/arm/mm/copypage-v4wt.c:43:6: warning: no previous prototype for
 function 'v4wt_copy_user_highpage'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   84e57d292203a45c96dbcb2e6be9dd80961d981a
commit: 250c1a694ff304e5d69e74ab32755eddcc2b8f65 ARM: pxa: convert to multiplatform
date:   7 months ago
config: arm-randconfig-r023-20221216
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 98b13979fb05f3ed288a900deb843e7b27589e58)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=250c1a694ff304e5d69e74ab32755eddcc2b8f65
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 250c1a694ff304e5d69e74ab32755eddcc2b8f65
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-imx/ arch/arm/mach-spear/ arch/arm/mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> arch/arm/mm/copypage-v4wt.c:43:6: warning: no previous prototype for function 'v4wt_copy_user_highpage' [-Wmissing-prototypes]
   void v4wt_copy_user_highpage(struct page *to, struct page *from,
        ^
   arch/arm/mm/copypage-v4wt.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void v4wt_copy_user_highpage(struct page *to, struct page *from,
   ^
   static 
>> arch/arm/mm/copypage-v4wt.c:60:6: warning: no previous prototype for function 'v4wt_clear_user_highpage' [-Wmissing-prototypes]
   void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr)
        ^
   arch/arm/mm/copypage-v4wt.c:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr)
   ^
   static 
   2 warnings generated.
--
>> arch/arm/mm/copypage-v4wb.c:47:6: warning: no previous prototype for function 'v4wb_copy_user_highpage' [-Wmissing-prototypes]
   void v4wb_copy_user_highpage(struct page *to, struct page *from,
        ^
   arch/arm/mm/copypage-v4wb.c:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void v4wb_copy_user_highpage(struct page *to, struct page *from,
   ^
   static 
>> arch/arm/mm/copypage-v4wb.c:65:6: warning: no previous prototype for function 'v4wb_clear_user_highpage' [-Wmissing-prototypes]
   void v4wb_clear_user_highpage(struct page *page, unsigned long vaddr)
        ^
   arch/arm/mm/copypage-v4wb.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void v4wb_clear_user_highpage(struct page *page, unsigned long vaddr)
   ^
   static 
   2 warnings generated.
--
>> arch/arm/mm/copypage-xscale.c:84:6: warning: no previous prototype for function 'xscale_mc_copy_user_highpage' [-Wmissing-prototypes]
   void xscale_mc_copy_user_highpage(struct page *to, struct page *from,
        ^
   arch/arm/mm/copypage-xscale.c:84:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void xscale_mc_copy_user_highpage(struct page *to, struct page *from,
   ^
   static 
>> arch/arm/mm/copypage-xscale.c:107:1: warning: no previous prototype for function 'xscale_mc_clear_user_highpage' [-Wmissing-prototypes]
   xscale_mc_clear_user_highpage(struct page *page, unsigned long vaddr)
   ^
   arch/arm/mm/copypage-xscale.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
   2 warnings generated.
--
>> arch/arm/mach-imx/cpu-imx25.c:40:5: warning: no previous prototype for function 'mx25_revision' [-Wmissing-prototypes]
   int mx25_revision(void)
       ^
   arch/arm/mach-imx/cpu-imx25.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int mx25_revision(void)
   ^
   static 
   1 warning generated.
--
>> arch/arm/mach-imx/pm-imx25.c:31:13: warning: no previous prototype for function 'imx25_pm_init' [-Wmissing-prototypes]
   void __init imx25_pm_init(void)
               ^
   arch/arm/mach-imx/pm-imx25.c:31:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init imx25_pm_init(void)
   ^
   static 
   1 warning generated.
--
>> arch/arm/mach-spear/pl080.c:30:5: warning: no previous prototype for function 'pl080_get_signal' [-Wmissing-prototypes]
   int pl080_get_signal(const struct pl08x_channel_data *cd)
       ^
   arch/arm/mach-spear/pl080.c:30:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pl080_get_signal(const struct pl08x_channel_data *cd)
   ^
   static 
>> arch/arm/mach-spear/pl080.c:65:6: warning: no previous prototype for function 'pl080_put_signal' [-Wmissing-prototypes]
   void pl080_put_signal(const struct pl08x_channel_data *cd, int signal)
        ^
   arch/arm/mach-spear/pl080.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pl080_put_signal(const struct pl08x_channel_data *cd, int signal)
   ^
   static 
   2 warnings generated.


vim +/v4wt_copy_user_highpage +43 arch/arm/mm/copypage-v4wt.c

d73e60b7144a86 Russell King  2008-10-31  42  
063b0a4207e43a Russell King  2008-10-31 @43  void v4wt_copy_user_highpage(struct page *to, struct page *from,
f00a75c094c340 Russell King  2009-10-05  44  	unsigned long vaddr, struct vm_area_struct *vma)
063b0a4207e43a Russell King  2008-10-31  45  {
063b0a4207e43a Russell King  2008-10-31  46  	void *kto, *kfrom;
063b0a4207e43a Russell King  2008-10-31  47  
5472e862de2bc4 Cong Wang     2011-11-25  48  	kto = kmap_atomic(to);
5472e862de2bc4 Cong Wang     2011-11-25  49  	kfrom = kmap_atomic(from);
063b0a4207e43a Russell King  2008-10-31  50  	v4wt_copy_user_page(kto, kfrom);
5472e862de2bc4 Cong Wang     2011-11-25  51  	kunmap_atomic(kfrom);
5472e862de2bc4 Cong Wang     2011-11-25  52  	kunmap_atomic(kto);
063b0a4207e43a Russell King  2008-10-31  53  }
063b0a4207e43a Russell King  2008-10-31  54  
d73e60b7144a86 Russell King  2008-10-31  55  /*
d73e60b7144a86 Russell King  2008-10-31  56   * ARMv4 optimised clear_user_page
d73e60b7144a86 Russell King  2008-10-31  57   *
d73e60b7144a86 Russell King  2008-10-31  58   * Same story as above.
d73e60b7144a86 Russell King  2008-10-31  59   */
303c6443659bc1 Russell King  2008-10-31 @60  void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr)
d73e60b7144a86 Russell King  2008-10-31  61  {
5472e862de2bc4 Cong Wang     2011-11-25  62  	void *ptr, *kaddr = kmap_atomic(page);
43ae286b7d4d8c Nicolas Pitre 2008-11-04  63  	asm volatile("\
43ae286b7d4d8c Nicolas Pitre 2008-11-04  64  	mov	r1, %2				@ 1\n\
d73e60b7144a86 Russell King  2008-10-31  65  	mov	r2, #0				@ 1\n\
d73e60b7144a86 Russell King  2008-10-31  66  	mov	r3, #0				@ 1\n\
d73e60b7144a86 Russell King  2008-10-31  67  	mov	ip, #0				@ 1\n\
d73e60b7144a86 Russell King  2008-10-31  68  	mov	lr, #0				@ 1\n\
303c6443659bc1 Russell King  2008-10-31  69  1:	stmia	%0!, {r2, r3, ip, lr}		@ 4\n\
303c6443659bc1 Russell King  2008-10-31  70  	stmia	%0!, {r2, r3, ip, lr}		@ 4\n\
303c6443659bc1 Russell King  2008-10-31  71  	stmia	%0!, {r2, r3, ip, lr}		@ 4\n\
303c6443659bc1 Russell King  2008-10-31  72  	stmia	%0!, {r2, r3, ip, lr}		@ 4\n\
d73e60b7144a86 Russell King  2008-10-31  73  	subs	r1, r1, #1			@ 1\n\
d73e60b7144a86 Russell King  2008-10-31  74  	bne	1b				@ 1\n\
303c6443659bc1 Russell King  2008-10-31  75  	mcr	p15, 0, r2, c7, c7, 0		@ flush ID cache"
43ae286b7d4d8c Nicolas Pitre 2008-11-04  76  	: "=r" (ptr)
43ae286b7d4d8c Nicolas Pitre 2008-11-04  77  	: "0" (kaddr), "I" (PAGE_SIZE / 64)
303c6443659bc1 Russell King  2008-10-31  78  	: "r1", "r2", "r3", "ip", "lr");
5472e862de2bc4 Cong Wang     2011-11-25  79  	kunmap_atomic(kaddr);
d73e60b7144a86 Russell King  2008-10-31  80  }
d73e60b7144a86 Russell King  2008-10-31  81  

:::::: The code at line 43 was first introduced by commit
:::::: 063b0a4207e43acbeff3d4b09f43e750e0212b48 [ARM] copypage: provide our own copy_user_highpage()

:::::: TO: Russell King <rmk@...-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (154972 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ