All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anuj Gupta <anuj20.g@samsung.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Luis Chamberlain <mcgrof@kernel.org>,
	Kanchan Joshi <joshi.k@samsung.com>
Subject: [mcgrof-next:20220311-io-uring-cmd 6/17] include/linux/io_uring.h:53:5: warning: no previous prototype for 'io_uring_cmd_import_fixed'
Date: Sat, 12 Mar 2022 05:24:54 +0800	[thread overview]
Message-ID: <202203120537.2MDWUU2D-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20220311-io-uring-cmd
head:   abe791464a630c1cc3821258e002a0a623dc9b5a
commit: 6e63b680e18e66346f48ea7b637f778e146fb82f [6/17] io_uring: prep for fixed-buffer enabled uring-cmd
config: sparc-buildonly-randconfig-r003-20220310 (https://download.01.org/0day-ci/archive/20220312/202203120537.2MDWUU2D-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=6e63b680e18e66346f48ea7b637f778e146fb82f
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20220311-io-uring-cmd
        git checkout 6e63b680e18e66346f48ea7b637f778e146fb82f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash

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

   In file included from kernel/fork.c:98:
>> include/linux/io_uring.h:53:5: warning: no previous prototype for 'io_uring_cmd_import_fixed' [-Wmissing-prototypes]
      53 | int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/fork.c:162:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes]
     162 | void __weak arch_release_task_struct(struct task_struct *tsk)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~
   kernel/fork.c:764:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes]
     764 | void __init __weak arch_task_cache_init(void) { }
         |                    ^~~~~~~~~~~~~~~~~~~~
   kernel/fork.c:859:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
     859 | int __weak arch_dup_task_struct(struct task_struct *dst,
         |            ^~~~~~~~~~~~~~~~~~~~
--
   In file included from kernel/exit.c:65:
>> include/linux/io_uring.h:53:5: warning: no previous prototype for 'io_uring_cmd_import_fixed' [-Wmissing-prototypes]
      53 | int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/exit.c:1824:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
    1824 | __weak void abort(void)
         |             ^~~~~
--
   In file included from fs/exec.c:66:
>> include/linux/io_uring.h:53:5: warning: no previous prototype for 'io_uring_cmd_import_fixed' [-Wmissing-prototypes]
      53 | int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/io_uring_cmd_import_fixed +53 include/linux/io_uring.h

    36	
    37	static inline void io_uring_files_cancel(void)
    38	{
    39		if (current->io_uring)
    40			__io_uring_cancel(false);
    41	}
    42	static inline void io_uring_task_cancel(void)
    43	{
    44		if (current->io_uring)
    45			__io_uring_cancel(true);
    46	}
    47	static inline void io_uring_free(struct task_struct *tsk)
    48	{
    49		if (tsk->io_uring)
    50			__io_uring_free(tsk);
    51	}
    52	#else
  > 53	int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len,
    54			int rw, struct iov_iter *iter, void *ioucmd)
    55	{
    56		return -1;
    57	}
    58	static inline void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret)
    59	{
    60	}
    61	static inline void io_uring_cmd_complete_in_task(struct io_uring_cmd *ioucmd,
    62				void (*driver_cb)(struct io_uring_cmd *))
    63	{
    64	}
    65	static inline struct sock *io_uring_get_socket(struct file *file)
    66	{
    67		return NULL;
    68	}
    69	static inline void io_uring_task_cancel(void)
    70	{
    71	}
    72	static inline void io_uring_files_cancel(void)
    73	{
    74	}
    75	static inline void io_uring_free(struct task_struct *tsk)
    76	{
    77	}
    78	#endif
    79	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-03-11 22:50 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=202203120537.2MDWUU2D-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anuj20.g@samsung.com \
    --cc=joshi.k@samsung.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@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.