From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D52B9C433EF for ; Thu, 10 Mar 2022 10:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234070AbiCJK74 (ORCPT ); Thu, 10 Mar 2022 05:59:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232769AbiCJK7z (ORCPT ); Thu, 10 Mar 2022 05:59:55 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA58613AA11 for ; Thu, 10 Mar 2022 02:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646909934; x=1678445934; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=M5q+tzMs3gOSchhRYjEnJEfpVP9MK4AAfGfOf27NKUM=; b=S9YNYc+RigedWXIzgMOBdBkyjXTqTT/PpWGLApQZzAJLrWYaEbFlF4nK IegcO2pbyagJ2s3u1hFyRi58rdoAmfCeRvtvBjkmkdNRYu68Yq8BCaLSD 4t2o2Hck9Kc56KP0UKh8M7T/7cfwC6fvLeGd4stgxB9LdNoOT1ucJhs3G xJ6F++Yp/F3sMR+nc/2/V+OXeJT5wJR99cZ1hFrJ+VmSM7Xh8ZwJ+10VV tnJPno0iudIAJgEtbyR1yijiDIQBDNaEDtFOgNu7glMqRsjaaIAdRHbXv w/NL809FSBfUBSbCdeORIBJ4/HMOf/WMNJ4npyBmqdxF9gtIuIz5dEINt g==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="235827828" X-IronPort-AV: E=Sophos;i="5.90,170,1643702400"; d="scan'208";a="235827828" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 02:58:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,170,1643702400"; d="scan'208";a="547978293" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 10 Mar 2022 02:58:52 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSGVP-0004p8-MG; Thu, 10 Mar 2022 10:58:51 +0000 Date: Thu, 10 Mar 2022 18:58:01 +0800 From: kernel test robot To: Andrea Tomassetti , linux-bcache@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Coly Li , Kent Overstreet , Zhang Zhen , Andrea Tomassetti Subject: Re: [PATCH] bcache: Use bcache without formatting existing device Message-ID: <202203101836.DQDgIjIF-lkp@intel.com> References: <20220310085240.334068-1-andrea.tomassetti@devo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220310085240.334068-1-andrea.tomassetti@devo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.org Hi Andrea, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.17-rc7 next-20220309] [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] url: https://github.com/0day-ci/linux/commits/Andrea-Tomassetti/bcache-Use-bcache-without-formatting-existing-device/20220310-165353 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3bf7edc84a9eb4007dd9a0cb8878a7e1d5ec6a3b config: riscv-buildonly-randconfig-r002-20220310 (https://download.01.org/0day-ci/archive/20220310/202203101836.DQDgIjIF-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/b5073e4ece2a86f002ca66fb1d864034c12be3e2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Andrea-Tomassetti/bcache-Use-bcache-without-formatting-existing-device/20220310-165353 git checkout b5073e4ece2a86f002ca66fb1d864034c12be3e2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/md/bcache/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/md/bcache/control.c:18:6: warning: no previous prototype for function 'bch_service_ioctl_ctrl' [-Wmissing-prototypes] long bch_service_ioctl_ctrl(struct file *filp, unsigned int cmd, ^ drivers/md/bcache/control.c:18:1: note: declare 'static' if the function is not intended to be used outside of this translation unit long bch_service_ioctl_ctrl(struct file *filp, unsigned int cmd, ^ static 1 warning generated. vim +/bch_service_ioctl_ctrl +18 drivers/md/bcache/control.c 15 16 /* this handles IOCTL for /dev/bcache_ctrl */ 17 /*********************************************/ > 18 long bch_service_ioctl_ctrl(struct file *filp, unsigned int cmd, 19 unsigned long arg) 20 { 21 int retval = 0; 22 23 if (_IOC_TYPE(cmd) != BCH_IOCTL_MAGIC) 24 return -EINVAL; 25 26 if (!capable(CAP_SYS_ADMIN)) { 27 /* Must be root to issue ioctls */ 28 return -EPERM; 29 } 30 31 switch (cmd) { 32 case BCH_IOCTL_REGISTER_DEVICE: { 33 struct bch_register_device *cmd_info; 34 35 cmd_info = vmalloc(sizeof(struct bch_register_device)); 36 if (!cmd_info) 37 return -ENOMEM; 38 39 if (copy_from_user(cmd_info, (void __user *)arg, 40 sizeof(struct bch_register_device))) { 41 pr_err("Cannot copy cmd info from user space\n"); 42 vfree(cmd_info); 43 return -EINVAL; 44 } 45 46 retval = register_bcache_ioctl(cmd_info); 47 48 vfree(cmd_info); 49 return retval; 50 } 51 52 default: 53 return -EINVAL; 54 } 55 } 56 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org