From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:objtool-diff 2/2] fs/kpatch-macros.h:54:11: fatal error: kpatch.h: No such file or directory
Date: Sat, 25 May 2024 09:45:45 +0800 [thread overview]
Message-ID: <202405250910.MEZEIATv-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-diff
head: 745009dc796e56fc87e911138d801679ecd3576e
commit: 745009dc796e56fc87e911138d801679ecd3576e [2/2] test
config: parisc-allnoconfig (https://download.01.org/0day-ci/archive/20240525/202405250910.MEZEIATv-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250910.MEZEIATv-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/202405250910.MEZEIATv-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from fs/aio.c:54:
>> fs/kpatch-macros.h:54:11: fatal error: kpatch.h: No such file or directory
54 | # include "kpatch.h"
| ^~~~~~~~~~
compilation terminated.
--
kernel/fork.c: In function 'kernel_clone':
>> kernel/fork.c:2815:18: error: implicit declaration of function 'klp_shadow_get_or_alloc' [-Werror=implicit-function-declaration]
2815 | newpid = klp_shadow_get_or_alloc(p, 0, sizeof(*newpid), GFP_KERNEL,
| ^~~~~~~~~~~~~~~~~~~~~~~
>> kernel/fork.c:2815:16: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
2815 | newpid = klp_shadow_get_or_alloc(p, 0, sizeof(*newpid), GFP_KERNEL,
| ^
cc1: some warnings being treated as errors
--
kernel/exit.c: In function 'do_exit':
>> kernel/exit.c:882:9: error: implicit declaration of function 'klp_shadow_free' [-Werror=implicit-function-declaration]
882 | klp_shadow_free(tsk, 0, NULL);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from kernel/kpatch-syscall.h:4,
from kernel/sys.c:1307:
>> kernel/kpatch-macros.h:54:11: fatal error: kpatch.h: No such file or directory
54 | # include "kpatch.h"
| ^~~~~~~~~~
compilation terminated.
--
>> drivers/tty/n_tty.c:2350: warning: expecting prototype for n_tty_write(). Prototype was for kpatch_n_tty_write() instead
--
fs/proc/array.c: In function 'task_context_switch_counts':
>> fs/proc/array.c:408:18: error: implicit declaration of function 'klp_shadow_get' [-Werror=implicit-function-declaration]
408 | newpid = klp_shadow_get(p, 0);
| ^~~~~~~~~~~~~~
>> fs/proc/array.c:408:16: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
408 | newpid = klp_shadow_get(p, 0);
| ^
cc1: some warnings being treated as errors
vim +54 fs/kpatch-macros.h
8603978b6c309a Josh Poimboeuf 2024-03-23 49
8603978b6c309a Josh Poimboeuf 2024-03-23 50 #ifdef HAS_LIVEPATCH_CALLBACKS
8603978b6c309a Josh Poimboeuf 2024-03-23 51 # include <linux/livepatch.h>
8603978b6c309a Josh Poimboeuf 2024-03-23 52 typedef struct klp_object patch_object;
8603978b6c309a Josh Poimboeuf 2024-03-23 53 #else
8603978b6c309a Josh Poimboeuf 2024-03-23 @54 # include "kpatch.h"
8603978b6c309a Josh Poimboeuf 2024-03-23 55 typedef struct kpatch_object patch_object;
8603978b6c309a Josh Poimboeuf 2024-03-23 56 #endif /* HAS_LIVEPATCH_CALLBACKS */
8603978b6c309a Josh Poimboeuf 2024-03-23 57
:::::: The code at line 54 was first introduced by commit
:::::: 8603978b6c309a0184ea26eb1cc822f889ec4654 todo
:::::: TO: Josh Poimboeuf <jpoimboe@kernel.org>
:::::: CC: Josh Poimboeuf <jpoimboe@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-25 1:46 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=202405250910.MEZEIATv-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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.