LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [peterz-queue:sched/core 8/11] include/linux/sched.h:1722:57: warning: unused parameter 'dst'
@ 2021-08-21  1:20 kernel test robot
  2021-08-23  9:02 ` Peter Zijlstra
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2021-08-21  1:20 UTC (permalink / raw)
  To: Will Deacon
  Cc: clang-built-linux, kbuild-all, linux-kernel, Peter Zijlstra,
	Valentin Schneider

[-- Attachment #1: Type: text/plain, Size: 31629 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head:   234b8ab6476c5edd5262e2ff563de9498d60044a
commit: b90ca8badbd11488e5f762346b028666808164e7 [8/11] sched: Introduce task_struct::user_cpus_ptr to track requested affinity
config: i386-randconfig-a016-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=b90ca8badbd11488e5f762346b028666808164e7
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/core
        git checkout b90ca8badbd11488e5f762346b028666808164e7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

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 >>):

                                                               ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
   In file included from include/linux/ratelimit.h:6:
   In file included from include/linux/sched.h:21:
   include/linux/seccomp.h:71:65: warning: unused parameter 'sd' [-Wunused-parameter]
   static inline int __secure_computing(const struct seccomp_data *sd) { return 0; }
                                                                   ^
   include/linux/seccomp.h:81:52: warning: unused parameter 'arg2' [-Wunused-parameter]
   static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
                                                      ^
   include/linux/seccomp.h:81:71: warning: unused parameter 'arg3' [-Wunused-parameter]
   static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
                                                                         ^
   include/linux/seccomp.h:86:48: warning: unused parameter 's' [-Wunused-parameter]
   static inline int seccomp_mode(struct seccomp *s)
                                                  ^
   include/linux/seccomp.h:96:63: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void seccomp_filter_release(struct task_struct *tsk)
                                                                 ^
   include/linux/seccomp.h:100:59: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void get_seccomp_filter(struct task_struct *tsk)
                                                             ^
   include/linux/seccomp.h:112:59: warning: unused parameter 'task' [-Wunused-parameter]
   static inline long seccomp_get_filter(struct task_struct *task,
                                                             ^
   include/linux/seccomp.h:113:25: warning: unused parameter 'n' [-Wunused-parameter]
                                         unsigned long n, void __user *data)
                                                       ^
   include/linux/seccomp.h:113:41: warning: unused parameter 'data' [-Wunused-parameter]
                                         unsigned long n, void __user *data)
                                                                       ^
   include/linux/seccomp.h:117:61: warning: unused parameter 'task' [-Wunused-parameter]
   static inline long seccomp_get_metadata(struct task_struct *task,
                                                               ^
   include/linux/seccomp.h:118:20: warning: unused parameter 'filter_off' [-Wunused-parameter]
                                           unsigned long filter_off,
                                                         ^
   include/linux/seccomp.h:119:19: warning: unused parameter 'data' [-Wunused-parameter]
                                           void __user *data)
                                                        ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
   In file included from include/linux/ratelimit.h:6:
   In file included from include/linux/sched.h:26:
   include/linux/latencytop.h:47:47: warning: unused parameter 'task' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                 ^
   include/linux/latencytop.h:47:57: warning: unused parameter 'usecs' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                           ^
   include/linux/latencytop.h:47:68: warning: unused parameter 'inter' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                                      ^
   include/linux/latencytop.h:51:66: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void clear_tsk_latency_tracing(struct task_struct *p)
                                                                    ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
   In file included from include/linux/ratelimit.h:6:
   In file included from include/linux/sched.h:33:
   In file included from include/linux/posix-timers.h:9:
   include/linux/task_work.h:30:55: warning: unused parameter 'task' [-Wunused-parameter]
   static inline void exit_task_work(struct task_struct *task)
                                                         ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
   In file included from include/linux/ratelimit.h:6:
   In file included from include/linux/sched.h:33:
   include/linux/posix-timers.h:174:65: warning: unused parameter 'pct' [-Wunused-parameter]
   static inline void posix_cputimers_init(struct posix_cputimers *pct) { }
                                                                   ^
   include/linux/posix-timers.h:175:71: warning: unused parameter 'pct' [-Wunused-parameter]
   static inline void posix_cputimers_group_init(struct posix_cputimers *pct,
                                                                         ^
   include/linux/posix-timers.h:176:16: warning: unused parameter 'cpu_limit' [-Wunused-parameter]
                                                 u64 cpu_limit) { }
                                                     ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:15:
   In file included from include/linux/dev_printk.h:16:
   In file included from include/linux/ratelimit.h:6:
   include/linux/sched.h:1713:60: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
                                                              ^
   include/linux/sched.h:1713:85: warning: unused parameter 'new_mask' [-Wunused-parameter]
   static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
                                                                                       ^
   include/linux/sched.h:1716:60: warning: unused parameter 'p' [-Wunused-parameter]
   static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
                                                              ^
>> include/linux/sched.h:1722:57: warning: unused parameter 'dst' [-Wunused-parameter]
   static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
                                                           ^
>> include/linux/sched.h:1722:91: warning: unused parameter 'node' [-Wunused-parameter]
   static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
                                                                                             ^
   include/linux/sched.h:1829:53: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void kick_process(struct task_struct *tsk) { }
                                                       ^
   include/linux/sched.h:1858:68: warning: unused parameter 'p' [-Wunused-parameter]
   static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
                                                                      ^
   include/linux/sched.h:1858:84: warning: unused parameter 'match_state' [-Wunused-parameter]
   static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
                                                                                      ^
   include/linux/sched.h:1985:46: warning: unused parameter 'lock' [-Wunused-parameter]
   static inline int spin_needbreak(spinlock_t *lock)
                                                ^
   include/linux/sched.h:2002:46: warning: unused parameter 'lock' [-Wunused-parameter]
   static inline int rwlock_needbreak(rwlock_t *lock)
                                                ^
   include/linux/sched.h:2034:63: warning: unused parameter 'p' [-Wunused-parameter]
   static inline unsigned int task_cpu(const struct task_struct *p)
                                                                 ^
   include/linux/sched.h:2039:53: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
                                                       ^
   include/linux/sched.h:2039:69: warning: unused parameter 'cpu' [-Wunused-parameter]
   static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
                                                                       ^
   include/linux/sched.h:2054:42: warning: unused parameter 'cpu' [-Wunused-parameter]
   static inline bool vcpu_is_preempted(int cpu)
                                            ^
   include/linux/sched.h:2154:63: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_set_notify_resume(struct task_struct *t)
                                                                 ^
   include/linux/sched.h:2157:62: warning: unused parameter 'ksig' [-Wunused-parameter]
   static inline void rseq_handle_notify_resume(struct ksignal *ksig,
                                                                ^
   include/linux/sched.h:2158:27: warning: unused parameter 'regs' [-Wunused-parameter]
                                                struct pt_regs *regs)
                                                                ^
   include/linux/sched.h:2161:56: warning: unused parameter 'ksig' [-Wunused-parameter]
   static inline void rseq_signal_deliver(struct ksignal *ksig,
                                                          ^
   include/linux/sched.h:2162:28: warning: unused parameter 'regs' [-Wunused-parameter]
                                          struct pt_regs *regs)
                                                          ^
   include/linux/sched.h:2165:53: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_preempt(struct task_struct *t)
                                                       ^
   include/linux/sched.h:2168:53: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_migrate(struct task_struct *t)
                                                       ^
   include/linux/sched.h:2171:50: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
                                                    ^
   include/linux/sched.h:2171:67: warning: unused parameter 'clone_flags' [-Wunused-parameter]
   static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
                                                                     ^
   include/linux/sched.h:2174:52: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_execve(struct task_struct *t)
                                                      ^
   include/linux/sched.h:2186:49: warning: unused parameter 'regs' [-Wunused-parameter]
   static inline void rseq_syscall(struct pt_regs *regs)
                                                   ^
   include/linux/sched.h:2212:56: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void sched_core_free(struct task_struct *tsk) { }
                                                          ^
   include/linux/sched.h:2213:56: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void sched_core_fork(struct task_struct *p) { }
                                                          ^
   In file included from drivers/gpu/drm/i915/i915_drv.c:30:
   In file included from include/linux/acpi.h:15:
   In file included from include/linux/device.h:16:
   In file included from include/linux/energy_model.h:10:
   include/linux/sched/topology.h:210:36: warning: unused parameter 'ndoms_new' [-Wunused-parameter]
   partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
                                      ^
   include/linux/sched/topology.h:210:61: warning: unused parameter 'doms_new' [-Wunused-parameter]
   partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
                                                               ^
   include/linux/sched/topology.h:211:37: warning: unused parameter 'dattr_new' [-Wunused-parameter]
                                  struct sched_domain_attr *dattr_new)
                                                            ^
   include/linux/sched/topology.h:216:29: warning: unused parameter 'ndoms_new' [-Wunused-parameter]
   partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
                               ^
   include/linux/sched/topology.h:216:54: warning: unused parameter 'doms_new' [-Wunused-parameter]
   partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
                                                        ^
   include/linux/sched/topology.h:217:30: warning: unused parameter 'dattr_new' [-Wunused-parameter]
                           struct sched_domain_attr *dattr_new)
                                                     ^
   include/linux/sched/topology.h:221:41: warning: unused parameter 'this_cpu' [-Wunused-parameter]
   static inline bool cpus_share_cache(int this_cpu, int that_cpu)
                                           ^
   include/linux/sched/topology.h:221:55: warning: unused parameter 'that_cpu' [-Wunused-parameter]
   static inline bool cpus_share_cache(int this_cpu, int that_cpu)
                                                         ^
   include/linux/sched/topology.h:248:43: warning: unused parameter 'cpu' [-Wunused-parameter]
   unsigned long arch_scale_cpu_capacity(int cpu)
                                             ^
   include/linux/sched/topology.h:256:47: warning: unused parameter 'cpu' [-Wunused-parameter]
--
   In file included from include/linux/sched.h:22:
   In file included from include/linux/nodemask.h:96:
   include/linux/numa.h:47:47: warning: unused parameter 'node' [-Wunused-parameter]
   static inline int numa_map_to_online_node(int node)
                                                 ^
   include/linux/numa.h:51:50: warning: unused parameter 'start' [-Wunused-parameter]
   static inline int memory_add_physaddr_to_nid(u64 start)
                                                    ^
   include/linux/numa.h:55:43: warning: unused parameter 'start' [-Wunused-parameter]
   static inline int phys_to_target_node(u64 start)
                                             ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from include/linux/sched.h:22:
   include/linux/nodemask.h:465:57: warning: unused parameter 'state' [-Wunused-parameter]
   static inline int node_state(int node, enum node_states state)
                                                           ^
   include/linux/nodemask.h:470:39: warning: unused parameter 'node' [-Wunused-parameter]
   static inline void node_set_state(int node, enum node_states state)
                                         ^
   include/linux/nodemask.h:470:62: warning: unused parameter 'state' [-Wunused-parameter]
   static inline void node_set_state(int node, enum node_states state)
                                                                ^
   include/linux/nodemask.h:474:41: warning: unused parameter 'node' [-Wunused-parameter]
   static inline void node_clear_state(int node, enum node_states state)
                                           ^
   include/linux/nodemask.h:474:64: warning: unused parameter 'state' [-Wunused-parameter]
   static inline void node_clear_state(int node, enum node_states state)
                                                                  ^
   include/linux/nodemask.h:478:51: warning: unused parameter 'state' [-Wunused-parameter]
   static inline int num_node_state(enum node_states state)
                                                     ^
   include/linux/nodemask.h:500:49: warning: unused parameter 'mask' [-Wunused-parameter]
   static inline int node_random(const nodemask_t *mask)
                                                   ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from include/linux/sched.h:26:
   include/linux/latencytop.h:47:47: warning: unused parameter 'task' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                 ^
   include/linux/latencytop.h:47:57: warning: unused parameter 'usecs' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                           ^
   include/linux/latencytop.h:47:68: warning: unused parameter 'inter' [-Wunused-parameter]
   account_scheduler_latency(struct task_struct *task, int usecs, int inter)
                                                                      ^
   include/linux/latencytop.h:51:66: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void clear_tsk_latency_tracing(struct task_struct *p)
                                                                    ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from include/linux/sched.h:33:
   In file included from include/linux/posix-timers.h:9:
   include/linux/task_work.h:30:55: warning: unused parameter 'task' [-Wunused-parameter]
   static inline void exit_task_work(struct task_struct *task)
                                                         ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   In file included from include/linux/sched.h:33:
   include/linux/posix-timers.h:174:65: warning: unused parameter 'pct' [-Wunused-parameter]
   static inline void posix_cputimers_init(struct posix_cputimers *pct) { }
                                                                   ^
   include/linux/posix-timers.h:175:71: warning: unused parameter 'pct' [-Wunused-parameter]
   static inline void posix_cputimers_group_init(struct posix_cputimers *pct,
                                                                         ^
   include/linux/posix-timers.h:176:16: warning: unused parameter 'cpu_limit' [-Wunused-parameter]
                                                 u64 cpu_limit) { }
                                                     ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:9:
   include/linux/sched.h:1713:60: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
                                                              ^
   include/linux/sched.h:1713:85: warning: unused parameter 'new_mask' [-Wunused-parameter]
   static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
                                                                                       ^
   include/linux/sched.h:1716:60: warning: unused parameter 'p' [-Wunused-parameter]
   static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
                                                              ^
>> include/linux/sched.h:1722:57: warning: unused parameter 'dst' [-Wunused-parameter]
   static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
                                                           ^
>> include/linux/sched.h:1722:91: warning: unused parameter 'node' [-Wunused-parameter]
   static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
                                                                                             ^
   include/linux/sched.h:1829:53: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void kick_process(struct task_struct *tsk) { }
                                                       ^
   include/linux/sched.h:1858:68: warning: unused parameter 'p' [-Wunused-parameter]
   static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
                                                                      ^
   include/linux/sched.h:1858:84: warning: unused parameter 'match_state' [-Wunused-parameter]
   static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
                                                                                      ^
   include/linux/sched.h:1985:46: warning: unused parameter 'lock' [-Wunused-parameter]
   static inline int spin_needbreak(spinlock_t *lock)
                                                ^
   include/linux/sched.h:2002:46: warning: unused parameter 'lock' [-Wunused-parameter]
   static inline int rwlock_needbreak(rwlock_t *lock)
                                                ^
   include/linux/sched.h:2034:63: warning: unused parameter 'p' [-Wunused-parameter]
   static inline unsigned int task_cpu(const struct task_struct *p)
                                                                 ^
   include/linux/sched.h:2039:53: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
                                                       ^
   include/linux/sched.h:2039:69: warning: unused parameter 'cpu' [-Wunused-parameter]
   static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
                                                                       ^
   include/linux/sched.h:2054:42: warning: unused parameter 'cpu' [-Wunused-parameter]
   static inline bool vcpu_is_preempted(int cpu)
                                            ^
   include/linux/sched.h:2154:63: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_set_notify_resume(struct task_struct *t)
                                                                 ^
   include/linux/sched.h:2157:62: warning: unused parameter 'ksig' [-Wunused-parameter]
   static inline void rseq_handle_notify_resume(struct ksignal *ksig,
                                                                ^
   include/linux/sched.h:2158:27: warning: unused parameter 'regs' [-Wunused-parameter]
                                                struct pt_regs *regs)
                                                                ^
   include/linux/sched.h:2161:56: warning: unused parameter 'ksig' [-Wunused-parameter]
   static inline void rseq_signal_deliver(struct ksignal *ksig,
                                                          ^
   include/linux/sched.h:2162:28: warning: unused parameter 'regs' [-Wunused-parameter]
                                          struct pt_regs *regs)
                                                          ^
   include/linux/sched.h:2165:53: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_preempt(struct task_struct *t)
                                                       ^
   include/linux/sched.h:2168:53: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_migrate(struct task_struct *t)
                                                       ^
   include/linux/sched.h:2171:50: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
                                                    ^
   include/linux/sched.h:2171:67: warning: unused parameter 'clone_flags' [-Wunused-parameter]
   static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
                                                                     ^
   include/linux/sched.h:2174:52: warning: unused parameter 't' [-Wunused-parameter]
   static inline void rseq_execve(struct task_struct *t)
                                                      ^
   include/linux/sched.h:2186:49: warning: unused parameter 'regs' [-Wunused-parameter]
   static inline void rseq_syscall(struct pt_regs *regs)
                                                   ^
   include/linux/sched.h:2212:56: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void sched_core_free(struct task_struct *tsk) { }
                                                          ^
   include/linux/sched.h:2213:56: warning: unused parameter 'p' [-Wunused-parameter]
   static inline void sched_core_fork(struct task_struct *p) { }
                                                          ^
   In file included from drivers/gpu/drm/i915/i915_config.c:6:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   In file included from arch/x86/include/asm/hypervisor.h:37:
   In file included from arch/x86/include/asm/kvm_para.h:7:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:10:
   include/linux/vtime.h:28:57: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_user_enter(struct task_struct *tsk) { }
                                                           ^
   include/linux/vtime.h:29:56: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_user_exit(struct task_struct *tsk) { }
                                                          ^
   include/linux/vtime.h:30:58: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_guest_enter(struct task_struct *tsk) { }
                                                            ^
   include/linux/vtime.h:31:57: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_guest_exit(struct task_struct *tsk) { }
                                                           ^
   include/linux/vtime.h:32:56: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
                                                          ^
   include/linux/vtime.h:32:65: warning: unused parameter 'cpu' [-Wunused-parameter]
   static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
                                                                   ^
   include/linux/vtime.h:41:58: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
                                                            ^
   include/linux/vtime.h:41:76: warning: unused parameter 'offset' [-Wunused-parameter]
   static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
                                                                              ^
   include/linux/vtime.h:42:62: warning: unused parameter 'tsk' [-Wunused-parameter]
   static inline void vtime_account_softirq(struct task_struct *tsk) { }
..


vim +/dst +1722 include/linux/sched.h

  1704	
  1705	extern int cpuset_cpumask_can_shrink(const struct cpumask *cur, const struct cpumask *trial);
  1706	extern int task_can_attach(struct task_struct *p, const struct cpumask *cs_cpus_allowed);
  1707	#ifdef CONFIG_SMP
  1708	extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
  1709	extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
  1710	extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node);
  1711	extern void release_user_cpus_ptr(struct task_struct *p);
  1712	#else
> 1713	static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
  1714	{
  1715	}
  1716	static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
  1717	{
  1718		if (!cpumask_test_cpu(0, new_mask))
  1719			return -EINVAL;
  1720		return 0;
  1721	}
> 1722	static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
  1723	{
  1724		if (src->user_cpus_ptr)
  1725			return -EINVAL;
  1726		return 0;
  1727	}
  1728	static inline void release_user_cpus_ptr(struct task_struct *p)
  1729	{
  1730		WARN_ON(p->user_cpus_ptr);
  1731	}
  1732	#endif
  1733	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35475 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-13  1:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21  1:20 [peterz-queue:sched/core 8/11] include/linux/sched.h:1722:57: warning: unused parameter 'dst' kernel test robot
2021-08-23  9:02 ` Peter Zijlstra
2021-08-23  9:16   ` [kbuild-all] " Chen, Rong A
2021-08-23  9:26     ` Peter Zijlstra
2021-09-11 12:24     ` Peter Zijlstra
2021-09-13  1:05       ` Rong Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).