All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/x86/kernel/traps.c:248:17: error: implicit declaration of function '__warn'; did you mean 'pr_warn'?
@ 2022-04-17 21:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-17 21:45 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a1901b464e7e3e28956ae7423db2847dbbfb5be8
commit: 991625f3dd2cbc4b787deb0213e2bcf8fa264b21 x86/ibt: Add IBT feature, MSR and #CP handling
date:   5 weeks ago
config: x86_64-buildonly-randconfig-r006-20220418 (https://download.01.org/0day-ci/archive/20220418/202204180524.7PXohDtU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=991625f3dd2cbc4b787deb0213e2bcf8fa264b21
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 991625f3dd2cbc4b787deb0213e2bcf8fa264b21
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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/x86/kernel/traps.c: In function '__exc_control_protection':
>> arch/x86/kernel/traps.c:248:17: error: implicit declaration of function '__warn'; did you mean 'pr_warn'? [-Werror=implicit-function-declaration]
     248 |                 __warn(__FILE__, __LINE__, (void *)regs->ip, TAINT_WARN, regs, NULL);
         |                 ^~~~~~
         |                 pr_warn
   cc1: some warnings being treated as errors


vim +248 arch/x86/kernel/traps.c

   229	
   230	DEFINE_IDTENTRY_ERRORCODE(exc_control_protection)
   231	{
   232		if (!cpu_feature_enabled(X86_FEATURE_IBT)) {
   233			pr_err("Unexpected #CP\n");
   234			BUG();
   235		}
   236	
   237		if (WARN_ON_ONCE(user_mode(regs) || (error_code & CP_EC) != CP_ENDBR))
   238			return;
   239	
   240		if (unlikely(regs->ip == (unsigned long)&ibt_selftest_ip)) {
   241			regs->ax = 0;
   242			return;
   243		}
   244	
   245		pr_err("Missing ENDBR: %pS\n", (void *)instruction_pointer(regs));
   246		if (!ibt_fatal) {
   247			printk(KERN_DEFAULT CUT_HERE);
 > 248			__warn(__FILE__, __LINE__, (void *)regs->ip, TAINT_WARN, regs, NULL);
   249			return;
   250		}
   251		BUG();
   252	}
   253	

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

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

only message in thread, other threads:[~2022-04-17 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-17 21:45 arch/x86/kernel/traps.c:248:17: error: implicit declaration of function '__warn'; did you mean 'pr_warn'? 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.