CC: [email protected]
CC: [email protected]
TO: Roman Gushchin <[email protected]>
CC: Alexei Starovoitov <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   d6d09a6942050f21b065a134169002b4d6b701ef
commit: 48edc1f78aabeba35ed00e40c36f211de89e0090 bpf: Prepare for memcg-based 
memory accounting for bpf maps
date:   9 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 9 months ago
config: nds32-randconfig-m031-20210818 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
net/9p/trans_fd.c:668 p9_fd_request() error: %p expects pointer argument, but 
argument 5 has type 'int'
net/9p/trans_fd.c:1135 p9_poll_workfn() error: %p expects pointer argument, but 
argument 4 has type 'int'

vim +/int +668 net/9p/trans_fd.c

8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  650  
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  651  /**
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  652   * p9_fd_request - send 9P 
request
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  653   * The function can sleep 
until the request is scheduled for sending.
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  654   * The function can be 
interrupted. Return from the function is not
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  655   * a guarantee that the 
request is sent successfully.
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  656   *
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  657   * @client: client instance
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  658   * @req: request to be sent
ee443996a35c1e Eric Van Hensbergen 2008-03-05  659   *
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  660   */
ee443996a35c1e Eric Van Hensbergen 2008-03-05  661  
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  662  static int 
p9_fd_request(struct p9_client *client, struct p9_req_t *req)
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  663  {
7594bf37ae9ffc Al Viro             2017-07-16  664      __poll_t n;
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  665      struct p9_trans_fd *ts 
= client->trans;
263c582888d3cd Simon Derr          2014-03-11  666      struct p9_conn *m = 
&ts->conn;
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  667  
5d3851530d6d68 Joe Perches         2011-11-28 @668      
p9_debug(P9_DEBUG_TRANS, "mux %p task %p tcall %p id %d\n",
523adb6cc10b48 Dominique Martinet  2018-07-30  669               m, current, 
&req->tc, req->tc.id);
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  670      if (m->err < 0)
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  671              return m->err;
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  672  
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  673      
spin_lock(&client->lock);
7eb923b80c8ce1 Eric Van Hensbergen 2008-10-17  674      req->status = 
REQ_STATUS_UNSENT;
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  675      
list_add_tail(&req->req_list, &m->unsent_req_list);
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  676      
spin_unlock(&client->lock);
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  677  
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  678      if 
(test_and_clear_bit(Wpending, &m->wsched))
a9a08845e9acbd Linus Torvalds      2018-02-11  679              n = EPOLLOUT;
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  680      else
7594bf37ae9ffc Al Viro             2017-07-16  681              n = 
p9_fd_poll(m->client, NULL, NULL);
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  682  
a9a08845e9acbd Linus Torvalds      2018-02-11  683      if (n & EPOLLOUT && 
!test_and_set_bit(Wworksched, &m->wsched))
61edeeed917958 Tejun Heo           2011-02-01  684              
schedule_work(&m->wq);
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  685  
91b8534fa8f5e0 Eric Van Hensbergen 2008-10-13  686      return 0;
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  687  }
8a0dc95fd976a0 Eric Van Hensbergen 2008-02-06  688  

:::::: The code at line 668 was first introduced by commit
:::::: 5d3851530d6d68564e4e0ce04d0547d4d106fc72 9p: Reduce object size with 
CONFIG_NET_9P_DEBUG

:::::: TO: Joe Perches <[email protected]>
:::::: CC: Eric Van Hensbergen <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to