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 43C1EECAAD3 for ; Wed, 31 Aug 2022 06:31:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbiHaGbb (ORCPT ); Wed, 31 Aug 2022 02:31:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbiHaGbM (ORCPT ); Wed, 31 Aug 2022 02:31:12 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F76A5997; Tue, 30 Aug 2022 23:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661927460; x=1693463460; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ql+yeo80Y05zchO0DvqFKkJmhw83Gp5KMkZLvvbWsnA=; b=bherEi9u29PWJJD6sqzA5crZtWtbgGBJahJIRFPSuUuld1DQSR6xRUKB pTdNllotQbG1TTiSjPW+VTEdsZFJ8YrAqNpwXi0OklboVFRXFc3C6TE6E 6wX+o6Ay5Gflki6kuthyJxLPXy0KNicU6h5yeUBJ8UXLyl89yMGBUp5zs 0TRRAnIAnTnuiCODYur86pQswlMmHfZNgQPAcCIkB2RBe99g7k5Nh7cUI QjS7FyNV/lfF12TIsENVq0RaVSka274d9JK8PYcxAhs4ZSO+Wk5G7jB/s 42c9D7kmdYY7QnQZGpdPOOs9/MSwBX9lsi3TV2RFhJoAZyFsBJHr3QFWt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="296662712" X-IronPort-AV: E=Sophos;i="5.93,277,1654585200"; d="scan'208";a="296662712" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 23:30:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,277,1654585200"; d="scan'208";a="754324011" Received: from lkp-server02.sh.intel.com (HELO 811e2ceaf0e5) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 30 Aug 2022 23:30:55 -0700 Received: from kbuild by 811e2ceaf0e5 with local (Exim 4.96) (envelope-from ) id 1oTHFW-00001C-33; Wed, 31 Aug 2022 06:30:54 +0000 Date: Wed, 31 Aug 2022 14:30:45 +0800 From: kernel test robot To: Guru Das Srinagesh , Andy Gross , Bjorn Andersson , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, David Heidelberg , Robert Marko , Rajendra Nayak , Elliot Berman , Guru Das Srinagesh Subject: Re: [RESEND PATCH v2 4/5] firmware: qcom: scm: Add wait-queue helper functions Message-ID: <202208311447.pd8ZLIWT-lkp@intel.com> References: <1661898311-30126-5-git-send-email-quic_gurus@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1661898311-30126-5-git-send-email-quic_gurus@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guru, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20220830] [cannot apply to robh/for-next linus/master v6.0-rc3 v6.0-rc2 v6.0-rc1 v6.0-rc3] [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/Guru-Das-Srinagesh/SCM-Add-support-for-wait-queue-aware-firmware/20220831-063013 base: 282342f2dc97ccf54254c5de51bcc1101229615f config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20220831/202208311447.pd8ZLIWT-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/ad41ee028d07c3e3e41b15e6bd8e2985f30df508 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Guru-Das-Srinagesh/SCM-Add-support-for-wait-queue-aware-firmware/20220831-063013 git checkout ad41ee028d07c3e3e41b15e6bd8e2985f30df508 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/firmware/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/string.h:20, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/delay.h:23, from drivers/firmware/qcom_scm-smc.c:8: drivers/firmware/qcom_scm-smc.c: In function 'fill_wq_resume_args': >> arch/sparc/include/asm/string.h:18:29: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 18 | #define memset(s, c, count) __builtin_memset(s, c, count) | ^~~~~~~~~~~~~~~~ drivers/firmware/qcom_scm-smc.c:58:9: note: in expansion of macro 'memset' 58 | memset(resume->args, 0, ARRAY_SIZE(resume->args)); | ^~~~~~ drivers/firmware/qcom_scm-smc.c: In function 'fill_wq_wake_ack_args': >> arch/sparc/include/asm/string.h:18:29: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 18 | #define memset(s, c, count) __builtin_memset(s, c, count) | ^~~~~~~~~~~~~~~~ drivers/firmware/qcom_scm-smc.c:71:9: note: in expansion of macro 'memset' 71 | memset(wake_ack->args, 0, ARRAY_SIZE(wake_ack->args)); | ^~~~~~ drivers/firmware/qcom_scm-smc.c: In function 'fill_get_wq_ctx_args': >> arch/sparc/include/asm/string.h:18:29: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 18 | #define memset(s, c, count) __builtin_memset(s, c, count) | ^~~~~~~~~~~~~~~~ drivers/firmware/qcom_scm-smc.c:84:9: note: in expansion of macro 'memset' 84 | memset(get_wq_ctx->args, 0, ARRAY_SIZE(get_wq_ctx->args)); | ^~~~~~ drivers/firmware/qcom_scm-smc.c: At top level: drivers/firmware/qcom_scm-smc.c:69:13: warning: 'fill_wq_wake_ack_args' defined but not used [-Wunused-function] 69 | static void fill_wq_wake_ack_args(struct arm_smccc_args *wake_ack, u32 smc_call_ctx) | ^~~~~~~~~~~~~~~~~~~~~ drivers/firmware/qcom_scm-smc.c:56:13: warning: 'fill_wq_resume_args' defined but not used [-Wunused-function] 56 | static void fill_wq_resume_args(struct arm_smccc_args *resume, u32 smc_call_ctx) | ^~~~~~~~~~~~~~~~~~~ vim +/memset +18 arch/sparc/include/asm/string.h 70a6fcf3283a0a Al Viro 2016-01-17 16 70a6fcf3283a0a Al Viro 2016-01-17 17 #define __HAVE_ARCH_MEMSET 70a6fcf3283a0a Al Viro 2016-01-17 @18 #define memset(s, c, count) __builtin_memset(s, c, count) 70a6fcf3283a0a Al Viro 2016-01-17 19 -- 0-DAY CI Kernel Test Service https://01.org/lkp