From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B729868; Fri, 26 Nov 2021 21:37:20 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10180"; a="216426934" X-IronPort-AV: E=Sophos;i="5.87,266,1631602800"; d="scan'208";a="216426934" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 13:37:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,266,1631602800"; d="scan'208";a="675657553" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 26 Nov 2021 13:37:17 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mqiuC-0008cn-Ek; Fri, 26 Nov 2021 21:37:16 +0000 Date: Sat, 27 Nov 2021 05:36:23 +0800 From: kernel test robot To: Cai Huoqing Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Rob Herring , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH v2 1/3] staging: zynpu: Add driver support for ARM(China) ZHOUYI AI accelerator Message-ID: <202111270521.Fwtu770n-lkp@intel.com> References: <20211124084620.628-2-caihuoqing@baidu.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211124084620.628-2-caihuoqing@baidu.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Cai, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Cai-Huoqing/staging-zynpu-Add-driver-support-for-ARM-China-ZHOUYI-AI-accelerator/20211124-164741 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 1189d2fb15a4b09b2e8dd01d60a0817d985d933d config: arm64-buildonly-randconfig-r006-20211126 (https://download.01.org/0day-ci/archive/20211127/202111270521.Fwtu770n-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5162b558d8c0b542e752b037e72a69d5fd51eb1e) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/95965c589ea2e279e082e3c9aa18c2ddd8494d64 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Cai-Huoqing/staging-zynpu-Add-driver-support-for-ARM-China-ZHOUYI-AI-accelerator/20211124-164741 git checkout 95965c589ea2e279e082e3c9aa18c2ddd8494d64 # 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=arm64 SHELL=/bin/bash drivers/iio/ drivers/irqchip/ drivers/spi/ drivers/staging/zynpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/staging/zynpu/zynpu_session.c:747:20: warning: no previous prototype for function 'zynpu_session_get_wait_queue' [-Wmissing-prototypes] wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session *session, int uthread_id) ^ drivers/staging/zynpu/zynpu_session.c:747:1: note: declare 'static' if the function is not intended to be used outside of this translation unit wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session *session, int uthread_id) ^ static 1 warning generated. vim +/zynpu_session_get_wait_queue +747 drivers/staging/zynpu/zynpu_session.c 746 > 747 wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session *session, int uthread_id) 748 { 749 struct zynpu_thread_wait_queue *queue = NULL; 750 751 if (!session) { 752 pr_err("invalid input session to be null!"); 753 return NULL; 754 } 755 756 /* LOCK */ 757 spin_lock(&session->job_lock); 758 queue = get_thread_wait_queue_no_lock(session->wait_queue_head, uthread_id); 759 spin_unlock(&session->job_lock); 760 /* UNLOCK */ 761 762 if (queue) 763 return &queue->p_wait; 764 765 return NULL; 766 } 767 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8754168271069378554==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/3] staging: zynpu: Add driver support for ARM(China) ZHOUYI AI accelerator Date: Sat, 27 Nov 2021 05:36:23 +0800 Message-ID: <202111270521.Fwtu770n-lkp@intel.com> In-Reply-To: <20211124084620.628-2-caihuoqing@baidu.com> List-Id: --===============8754168271069378554== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Cai, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Cai-Huoqing/staging-zynpu-= Add-driver-support-for-ARM-China-ZHOUYI-AI-accelerator/20211124-164741 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git = 1189d2fb15a4b09b2e8dd01d60a0817d985d933d config: arm64-buildonly-randconfig-r006-20211126 (https://download.01.org/0= day-ci/archive/20211127/202111270521.Fwtu770n-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5162b5= 58d8c0b542e752b037e72a69d5fd51eb1e) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/95965c589ea2e279e082e3c9a= a18c2ddd8494d64 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Cai-Huoqing/staging-zynpu-Add-driv= er-support-for-ARM-China-ZHOUYI-AI-accelerator/20211124-164741 git checkout 95965c589ea2e279e082e3c9aa18c2ddd8494d64 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash drivers/iio/ drivers/irqchip= / drivers/spi/ drivers/staging/zynpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/staging/zynpu/zynpu_session.c:747:20: warning: no previous proto= type for function 'zynpu_session_get_wait_queue' [-Wmissing-prototypes] wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session *se= ssion, int uthread_id) ^ drivers/staging/zynpu/zynpu_session.c:747:1: note: declare 'static' if t= he function is not intended to be used outside of this translation unit wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session *se= ssion, int uthread_id) ^ static = 1 warning generated. vim +/zynpu_session_get_wait_queue +747 drivers/staging/zynpu/zynpu_session= .c 746 = > 747 wait_queue_head_t *zynpu_session_get_wait_queue(struct zynpu_session= *session, int uthread_id) 748 { 749 struct zynpu_thread_wait_queue *queue =3D NULL; 750 = 751 if (!session) { 752 pr_err("invalid input session to be null!"); 753 return NULL; 754 } 755 = 756 /* LOCK */ 757 spin_lock(&session->job_lock); 758 queue =3D get_thread_wait_queue_no_lock(session->wait_queue_head, u= thread_id); 759 spin_unlock(&session->job_lock); 760 /* UNLOCK */ 761 = 762 if (queue) 763 return &queue->p_wait; 764 = 765 return NULL; 766 } 767 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8754168271069378554==--