All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-4.14.y 1552/3419] arch/powerpc/kernel/setup_64.c:870:6: error: no previous declaration for 'uaccess_flush_enable'
@ 2021-06-08 16:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-08 16:49 UTC (permalink / raw
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.14.y
head:   db507a48851781973fbcaf77b9185543a56bd4b2
commit: a1fe39636e6fb60c8fe7e3b87a32cb561585399f [1552/3419] powerpc/64s: flush L1D after user accesses
config: powerpc-ps3_defconfig (attached as .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=a1fe39636e6fb60c8fe7e3b87a32cb561585399f
        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 linux-4.14.y
        git checkout a1fe39636e6fb60c8fe7e3b87a32cb561585399f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=powerpc 

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

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:24:0,
                    from arch/powerpc/include/asm/book3s/64/mmu.h:30,
                    from arch/powerpc/include/asm/mmu.h:305,
                    from arch/powerpc/include/asm/lppaca.h:36,
                    from arch/powerpc/include/asm/paca.h:21,
                    from arch/powerpc/include/asm/current.h:16,
                    from include/linux/sched.h:12,
                    from arch/powerpc/kernel/setup_64.c:17:
   arch/powerpc/include/asm/book3s/64/pgtable.h:1218:15: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
    static inline const int pud_pfn(pud_t pud)
                  ^~~~~
   In file included from arch/powerpc/include/asm/kup.h:10:0,
                    from arch/powerpc/include/asm/uaccess.h:10,
                    from include/linux/uaccess.h:14,
                    from include/asm-generic/termios-base.h:8,
                    from arch/powerpc/include/asm/termios.h:20,
                    from include/uapi/linux/termios.h:6,
                    from include/linux/tty.h:7,
                    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
   arch/powerpc/kernel/setup_64.c: At top level:
   arch/powerpc/kernel/setup_64.c:133:13: error: no previous declaration for 'check_smt_enabled' [-Werror=missing-declarations]
    void __init check_smt_enabled(void)
                ^~~~~~~~~~~~~~~~~
   arch/powerpc/kernel/setup_64.c:273: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:343:6: error: no previous declaration for 'early_setup_secondary' [-Werror=missing-declarations]
    void early_setup_secondary(void)
         ^~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/kernel/setup_64.c:494:13: error: no previous declaration for 'initialize_cache_info' [-Werror=missing-declarations]
    void __init initialize_cache_info(void)
                ^~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/kernel/setup_64.c:580:13: error: no previous declaration for 'irqstack_early_init' [-Werror=missing-declarations]
    void __init irqstack_early_init(void)
                ^~~~~~~~~~~~~~~~~~~
   arch/powerpc/kernel/setup_64.c:648:13: error: no previous declaration for 'emergency_stack_init' [-Werror=missing-declarations]
    void __init emergency_stack_init(void)
                ^~~~~~~~~~~~~~~~~~~~
   arch/powerpc/kernel/setup_64.c:858:6: error: no previous declaration for 'entry_flush_enable' [-Werror=missing-declarations]
    void entry_flush_enable(bool enable)
         ^~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/setup_64.c:870: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:391: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 +870 arch/powerpc/kernel/setup_64.c

   869	
 > 870	void uaccess_flush_enable(bool enable)
   871	{
   872		if (enable) {
   873			do_uaccess_flush_fixups(enabled_flush_types);
   874			static_branch_enable(&uaccess_flush_key);
   875			on_each_cpu(do_nothing, NULL, 1);
   876		} else {
   877			static_branch_disable(&uaccess_flush_key);
   878			do_uaccess_flush_fixups(L1D_FLUSH_NONE);
   879		}
   880	
   881		uaccess_flush = enable;
   882	}
   883	

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

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

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

only message in thread, other threads:[~2021-06-08 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-08 16:49 [linux-stable-rc:linux-4.14.y 1552/3419] arch/powerpc/kernel/setup_64.c:870:6: error: no previous declaration for 'uaccess_flush_enable' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.