From: kernel test robot <lkp@intel.com>
To: "Jason A. Donenfeld" <zx2c4@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, zx2c4@kernel.org,
linux-kernel@vger.kernel.org,
Dominik Brodowski <linux@dominikbrodowski.net>,
Jann Horn <jannh@google.com>
Subject: [crng-random:master 17/42] include/trace/events/random.h:55:1: error: incompatible function pointer types passing 'void (void *, size_t, unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to parameter of type 'void (*)(void *, int, unsigned long)'
Date: Wed, 16 Feb 2022 00:20:38 +0800 [thread overview]
Message-ID: <202202160014.qVgMDFfX-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git master
head: e09db9454de88dca579c13562129bef2b0c7dd36
commit: 60681e3678705f119c0d32b5e0d56a21f90bb720 [17/42] random: make more consistent use of integer types
config: i386-randconfig-a001-20220214 (https://download.01.org/0day-ci/archive/20220216/202202160014.qVgMDFfX-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/crng/random.git/commit/?id=60681e3678705f119c0d32b5e0d56a21f90bb720
git remote add crng-random git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
git fetch --no-tags crng-random master
git checkout 60681e3678705f119c0d32b5e0d56a21f90bb720
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the crng-random/master HEAD e09db9454de88dca579c13562129bef2b0c7dd36 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from drivers/char/random.c:241:
In file included from include/trace/events/random.h:212:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:873:
>> include/trace/events/random.h:55:1: error: incompatible function pointer types passing 'void (void *, size_t, unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to parameter of type 'void (*)(void *, int, unsigned long)' [-Werror,-Wincompatible-function-pointer-types]
DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:870:35: note: expanded from macro 'DEFINE_EVENT'
check_trace_callback_type_##call(trace_event_raw_event_##template); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:39:1: note: expanded from here
trace_event_raw_event_random__mix_pool_bytes
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/events/random.h:55:1: note: passing argument to parameter 'cb' here
DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
^
include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
check_trace_callback_type_##name(void (*cb)(data_proto)) \
^
In file included from drivers/char/random.c:241:
In file included from include/trace/events/random.h:212:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:107:
>> include/trace/events/random.h:55:1: error: incompatible function pointer types passing 'void (void *, size_t, unsigned long)' (aka 'void (void *, unsigned int, unsigned long)') to parameter of type 'void (*)(void *, int, unsigned long)' [-Werror,-Wincompatible-function-pointer-types]
DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/perf.h:99:35: note: expanded from macro 'DEFINE_EVENT'
check_trace_callback_type_##call(perf_trace_##template); \
^~~~~~~~~~~~~~~~~~~~~
<scratch space>:62:1: note: expanded from here
perf_trace_random__mix_pool_bytes
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/events/random.h:55:1: note: passing argument to parameter 'cb' here
DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
^
include/linux/tracepoint.h:542:2: note: expanded from macro 'DEFINE_EVENT'
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/linux/tracepoint.h:419:2: note: expanded from macro 'DECLARE_TRACE'
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
^
include/linux/tracepoint.h:279:42: note: expanded from macro '__DECLARE_TRACE'
check_trace_callback_type_##name(void (*cb)(data_proto)) \
^
drivers/char/random.c:1734:6: warning: no previous prototype for function 'add_hwgenerator_randomness' [-Wmissing-prototypes]
void add_hwgenerator_randomness(const void *buffer, size_t count,
^
drivers/char/random.c:1734:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void add_hwgenerator_randomness(const void *buffer, size_t count,
^
static
1 warning and 2 errors generated.
vim +55 include/trace/events/random.h
00ce1db1a634746 Theodore Ts'o 2012-07-04 54
00ce1db1a634746 Theodore Ts'o 2012-07-04 @55 DEFINE_EVENT(random__mix_pool_bytes, mix_pool_bytes_nolock,
90ed1e67e896cc8 Jason A. Donenfeld 2022-01-12 56 TP_PROTO(int bytes, unsigned long IP),
00ce1db1a634746 Theodore Ts'o 2012-07-04 57
90ed1e67e896cc8 Jason A. Donenfeld 2022-01-12 58 TP_ARGS(bytes, IP)
00ce1db1a634746 Theodore Ts'o 2012-07-04 59 );
00ce1db1a634746 Theodore Ts'o 2012-07-04 60
:::::: The code at line 55 was first introduced by commit
:::::: 00ce1db1a634746040ace24c09a4e3a7949a3145 random: add tracepoints for easier debugging and verification
:::::: TO: Theodore Ts'o <tytso@mit.edu>
:::::: CC: Theodore Ts'o <tytso@mit.edu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-15 16:20 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=202202160014.qVgMDFfX-lkp@intel.com \
--to=lkp@intel.com \
--cc=jannh@google.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=llvm@lists.linux.dev \
--cc=zx2c4@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox