All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: incompatible pointer types passing 'struct xregs_state *' to parameter of type 'struct task_struct *'
@ 2021-06-14 19:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-14 19:41 UTC (permalink / raw
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3946 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-randconfig-a001-20210614 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # 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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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:46:33: error: incompatible pointer types passing 'struct xregs_state *' to parameter of type 'struct task_struct *' [-Werror,-Wincompatible-pointer-types]
           copy_uabi_xstate_to_membuf(to, &fpu->state.xsave, XSTATE_COPY_FX);
                                          ^~~~~~~~~~~~~~~~~
   arch/x86/include/asm/fpu/xstate.h:142:71: note: passing argument to parameter 'tsk' here
   void copy_uabi_xstate_to_membuf(struct membuf to, struct task_struct *tsk,
                                                                         ^
   1 error generated.
--
>> arch/x86/kernel/fpu/xstate.c:1070:16: error: use of undeclared identifier 'target'
                           pkru.pkru = target->thread.pkru;
                                       ^
   1 error generated.


vim +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: 36387 bytes --]

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

only message in thread, other threads:[~2021-06-14 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-14 19:41 [tglx-devel:x86/fpu 48/53] arch/x86/kernel/fpu/regset.c:46:33: error: incompatible pointer types passing 'struct xregs_state *' to parameter of type 'struct task_struct *' 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.