All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 383/2579] net/sched/sch_generic.c:410:6: warning: no previous prototype for '__qdisc_run'
Date: Thu, 21 Apr 2022 14:42:21 +0800	[thread overview]
Message-ID: <202204210355.qsD90mF8-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: 251150fba8c4c2b9cd65237c81874f49421476a5 [383/2579] headers/uninline: Uninline single-use function: qdisc_run()
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220421/202204210355.qsD90mF8-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=251150fba8c4c2b9cd65237c81874f49421476a5
        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 251150fba8c4c2b9cd65237c81874f49421476a5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/pci/ fs/crypto/ kernel/bpf/ lib/ net/ipv6/ net/sched/

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

>> net/sched/sch_generic.c:410:6: warning: no previous prototype for '__qdisc_run' [-Wmissing-prototypes]
     410 | void __qdisc_run(struct Qdisc *q)
         |      ^~~~~~~~~~~


vim +/__qdisc_run +410 net/sched/sch_generic.c

bbd8a0d3a3b65d3 Krishna Kumar          2009-08-06  409  
37437bb2e1ae8af David S. Miller        2008-07-16 @410  void __qdisc_run(struct Qdisc *q)
48d83325b61043e Herbert Xu             2006-06-19  411  {
3d48b53fb2ae371 Matthias Tafelmeier    2016-12-29  412  	int quota = dev_tx_weight;
b8358d70ce1066d Jesper Dangaard Brouer 2014-10-09  413  	int packets;
2ba2506ca7ca62c Herbert Xu             2008-03-28  414  
b8358d70ce1066d Jesper Dangaard Brouer 2014-10-09  415  	while (qdisc_restart(q, &packets)) {
b8358d70ce1066d Jesper Dangaard Brouer 2014-10-09  416  		quota -= packets;
b60fa1c5d01a10e Eric Dumazet           2019-10-01  417  		if (quota <= 0) {
c4fef01ba4793a8 Yunsheng Lin           2021-06-22  418  			if (q->flags & TCQ_F_NOLOCK)
c4fef01ba4793a8 Yunsheng Lin           2021-06-22  419  				set_bit(__QDISC_STATE_MISSED, &q->state);
c4fef01ba4793a8 Yunsheng Lin           2021-06-22  420  			else
37437bb2e1ae8af David S. Miller        2008-07-16  421  				__netif_schedule(q);
c4fef01ba4793a8 Yunsheng Lin           2021-06-22  422  
d90df3ad07a20cd Herbert Xu             2007-05-10  423  			break;
2ba2506ca7ca62c Herbert Xu             2008-03-28  424  		}
2ba2506ca7ca62c Herbert Xu             2008-03-28  425  	}
48d83325b61043e Herbert Xu             2006-06-19  426  }
48d83325b61043e Herbert Xu             2006-06-19  427  

:::::: The code at line 410 was first introduced by commit
:::::: 37437bb2e1ae8af470dfcd5b4ff454110894ccaf pkt_sched: Schedule qdiscs instead of netdev_queue.

:::::: TO: David S. Miller <davem@davemloft.net>
:::::: CC: David S. Miller <davem@davemloft.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-21  6:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204210355.qsD90mF8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.