[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210011824.vTwZKwfI-lkp@intel.com>
Date: Sat, 1 Oct 2022 18:43:06 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: arch/arm/mm/copypage-v4wt.c:43:6: warning: no previous prototype for
function 'v4wt_copy_user_highpage'
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ffb4d94b4314655cea60ab7962756e6bab72fc7e
commit: 250c1a694ff304e5d69e74ab32755eddcc2b8f65 ARM: pxa: convert to multiplatform
date: 5 months ago
config: arm-buildonly-randconfig-r001-20221001
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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 SHELL=/bin/bash arch/arm/mm/ drivers/irqchip/
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.
--
>> drivers/irqchip/irq-clps711x.c:215:13: warning: no previous prototype for function 'clps711x_intc_init' [-Wmissing-prototypes]
void __init clps711x_intc_init(phys_addr_t base, resource_size_t size)
^
drivers/irqchip/irq-clps711x.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init clps711x_intc_init(phys_addr_t base, resource_size_t size)
^
static
1 warning 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" (166894 bytes)
Powered by blists - more mailing lists