* [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
@ 2022-04-19 4:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-19 4:32 UTC (permalink / raw)
To: Ingo Molnar; +Cc: kbuild-all, linux-kernel
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@intel.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@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-19 4:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 4:32 [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 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®