lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 19 Apr 2022 12:32:46 +0800 From: kernel test robot <lkp@...el.com> To: Ingo Molnar <mingo@...nel.org> Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org Subject: [mingo-tip:sched/headers 1496/2356] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:956:22: warning: assignment to 'struct task_struct *' from 'int' makes pointer from integer without a cast tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: af93551cf39027d176f30b9beafc60a4c130998a commit: 87052c4c3bbc437e628c8d687fd5133d135333d0 [1496/2356] headers/deps: fs: Optimize <linux/fs.h> header dependencies config: x86_64-randconfig-a001-20220418 (https://download.01.org/0day-ci/archive/20220419/202204191227.MN9RvyB5-lkp@intel.com/config) compiler: gcc-11 (Debian 11.2.0-19) 11.2.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=87052c4c3bbc437e628c8d687fd5133d135333d0 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 87052c4c3bbc437e628c8d687fd5133d135333d0 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/coco/ arch/x86/kernel/cpu/mtrr/ drivers/bus/mhi/host/ drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/amdkfd/ drivers/hwmon/pmbus/ drivers/infiniband/sw/siw/ drivers/net/can/spi/mcp251xfd/ drivers/spi/ mm/ sound/soc/codecs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@...el.com> All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c: In function 'criu_resume': drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:2458:15: error: implicit declaration of function 'find_get_pid'; did you mean 'find_get_page'? [-Werror=implicit-function-declaration] 2458 | pid = find_get_pid(args->pid); | ^~~~~~~~~~~~ | find_get_page >> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:2458:13: warning: assignment to 'struct pid *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2458 | pid = find_get_pid(args->pid); | ^ drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c:2467:9: error: implicit declaration of function 'put_pid'; did you mean 'put_pid_ns'? [-Werror=implicit-function-declaration] 2467 | put_pid(pid); | ^~~~~~~ | put_pid_ns cc1: some warnings being treated as errors -- drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function 'kfd_lookup_process_by_pid': drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:956:24: error: implicit declaration of function 'get_pid_task'; did you mean 'get_cpu_mask'? [-Werror=implicit-function-declaration] 956 | task = get_pid_task(pid, PIDTYPE_PID); | ^~~~~~~~~~~~ | get_cpu_mask >> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:956:22: warning: assignment to 'struct task_struct *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 956 | task = get_pid_task(pid, PIDTYPE_PID); | ^ cc1: some warnings being treated as errors vim +956 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c abb208a8d490ba Felix Kuehling 2017-11-27 945 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 946 /* This increments the process->ref counter. */ 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 947 struct kfd_process *kfd_lookup_process_by_pid(struct pid *pid) 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 948 { 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 949 struct task_struct *task = NULL; 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 950 struct kfd_process *p = NULL; 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 951 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 952 if (!pid) { 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 953 task = current; 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 954 get_task_struct(task); 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 955 } else { 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 @956 task = get_pid_task(pid, PIDTYPE_PID); 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 957 } 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 958 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 959 if (task) { 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 960 p = find_process(task, true); 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 961 put_task_struct(task); 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 962 } 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 963 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 964 return p; 011bbb03024f5a Rajneesh Bhardwaj 2021-01-11 965 } 6ae2784114c037 Alex Sierra 2020-04-01 966 :::::: The code at line 956 was first introduced by commit :::::: 011bbb03024f5a22dc04eba370f9296f0cb83502 drm/amdkfd: CRIU Implement KFD resume ioctl :::::: TO: Rajneesh Bhardwaj <rajneesh.bhardwaj@....com> :::::: CC: Alex Deucher <alexander.deucher@....com> -- 0-DAY CI Kernel Test Service https://01.org/lkp
Powered by blists - more mailing lists