All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:io_uring-msg-ring.1 7/9] io_uring/io_uring.c:585:6: warning: no previous prototype for function 'io_cq_unlock_post'
Date: Thu, 6 Jun 2024 12:58:08 +0800	[thread overview]
Message-ID: <202406061201.htRM9t09-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-msg-ring.1
head:   9c799821c57ae3670fef01abd6746b33685c07d6
commit: 7de82d2e1d5af1210e8f631b7d994957c602a8d4 [7/9] hack
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240606/202406061201.htRM9t09-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240606/202406061201.htRM9t09-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/202406061201.htRM9t09-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from io_uring/io_uring.c:45:
   In file included from include/linux/syscalls.h:93:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:6:
   In file included from include/linux/ring_buffer.h:5:
   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_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> io_uring/io_uring.c:585:6: warning: no previous prototype for function 'io_cq_unlock_post' [-Wmissing-prototypes]
     585 | void io_cq_unlock_post(struct io_ring_ctx *ctx)
         |      ^
   io_uring/io_uring.c:585:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     585 | void io_cq_unlock_post(struct io_ring_ctx *ctx)
         | ^
         | static 
   2 warnings generated.


vim +/io_cq_unlock_post +585 io_uring/io_uring.c

   584	
 > 585	void io_cq_unlock_post(struct io_ring_ctx *ctx)
   586		__releases(ctx->completion_lock)
   587	{
   588		io_commit_cqring(ctx);
   589		spin_unlock(&ctx->completion_lock);
   590		io_cqring_wake(ctx);
   591		io_commit_cqring_flush(ctx);
   592	}
   593	

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

                 reply	other threads:[~2024-06-06  4:59 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=202406061201.htRM9t09-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=llvm@lists.linux.dev \
    --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.