lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 12 Mar 2022 05:24:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anuj Gupta <anuj20.g@...sung.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luis Chamberlain <mcgrof@...nel.org>,
        Kanchan Joshi <joshi.k@...sung.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'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ