* [tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type
@ 2021-06-14 20:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-14 20:24 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5471 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
head: 70e967061547de5e520d4d81dd7f727894b06f6e
commit: 83745cf1a7e45c2930061f6a9b3d874152999b32 [48/53] x86/fpu: Hook up PKRU into ptrace()
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=83745cf1a7e45c2930061f6a9b3d874152999b32
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel x86/fpu
git checkout 83745cf1a7e45c2930061f6a9b3d874152999b32
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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/fpu/regset.c: In function 'xfpregs_get':
>> arch/x86/kernel/fpu/regset.c:46:33: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type [-Werror=incompatible-pointer-types]
46 | copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
| ^~~~~~~~~~~~~~~~~
| |
| struct xregs_state *
In file included from arch/x86/include/asm/pkru.h:5,
from arch/x86/include/asm/pgtable.h:26,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/x86/include/asm/fpu/internal.h:17,
from arch/x86/kernel/fpu/regset.c:8:
arch/x86/include/asm/fpu/xstate.h:142:71: note: expected 'struct task_struct *' but argument is of type 'struct xregs_state *'
142 | void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
| ~~~~~~~~~~~~~~~~~~~~^~~
arch/x86/kernel/fpu/regset.c: In function 'fpregs_get':
arch/x86/kernel/fpu/regset.c:303:34: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type [-Werror=incompatible-pointer-types]
303 | copy_uabi_xstate_to_membuf(mb, &fpu->state.xsave, XSTATE_COPY_FP);
| ^~~~~~~~~~~~~~~~~
| |
| struct xregs_state *
In file included from arch/x86/include/asm/pkru.h:5,
from arch/x86/include/asm/pgtable.h:26,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/x86/include/asm/fpu/internal.h:17,
from arch/x86/kernel/fpu/regset.c:8:
arch/x86/include/asm/fpu/xstate.h:142:71: note: expected 'struct task_struct *' but argument is of type 'struct xregs_state *'
142 | void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
| ~~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
--
arch/x86/kernel/fpu/xstate.c: In function 'copy_uabi_xstate_to_membuf':
>> arch/x86/kernel/fpu/xstate.c:1070:16: error: 'target' undeclared (first use in this function)
1070 | pkru.pkru = target->thread.pkru;
| ^~~~~~
arch/x86/kernel/fpu/xstate.c:1070:16: note: each undeclared identifier is reported only once for each function it appears in
vim +/copy_uabi_xstate_to_membuf +46 arch/x86/kernel/fpu/regset.c
0c306bcfba2882 Ingo Molnar 2015-04-30 30
0c306bcfba2882 Ingo Molnar 2015-04-30 31 int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
0557d64d983e3d Al Viro 2020-02-18 32 struct membuf to)
0c306bcfba2882 Ingo Molnar 2015-04-30 33 {
0c306bcfba2882 Ingo Molnar 2015-04-30 34 struct fpu *fpu = &target->thread.fpu;
0c306bcfba2882 Ingo Molnar 2015-04-30 35
2467897d5adf53 Thomas Gleixner 2021-06-14 36 if (!static_cpu_has(X86_FEATURE_FXSR))
0c306bcfba2882 Ingo Molnar 2015-04-30 37 return -ENODEV;
0c306bcfba2882 Ingo Molnar 2015-04-30 38
369a036de20671 Ingo Molnar 2017-09-23 39 fpu__prepare_read(fpu);
0c306bcfba2882 Ingo Molnar 2015-04-30 40
2467897d5adf53 Thomas Gleixner 2021-06-14 41 if (!use_xsave()) {
2467897d5adf53 Thomas Gleixner 2021-06-14 42 return membuf_write(&to, &fpu->state.fxsave,
2467897d5adf53 Thomas Gleixner 2021-06-14 43 sizeof(fpu->state.fxsave));
2467897d5adf53 Thomas Gleixner 2021-06-14 44 }
2467897d5adf53 Thomas Gleixner 2021-06-14 45
2467897d5adf53 Thomas Gleixner 2021-06-14 @46 copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
2467897d5adf53 Thomas Gleixner 2021-06-14 47 return 0;
0c306bcfba2882 Ingo Molnar 2015-04-30 48 }
0c306bcfba2882 Ingo Molnar 2015-04-30 49
:::::: The code at line 46 was first introduced by commit
:::::: 2467897d5adf53cd056c96199f8222f0fa2e5a55 x86/fpu: Use copy_uabi_xstate_to_membuf() in xfpregs_get()
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41768 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-14 20:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-14 20:24 [tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: passing argument 2 of 'copy_uabi_xstate_to_membuf' from incompatible pointer type 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.