All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Baokun Li <libaokun1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 3534/3534] block/blk-ioinf.c:530:60: error: array has incomplete element type 'const struct blk_mq_debugfs_attr'
Date: Thu, 11 Dec 2025 11:28:22 +0800	[thread overview]
Message-ID: <202512111132.APojgRTS-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   d281438782e3c28a3df71a64513a3312d43dcf01
commit: 4192ef0b07762c6dabf617654df442fecffe8510 [3534/3534] blk-ioinf: add rqos/inflight/stat debufs interface
config: x86_64-randconfig-r071-20251211 (https://download.01.org/0day-ci/archive/20251211/202512111132.APojgRTS-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512111132.APojgRTS-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/202512111132.APojgRTS-lkp@intel.com/

All errors (new ones prefixed by >>):

   block/blk-ioinf.c:248:6: warning: no previous prototype for function 'ioinf_done' [-Wmissing-prototypes]
     248 | void ioinf_done(struct ioinf *inf, struct ioinf_rq_wait *rqw)
         |      ^
   block/blk-ioinf.c:248:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     248 | void ioinf_done(struct ioinf *inf, struct ioinf_rq_wait *rqw)
         | ^
         | static 
>> block/blk-ioinf.c:530:60: error: array has incomplete element type 'const struct blk_mq_debugfs_attr'
     530 | static const struct blk_mq_debugfs_attr ioinf_debugfs_attrs[] = {
         |                                                            ^
   block/blk-rq-qos.h:14:8: note: forward declaration of 'struct blk_mq_debugfs_attr'
      14 | struct blk_mq_debugfs_attr;
         |        ^
   block/blk-ioinf.c:547:5: warning: no previous prototype for function 'ioinf_calc_budget' [-Wmissing-prototypes]
     547 | u32 ioinf_calc_budget(struct ioinf_rq_wait *rqw)
         |     ^
   block/blk-ioinf.c:547:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     547 | u32 ioinf_calc_budget(struct ioinf_rq_wait *rqw)
         | ^
         | static 
   2 warnings and 1 error generated.


vim +530 block/blk-ioinf.c

   529	
 > 530	static const struct blk_mq_debugfs_attr ioinf_debugfs_attrs[] = {
   531		{"stat", 0400, ioinf_stat_show},
   532		{},
   533	};
   534	

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

                 reply	other threads:[~2025-12-11  3:28 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=202512111132.APojgRTS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=libaokun1@huawei.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.