lkml.org 
[lkml]   [2020]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectinclude/linux/compiler.h:350:38: error: call to '__compiletime_assert_453' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
Hi Paul,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7c30b859a947535f2213277e827d7ac7dcff9c84
commit: 05d013a0366d50f4f0dbebf8c1b22b42020bf49a MIPS: Detect bad _PFN_SHIFT values
date: 9 months ago
config: mips-randconfig-r005-20200630 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.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
git checkout 05d013a0366d50f4f0dbebf8c1b22b42020bf49a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

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 >>):

| ^~~~~~~~
arch/mips/kernel/signal.c:439:5: warning: no previous prototype for 'setup_sigcontext' [-Wmissing-prototypes]
439 | int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:516:5: warning: no previous prototype for 'restore_sigcontext' [-Wmissing-prototypes]
516 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:624:17: warning: no previous prototype for 'sys_sigreturn' [-Wmissing-prototypes]
624 | asmlinkage void sys_sigreturn(void)
| ^~~~~~~~~~~~~
arch/mips/kernel/signal.c:661:17: warning: no previous prototype for 'sys_rt_sigreturn' [-Wmissing-prototypes]
661 | asmlinkage void sys_rt_sigreturn(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:889:17: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
889 | asmlinkage void do_notify_resume(struct pt_regs *regs, void *unused,
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:62:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes]
62 | void setup_zero_pages(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:358:6: warning: no previous prototype for 'show_registers' [-Wmissing-prototypes]
358 | void show_registers(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
arch/mips/kernel/traps.c:440:17: warning: no previous prototype for 'do_be' [-Wmissing-prototypes]
440 | asmlinkage void do_be(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:701:17: warning: no previous prototype for 'do_ov' [-Wmissing-prototypes]
701 | asmlinkage void do_ov(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:825:17: warning: no previous prototype for 'do_fpe' [-Wmissing-prototypes]
825 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
| ^~~~~~
arch/mips/kernel/traps.c:978:17: warning: no previous prototype for 'do_bp' [-Wmissing-prototypes]
978 | asmlinkage void do_bp(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1070:17: warning: no previous prototype for 'do_tr' [-Wmissing-prototypes]
1070 | asmlinkage void do_tr(struct pt_regs *regs)
| ^~~~~
arch/mips/mm/c-r4k.c:1703:6: warning: no previous prototype for 'au1x00_fixup_config_od' [-Wmissing-prototypes]
1703 | void au1x00_fixup_config_od(void)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/sc-mips.c:253:5: warning: no previous prototype for 'mips_sc_init' [-Wmissing-prototypes]
253 | int mips_sc_init(void)
| ^~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1818:6: warning: no previous prototype for 'r4k_cache_init' [-Wmissing-prototypes]
1818 | void r4k_cache_init(void)
| ^~~~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1962:12: warning: no previous prototype for 'r4k_cache_init_pm' [-Wmissing-prototypes]
1962 | int __init r4k_cache_init_pm(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1112:17: warning: no previous prototype for 'do_ri' [-Wmissing-prototypes]
1112 | asmlinkage void do_ri(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1346:17: warning: no previous prototype for 'do_cpu' [-Wmissing-prototypes]
1346 | asmlinkage void do_cpu(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1452:17: warning: no previous prototype for 'do_msa_fpe' [-Wmissing-prototypes]
1452 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
| ^~~~~~~~~~
arch/mips/kernel/traps.c:1472:17: warning: no previous prototype for 'do_msa' [-Wmissing-prototypes]
1472 | asmlinkage void do_msa(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1493:17: warning: no previous prototype for 'do_mdmx' [-Wmissing-prototypes]
1493 | asmlinkage void do_mdmx(struct pt_regs *regs)
| ^~~~~~~
arch/mips/kernel/traps.c:1505:17: warning: no previous prototype for 'do_watch' [-Wmissing-prototypes]
1505 | asmlinkage void do_watch(struct pt_regs *regs)
| ^~~~~~~~
arch/mips/kernel/traps.c:1532:17: warning: no previous prototype for 'do_mcheck' [-Wmissing-prototypes]
1532 | asmlinkage void do_mcheck(struct pt_regs *regs)
| ^~~~~~~~~
arch/mips/kernel/traps.c: In function 'do_mcheck':
arch/mips/kernel/traps.c:1535:17: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable]
1535 | enum ctx_state prev_state;
| ^~~~~~~~~~
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:1563:17: warning: no previous prototype for 'do_mt' [-Wmissing-prototypes]
1563 | asmlinkage void do_mt(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1599:17: warning: no previous prototype for 'do_dsp' [-Wmissing-prototypes]
1599 | asmlinkage void do_dsp(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1607:17: warning: no previous prototype for 'do_reserved' [-Wmissing-prototypes]
1607 | asmlinkage void do_reserved(struct pt_regs *regs)
| ^~~~~~~~~~~
arch/mips/kernel/traps.c:1783:17: warning: no previous prototype for 'cache_parity_error' [-Wmissing-prototypes]
1783 | asmlinkage void cache_parity_error(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1831:17: warning: no previous prototype for 'do_ftlb' [-Wmissing-prototypes]
1831 | asmlinkage void do_ftlb(void)
| ^~~~~~~
arch/mips/kernel/traps.c:1864:6: warning: no previous prototype for 'ejtag_exception_handler' [-Wmissing-prototypes]
1864 | void ejtag_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1909:17: warning: no previous prototype for 'nmi_exception_handler' [-Wmissing-prototypes]
1909 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/include/asm/bug.h:5,
from include/linux/bug.h:5,
from arch/mips/mm/init.c:11:
arch/mips/mm/init.c: In function 'mem_init':
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_453' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:453:2: note: in expansion of macro 'BUILD_BUG_ON'
453 | BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT));
| ^~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:273: arch/mips/mm/init.o] Error 1
arch/mips/kernel/spram.c:194:6: warning: no previous prototype for 'spram_config' [-Wmissing-prototypes]
194 | void spram_config(void)
| ^~~~~~~~~~~~
arch/mips/kernel/machine_kexec.c:136:1: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes]
136 | machine_shutdown(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/machine_kexec.c:152:1: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
152 | machine_crash_shutdown(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/module.c:290: warning: Function parameter or member 'reloc_handler' not described in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'me' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'location' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'base' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'v' description in 'int'
make[2]: *** [scripts/Makefile.build:490: arch/mips/mm] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1617: _module_arch/mips] Error 2
make[1]: Target '_all' not remade because of errors.
--
| ^~~~~~~~
arch/mips/kernel/signal.c:439:5: warning: no previous prototype for 'setup_sigcontext' [-Wmissing-prototypes]
439 | int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:516:5: warning: no previous prototype for 'restore_sigcontext' [-Wmissing-prototypes]
516 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:624:17: warning: no previous prototype for 'sys_sigreturn' [-Wmissing-prototypes]
624 | asmlinkage void sys_sigreturn(void)
| ^~~~~~~~~~~~~
arch/mips/kernel/signal.c:661:17: warning: no previous prototype for 'sys_rt_sigreturn' [-Wmissing-prototypes]
661 | asmlinkage void sys_rt_sigreturn(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/signal.c:889:17: warning: no previous prototype for 'do_notify_resume' [-Wmissing-prototypes]
889 | asmlinkage void do_notify_resume(struct pt_regs *regs, void *unused,
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:62:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes]
62 | void setup_zero_pages(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:358:6: warning: no previous prototype for 'show_registers' [-Wmissing-prototypes]
358 | void show_registers(struct pt_regs *regs)
| ^~~~~~~~~~~~~~
arch/mips/kernel/traps.c:440:17: warning: no previous prototype for 'do_be' [-Wmissing-prototypes]
440 | asmlinkage void do_be(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:701:17: warning: no previous prototype for 'do_ov' [-Wmissing-prototypes]
701 | asmlinkage void do_ov(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:825:17: warning: no previous prototype for 'do_fpe' [-Wmissing-prototypes]
825 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
| ^~~~~~
arch/mips/kernel/traps.c:978:17: warning: no previous prototype for 'do_bp' [-Wmissing-prototypes]
978 | asmlinkage void do_bp(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1070:17: warning: no previous prototype for 'do_tr' [-Wmissing-prototypes]
1070 | asmlinkage void do_tr(struct pt_regs *regs)
| ^~~~~
arch/mips/mm/c-r4k.c:1703:6: warning: no previous prototype for 'au1x00_fixup_config_od' [-Wmissing-prototypes]
1703 | void au1x00_fixup_config_od(void)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/sc-mips.c:253:5: warning: no previous prototype for 'mips_sc_init' [-Wmissing-prototypes]
253 | int mips_sc_init(void)
| ^~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1818:6: warning: no previous prototype for 'r4k_cache_init' [-Wmissing-prototypes]
1818 | void r4k_cache_init(void)
| ^~~~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1962:12: warning: no previous prototype for 'r4k_cache_init_pm' [-Wmissing-prototypes]
1962 | int __init r4k_cache_init_pm(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1112:17: warning: no previous prototype for 'do_ri' [-Wmissing-prototypes]
1112 | asmlinkage void do_ri(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1346:17: warning: no previous prototype for 'do_cpu' [-Wmissing-prototypes]
1346 | asmlinkage void do_cpu(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1452:17: warning: no previous prototype for 'do_msa_fpe' [-Wmissing-prototypes]
1452 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
| ^~~~~~~~~~
arch/mips/kernel/traps.c:1472:17: warning: no previous prototype for 'do_msa' [-Wmissing-prototypes]
1472 | asmlinkage void do_msa(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1493:17: warning: no previous prototype for 'do_mdmx' [-Wmissing-prototypes]
1493 | asmlinkage void do_mdmx(struct pt_regs *regs)
| ^~~~~~~
arch/mips/kernel/traps.c:1505:17: warning: no previous prototype for 'do_watch' [-Wmissing-prototypes]
1505 | asmlinkage void do_watch(struct pt_regs *regs)
| ^~~~~~~~
arch/mips/kernel/traps.c:1532:17: warning: no previous prototype for 'do_mcheck' [-Wmissing-prototypes]
1532 | asmlinkage void do_mcheck(struct pt_regs *regs)
| ^~~~~~~~~
arch/mips/kernel/traps.c: In function 'do_mcheck':
arch/mips/kernel/traps.c:1535:17: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable]
1535 | enum ctx_state prev_state;
| ^~~~~~~~~~
arch/mips/kernel/traps.c: At top level:
arch/mips/kernel/traps.c:1563:17: warning: no previous prototype for 'do_mt' [-Wmissing-prototypes]
1563 | asmlinkage void do_mt(struct pt_regs *regs)
| ^~~~~
arch/mips/kernel/traps.c:1599:17: warning: no previous prototype for 'do_dsp' [-Wmissing-prototypes]
1599 | asmlinkage void do_dsp(struct pt_regs *regs)
| ^~~~~~
arch/mips/kernel/traps.c:1607:17: warning: no previous prototype for 'do_reserved' [-Wmissing-prototypes]
1607 | asmlinkage void do_reserved(struct pt_regs *regs)
| ^~~~~~~~~~~
arch/mips/kernel/traps.c:1783:17: warning: no previous prototype for 'cache_parity_error' [-Wmissing-prototypes]
1783 | asmlinkage void cache_parity_error(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1831:17: warning: no previous prototype for 'do_ftlb' [-Wmissing-prototypes]
1831 | asmlinkage void do_ftlb(void)
| ^~~~~~~
arch/mips/kernel/traps.c:1864:6: warning: no previous prototype for 'ejtag_exception_handler' [-Wmissing-prototypes]
1864 | void ejtag_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/traps.c:1909:17: warning: no previous prototype for 'nmi_exception_handler' [-Wmissing-prototypes]
1909 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/include/asm/bug.h:5,
from include/linux/bug.h:5,
from arch/mips/mm/init.c:11:
arch/mips/mm/init.c: In function 'mem_init':
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_453' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:453:2: note: in expansion of macro 'BUILD_BUG_ON'
453 | BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT));
| ^~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:273: arch/mips/mm/init.o] Error 1
arch/mips/kernel/spram.c:194:6: warning: no previous prototype for 'spram_config' [-Wmissing-prototypes]
194 | void spram_config(void)
| ^~~~~~~~~~~~
arch/mips/kernel/machine_kexec.c:136:1: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes]
136 | machine_shutdown(void)
| ^~~~~~~~~~~~~~~~
arch/mips/kernel/machine_kexec.c:152:1: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
152 | machine_crash_shutdown(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/module.c:290: warning: Function parameter or member 'reloc_handler' not described in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'me' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'location' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'base' description in 'int'
arch/mips/kernel/module.c:290: warning: Excess function parameter 'v' description in 'int'
make[2]: *** [scripts/Makefile.build:490: arch/mips/mm] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: Target '__build' not remade because of errors.
--
In file included from arch/mips/mm/uasm-mips.c:48:
arch/mips/mm/uasm.c:420:5: warning: no previous prototype for 'uasm_in_compat_space_p' [-Wmissing-prototypes]
420 | int uasm_in_compat_space_p(long addr)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/hugetlbpage.c:58:5: warning: no previous prototype for 'is_aligned_hugepage_range' [-Wmissing-prototypes]
58 | int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/tlbex.c:2591:6: warning: no previous prototype for 'build_tlb_refill_handler' [-Wmissing-prototypes]
2591 | void build_tlb_refill_handler(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/fault.c:327:27: warning: no previous prototype for 'do_page_fault' [-Wmissing-prototypes]
327 | asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
| ^~~~~~~~~~~~~
arch/mips/mm/cache.c:130:6: warning: no previous prototype for '__update_cache' [-Wmissing-prototypes]
130 | void __update_cache(unsigned long address, pte_t pte)
| ^~~~~~~~~~~~~~
arch/mips/mm/cache.c:237:12: warning: no previous prototype for '__uncached_access' [-Wmissing-prototypes]
237 | int __weak __uncached_access(struct file *file, unsigned long addr)
| ^~~~~~~~~~~~~~~~~
arch/mips/mm/tlb-r4k.c:543:6: warning: no previous prototype for 'tlb_init' [-Wmissing-prototypes]
543 | void tlb_init(void)
| ^~~~~~~~
arch/mips/mm/init.c:62:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes]
62 | void setup_zero_pages(void)
| ^~~~~~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1703:6: warning: no previous prototype for 'au1x00_fixup_config_od' [-Wmissing-prototypes]
1703 | void au1x00_fixup_config_od(void)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/mm/sc-mips.c:253:5: warning: no previous prototype for 'mips_sc_init' [-Wmissing-prototypes]
253 | int mips_sc_init(void)
| ^~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1818:6: warning: no previous prototype for 'r4k_cache_init' [-Wmissing-prototypes]
1818 | void r4k_cache_init(void)
| ^~~~~~~~~~~~~~
arch/mips/mm/c-r4k.c:1962:12: warning: no previous prototype for 'r4k_cache_init_pm' [-Wmissing-prototypes]
1962 | int __init r4k_cache_init_pm(void)
| ^~~~~~~~~~~~~~~~~
In file included from arch/mips/include/asm/bug.h:5,
from include/linux/bug.h:5,
from arch/mips/mm/init.c:11:
arch/mips/mm/init.c: In function 'mem_init':
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_453' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:453:2: note: in expansion of macro 'BUILD_BUG_ON'
453 | BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT));
| ^~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:273: arch/mips/mm/init.o] Error 1
make[3]: Target '__build' not remade because of errors.
..

vim +/__compiletime_assert_453 +350 include/linux/compiler.h

9a8ab1c39970a4 Daniel Santos 2013-02-21 336
9a8ab1c39970a4 Daniel Santos 2013-02-21 337 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 338 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 339
9a8ab1c39970a4 Daniel Santos 2013-02-21 340 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 342 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 343 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 344 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 345 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 346 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 347 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 348 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 349 #define compiletime_assert(condition, msg) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 @350 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 351

:::::: The code at line 350 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG

:::::: TO: Daniel Santos <daniel.santos@pobox.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-06-30 07:31    [W:0.072 / U:11.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site