All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:x86/core 6/6] drivers/misc/lkdtm/perms.c:89:1: error: type defaults to 'int' in declaration of 'ANNOTATE_NOCFI_SYM'
Date: Sun, 13 Apr 2025 00:02:33 +0800	[thread overview]
Message-ID: <202504122336.jXmwu5Al-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/core
head:   c08c01c51ede1b79b73fe142e4bc9f7bb9d0ea5e
commit: c08c01c51ede1b79b73fe142e4bc9f7bb9d0ea5e [6/6] objtool: Validate kCFI calls
config: csky-randconfig-002-20250412 (https://download.01.org/0day-ci/archive/20250412/202504122336.jXmwu5Al-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250412/202504122336.jXmwu5Al-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504122336.jXmwu5Al-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/misc/lkdtm/perms.c:89:1: warning: data definition has no type or storage class
      89 | ANNOTATE_NOCFI_SYM(execute_location);
         | ^~~~~~~~~~~~~~~~~~
>> drivers/misc/lkdtm/perms.c:89:1: error: type defaults to 'int' in declaration of 'ANNOTATE_NOCFI_SYM' [-Wimplicit-int]
>> drivers/misc/lkdtm/perms.c:89:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]


vim +89 drivers/misc/lkdtm/perms.c

    70	
    71	static noinline __nocfi void execute_location(void *dst, bool write)
    72	{
    73		void (*func)(void);
    74		func_desc_t fdesc;
    75	
    76		pr_info("attempting ok execution at %px\n", do_nothing_ptr);
    77		do_nothing();
    78	
    79		if (write == CODE_WRITE) {
    80			memcpy(dst, do_nothing_ptr, EXEC_SIZE);
    81			flush_icache_range((unsigned long)dst,
    82					   (unsigned long)dst + EXEC_SIZE);
    83		}
    84		pr_info("attempting bad execution at %px\n", dst);
    85		func = setup_function_descriptor(&fdesc, dst);
    86		func();
    87		pr_err("FAIL: func returned\n");
    88	}
  > 89	ANNOTATE_NOCFI_SYM(execute_location);
    90	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-04-12 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202504122336.jXmwu5Al-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.