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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202305240819.ODFf0nbO-lkp@intel.com>
Date:   Wed, 24 May 2023 09:12:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     lingfuyi <lingfuyi@....com>, asml.silence@...il.com,
        axboe@...nel.dk
Cc:     oe-kbuild-all@...ts.linux.dev, io-uring@...r.kernel.org,
        linux-kernel@...r.kernel.org, lingfuyi <lingfuyi@....com>,
        k2ci <kernel-bot@...inos.cn>
Subject: Re: [PATCH] io_uring: fix compile error when CONFIG_IO_URING not set

Hi lingfuyi,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.4-rc3 next-20230523]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/lingfuyi/io_uring-fix-compile-error-when-CONFIG_IO_URING-not-set/20230523-195542
base:   linus/master
patch link:    https://lore.kernel.org/r/20230523092629.3402710-1-lingfuyi%40126.com
patch subject: [PATCH] io_uring: fix compile error when CONFIG_IO_URING not set
config: x86_64-randconfig-x083-20230522
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/82c556d20b38c439dafca8e7256eeba39980b58b
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review lingfuyi/io_uring-fix-compile-error-when-CONFIG_IO_URING-not-set/20230523-195542
        git checkout 82c556d20b38c439dafca8e7256eeba39980b58b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305240819.ODFf0nbO-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from net/unix/scm.c:11:
>> include/linux/io_uring.h:101:27: error: redefinition of 'io_uring_sqe_cmd'
     101 | static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
         |                           ^~~~~~~~~~~~~~~~
   include/linux/io_uring.h:39:27: note: previous definition of 'io_uring_sqe_cmd' with type 'const void *(const struct io_uring_sqe *)'
      39 | static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
         |                           ^~~~~~~~~~~~~~~~
--
   In file included from kernel/exit.c:67:
>> include/linux/io_uring.h:101:27: error: redefinition of 'io_uring_sqe_cmd'
     101 | static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
         |                           ^~~~~~~~~~~~~~~~
   include/linux/io_uring.h:39:27: note: previous definition of 'io_uring_sqe_cmd' with type 'const void *(const struct io_uring_sqe *)'
      39 | static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
         |                           ^~~~~~~~~~~~~~~~
   kernel/exit.c:1917:32: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
    1917 | __weak __function_aligned void abort(void)
         |                                ^~~~~


vim +/io_uring_sqe_cmd +101 include/linux/io_uring.h

    56	
    57	static inline void io_uring_files_cancel(void)
    58	{
    59		if (current->io_uring) {
    60			io_uring_unreg_ringfd();
    61			__io_uring_cancel(false);
    62		}
    63	}
    64	static inline void io_uring_task_cancel(void)
    65	{
    66		if (current->io_uring)
    67			__io_uring_cancel(true);
    68	}
    69	static inline void io_uring_free(struct task_struct *tsk)
    70	{
    71		if (tsk->io_uring)
    72			__io_uring_free(tsk);
    73	}
    74	#else
    75	static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw,
    76				      struct iov_iter *iter, void *ioucmd)
    77	{
    78		return -EOPNOTSUPP;
    79	}
    80	static inline void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret,
    81			ssize_t ret2, unsigned issue_flags)
    82	{
    83	}
    84	static inline void io_uring_cmd_complete_in_task(struct io_uring_cmd *ioucmd,
    85				void (*task_work_cb)(struct io_uring_cmd *, unsigned))
    86	{
    87	}
    88	static inline struct sock *io_uring_get_socket(struct file *file)
    89	{
    90		return NULL;
    91	}
    92	static inline void io_uring_task_cancel(void)
    93	{
    94	}
    95	static inline void io_uring_files_cancel(void)
    96	{
    97	}
    98	static inline void io_uring_free(struct task_struct *tsk)
    99	{
   100	}
 > 101	static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe)
   102	{
   103	       return NULL;
   104	}
   105	static inline const char *io_uring_get_opcode(u8 opcode)
   106	{
   107		return "";
   108	}
   109	#endif
   110	

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

View attachment "config" of type "text/plain" (153157 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ