llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [cel:nfsd-testing 10/10] net/sunrpc/sched.c:411:10: error: no member named 'tk_pid' in 'struct rpc_task'
@ 2024-06-13  0:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-13  0:02 UTC (permalink / raw)
  To: Chuck Lever; +Cc: llvm, oe-kbuild-all

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux nfsd-testing
head:   322bb43cff91c5d5f74f7249adad9dc75fffa231
commit: 322bb43cff91c5d5f74f7249adad9dc75fffa231 [10/10] SUNRPC: Emit a trace event when a timeout occurs
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240613/202406130811.7nwAH0zD-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 4403cdbaf01379de96f8d0d6ea4f51a085e37766)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240613/202406130811.7nwAH0zD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406130811.7nwAH0zD-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from net/sunrpc/clnt.c:24:
   In file included from include/linux/kallsyms.h:13:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> net/sunrpc/clnt.c:2373:19: warning: unused variable 'req' [-Wunused-variable]
    2373 |         struct rpc_rqst *req = task->tk_rqstp;
         |                          ^~~
   2 warnings generated.
--
   In file included from net/sunrpc/sched.c:16:
   In file included from include/linux/interrupt.h:21:
   In file included from arch/riscv/include/asm/sections.h:9:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> net/sunrpc/sched.c:411:10: error: no member named 'tk_pid' in 'struct rpc_task'
     411 |                         task->tk_pid,
         |                         ~~~~  ^
   1 warning and 1 error generated.


vim +411 net/sunrpc/sched.c

   399	
   400	static void __rpc_sleep_on_priority_timeout(struct rpc_wait_queue *q,
   401			struct rpc_task *task, unsigned long timeout,
   402			unsigned char queue_priority)
   403	{
   404		if (WARN_ON_ONCE(RPC_IS_QUEUED(task)))
   405			return;
   406		if (time_is_after_jiffies(timeout)) {
   407			__rpc_do_sleep_on_priority(q, task, queue_priority);
   408			__rpc_add_timer(q, task, timeout);
   409		} else {
   410			trace_printk("task:%08x@%08x timed out\n",
 > 411				task->tk_pid,
   412				task->tk_client ?  task->tk_client->cl_clid : -1);
   413			task->tk_status = -ETIMEDOUT;
   414		}
   415	}
   416	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-06-13  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13  0:02 [cel:nfsd-testing 10/10] net/sunrpc/sched.c:411:10: error: no member named 'tk_pid' in 'struct rpc_task' 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;
as well as URLs for NNTP newsgroup(s).