[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112261356.iId9eLe9-lkp@intel.com>
Date: Sun, 26 Dec 2021 13:20:52 +0800
From: kernel test robot <lkp@...el.com>
To: Nicholas Piggin <npiggin@...il.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Daniel Axtens <dja@...ens.net>
Subject: [linux-stable-rc:queue/4.9 7215/9999]
arch/powerpc/kernel/setup_64.c:763:6: error: no previous declaration for
'uaccess_flush_enable'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/4.9
head: df4b9763cd1e19cb238b3ea65d3257f1e10357c3
commit: d67c5c60a4225d98e24381f2da8f449e50733e81 [7215/9999] powerpc/64s: flush L1D after user accesses
config: powerpc64-allnoconfig (https://download.01.org/0day-ci/archive/20211226/202112261356.iId9eLe9-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=d67c5c60a4225d98e24381f2da8f449e50733e81
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc queue/4.9
git checkout d67c5c60a4225d98e24381f2da8f449e50733e81
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
Note: the linux-stable-rc/queue/4.9 HEAD df4b9763cd1e19cb238b3ea65d3257f1e10357c3 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/kup.h:10:0,
from arch/powerpc/include/asm/uaccess.h:12,
from include/asm-generic/termios-base.h:7,
from arch/powerpc/include/asm/termios.h:20,
from include/uapi/linux/termios.h:5,
from include/linux/tty.h:6,
from arch/powerpc/kernel/setup_64.c:27:
arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: data definition has no type or storage class [-Werror]
DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
^~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int]
arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: parameter names (without types) in function declaration [-Werror]
arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'prevent_user_access':
arch/powerpc/include/asm/book3s/64/kup-radix.h:18:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration]
if (static_branch_unlikely(&uaccess_flush_key))
^~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: error: 'uaccess_flush_key' undeclared (first use in this function); did you mean 'do_uaccess_flush'?
if (static_branch_unlikely(&uaccess_flush_key))
^~~~~~~~~~~~~~~~~
do_uaccess_flush
arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/powerpc/include/asm/bug.h:127:0,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from arch/powerpc/kernel/setup_64.c:17:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/powerpc/include/asm/page.h:129:32: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < max_mapnr)
^
include/asm-generic/bug.h:155:36: note: in definition of macro 'BUG_ON'
#define BUG_ON(condition) do { if (condition) BUG(); } while (0)
^~~~~~~~~
include/linux/dma-mapping.h:284:9: note: in expansion of macro 'pfn_valid'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~~~~
arch/powerpc/kernel/setup_64.c: At top level:
arch/powerpc/kernel/setup_64.c:281:13: error: no previous declaration for 'early_setup' [-Werror=missing-declarations]
void __init early_setup(unsigned long dt_ptr)
^~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:421:13: error: no previous declaration for 'initialize_cache_info' [-Werror=missing-declarations]
void __init initialize_cache_info(void)
^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:514:13: error: no previous declaration for 'irqstack_early_init' [-Werror=missing-declarations]
void __init irqstack_early_init(void)
^~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:563:13: error: no previous declaration for 'emergency_stack_init' [-Werror=missing-declarations]
void __init emergency_stack_init(void)
^~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:751:6: error: no previous declaration for 'entry_flush_enable' [-Werror=missing-declarations]
void entry_flush_enable(bool enable)
^~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/setup_64.c:763:6: error: no previous declaration for 'uaccess_flush_enable' [-Werror=missing-declarations]
void uaccess_flush_enable(bool enable)
^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/serial_8250.h:14:0,
from arch/powerpc/kernel/setup_64.c:33:
include/linux/serial_core.h:387:19: error: 'earlycon_init_is_deferred' defined but not used [-Werror=unused-const-variable=]
static const bool earlycon_init_is_deferred;
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/uaccess_flush_enable +763 arch/powerpc/kernel/setup_64.c
762
> 763 void uaccess_flush_enable(bool enable)
764 {
765 if (enable) {
766 do_uaccess_flush_fixups(enabled_flush_types);
767 static_branch_enable(&uaccess_flush_key);
768 on_each_cpu(do_nothing, NULL, 1);
769 } else {
770 static_branch_disable(&uaccess_flush_key);
771 do_uaccess_flush_fixups(L1D_FLUSH_NONE);
772 }
773
774 uaccess_flush = enable;
775 }
776
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists