Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2106309rwa; Mon, 22 Aug 2022 02:07:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dAYbANO1j+ofezCxNU1lGRHljTAx87JMokhNVCVTNvbwt9ZPaXq/Bm4kfHIGEYIpLUa0j X-Received: by 2002:a17:90b:33c6:b0:1f4:f595:b0f1 with SMTP id lk6-20020a17090b33c600b001f4f595b0f1mr22356737pjb.230.1661159239801; Mon, 22 Aug 2022 02:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661159239; cv=none; d=google.com; s=arc-20160816; b=EHZuEAvv/PS+c2A6555l1Wvi1vltee4TGfY3KN4fdFVY075cDg6PEiCZFz02B4Xcm2 N2uQjx6119FhJB/nkjuDOpFnACYKtLHAvhooFOw3VrT+MT3pQHctDEbH0gLKO1Trdk88 yEDmnNqpXxFXf6WGFEHxkPe/i+aT6EzLSX6t2VFwi15dXBRr2V82KZQrXYcBE1kvPmWe g8uK/EzKcrnIh4lXmPswS241c/EfBpd+fTFepItIheEcxln1atJEiT6JAugVquRknNW8 JOeMgfOxMebTdEAldryVKLH6WTFr4u+j+sqMIGgjSUYBnbQ8+IKEC0c7M3jM1OHj4dgs kHFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TkjvJdsO4x9o26hrEeXQ315UM1jNq9BTPpjjCsqAH/o=; b=LicJgRMO6t1Kd8xi6RD39ucuttlYJ5pm+tnWJzGp7olwBhPZU8OcCccpGVKAvcb5AJ CUjdI+XkVYUO9PqeBTs7GxMn0BqTMgg3VNcZdiqw2v5HXSDTquQBeI3IvmbRpAdz7Jwh xWDZYIyafqJqf+pucf4c2Xh0zpqCrvq9qTK/MN1Wglqlr0TSZehRe/oF/qbv1QgioZaw GAO6RnmUkzfVi5V8KSE/z+IM3pYrgnA0S63fkZF8cDgzVlJJOOTJCDbIsvFawNFLfjPh kodkoE1icdIg5EYfzgmbQPvK5P0i9mM8UyiYu+3lY0fuD3sNHarm4q32SVZvWLj3Kkwl 4Qyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JH2Wg4xY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a170902ecc400b00172ccb0862fsi9640624plh.88.2022.08.22.02.07.08; Mon, 22 Aug 2022 02:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JH2Wg4xY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234006AbiHVIt3 (ORCPT + 99 others); Mon, 22 Aug 2022 04:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233827AbiHVIs6 (ORCPT ); Mon, 22 Aug 2022 04:48:58 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FFB1146F; Mon, 22 Aug 2022 01:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661158122; x=1692694122; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aqreuZ0XbXPfbB6mvgSmsxtnzxVXkLrvDEBrwPh/UB0=; b=JH2Wg4xYbKbxO/dHeIY4e6xvJMIblf5Z+9SP8MtSYnibN8lh18x+4FjH BC5cLUSxUl27vCuP3FHie4ZewAvet6EywdChKZd9p2jxn4E3HqY9tmPPa ujV0OYrBbKsjWVB7z3ApIdkakg4hWmY+n9mM3Og2kyekhX527EHOp36ny WMqk/EL8bo67KWRgyf4VBeA+hTGtiLA5ZjoOefJE12SNl9m7SvVQg2wjx 2P67GlYlQVI3+M88ZkgxmimaDiakbT+vrQ3sgo3dWdTA3kT9yfWVBGD2q uXilY6o1IcPEydEnnMCWPCzm5WmMFdHbJ/mZ7pCOQ8V3h0RBFiEfzGLOj Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10446"; a="357342562" X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="357342562" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 01:48:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="638101722" Received: from lkp-server01.sh.intel.com (HELO 44b6dac04a33) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 22 Aug 2022 01:48:39 -0700 Received: from kbuild by 44b6dac04a33 with local (Exim 4.96) (envelope-from ) id 1oQ36t-00058d-12; Mon, 22 Aug 2022 08:48:39 +0000 Date: Mon, 22 Aug 2022 16:47:55 +0800 From: kernel test robot To: Jeff Johnson , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: kbuild-all@lists.01.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Johnson Subject: Re: [PATCH] soc: qcom: qmi: use const for struct qmi_elem_info Message-ID: <202208221632.bulgoDlE-lkp@intel.com> References: <20220822064648.30794-1-quic_jjohnson@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220822064648.30794-1-quic_jjohnson@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jeff, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v6.0-rc2 next-20220822] [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/Jeff-Johnson/soc-qcom-qmi-use-const-for-struct-qmi_elem_info/20220822-144905 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1c23f9e627a7b412978b4e852793c5e3c3efc555 config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20220822/202208221632.bulgoDlE-lkp@intel.com/config) compiler: m68k-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/84f0de3071b40fad5e5a48ad27b16ce28f9210fb git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jeff-Johnson/soc-qcom-qmi-use-const-for-struct-qmi_elem_info/20220822-144905 git checkout 84f0de3071b40fad5e5a48ad27b16ce28f9210fb # 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=m68k SHELL=/bin/bash drivers/soc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/soc/qcom/qmi_encdec.c: In function 'skip_to_next_elem': >> drivers/soc/qcom/qmi_encdec.c:94:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 94 | return temp_ei; | ^~~~~~~ vim +/const +94 drivers/soc/qcom/qmi_encdec.c 9b8a11e8261527 Bjorn Andersson 2017-12-05 59 84f0de3071b40f Jeff Johnson 2022-08-21 60 static int qmi_encode(const struct qmi_elem_info *ei_array, void *out_buf, 9b8a11e8261527 Bjorn Andersson 2017-12-05 61 const void *in_c_struct, u32 out_buf_len, 9b8a11e8261527 Bjorn Andersson 2017-12-05 62 int enc_level); 9b8a11e8261527 Bjorn Andersson 2017-12-05 63 84f0de3071b40f Jeff Johnson 2022-08-21 64 static int qmi_decode(const struct qmi_elem_info *ei_array, void *out_c_struct, 9b8a11e8261527 Bjorn Andersson 2017-12-05 65 const void *in_buf, u32 in_buf_len, int dec_level); 9b8a11e8261527 Bjorn Andersson 2017-12-05 66 9b8a11e8261527 Bjorn Andersson 2017-12-05 67 /** 9b8a11e8261527 Bjorn Andersson 2017-12-05 68 * skip_to_next_elem() - Skip to next element in the structure to be encoded 9b8a11e8261527 Bjorn Andersson 2017-12-05 69 * @ei_array: Struct info describing the element to be skipped. 9b8a11e8261527 Bjorn Andersson 2017-12-05 70 * @level: Depth level of encoding/decoding to identify nested structures. 9b8a11e8261527 Bjorn Andersson 2017-12-05 71 * 9b8a11e8261527 Bjorn Andersson 2017-12-05 72 * This function is used while encoding optional elements. If the flag 9b8a11e8261527 Bjorn Andersson 2017-12-05 73 * corresponding to an optional element is not set, then encoding the 9b8a11e8261527 Bjorn Andersson 2017-12-05 74 * optional element can be skipped. This function can be used to perform 9b8a11e8261527 Bjorn Andersson 2017-12-05 75 * that operation. 9b8a11e8261527 Bjorn Andersson 2017-12-05 76 * 9b8a11e8261527 Bjorn Andersson 2017-12-05 77 * Return: struct info of the next element that can be encoded. 9b8a11e8261527 Bjorn Andersson 2017-12-05 78 */ 84f0de3071b40f Jeff Johnson 2022-08-21 79 static struct qmi_elem_info *skip_to_next_elem(const struct qmi_elem_info *ei_array, 9b8a11e8261527 Bjorn Andersson 2017-12-05 80 int level) 9b8a11e8261527 Bjorn Andersson 2017-12-05 81 { 84f0de3071b40f Jeff Johnson 2022-08-21 82 const struct qmi_elem_info *temp_ei = ei_array; 9b8a11e8261527 Bjorn Andersson 2017-12-05 83 u8 tlv_type; 9b8a11e8261527 Bjorn Andersson 2017-12-05 84 9b8a11e8261527 Bjorn Andersson 2017-12-05 85 if (level > 1) { 9b8a11e8261527 Bjorn Andersson 2017-12-05 86 temp_ei = temp_ei + 1; 9b8a11e8261527 Bjorn Andersson 2017-12-05 87 } else { 9b8a11e8261527 Bjorn Andersson 2017-12-05 88 do { 9b8a11e8261527 Bjorn Andersson 2017-12-05 89 tlv_type = temp_ei->tlv_type; 9b8a11e8261527 Bjorn Andersson 2017-12-05 90 temp_ei = temp_ei + 1; 9b8a11e8261527 Bjorn Andersson 2017-12-05 91 } while (tlv_type == temp_ei->tlv_type); 9b8a11e8261527 Bjorn Andersson 2017-12-05 92 } 9b8a11e8261527 Bjorn Andersson 2017-12-05 93 9b8a11e8261527 Bjorn Andersson 2017-12-05 @94 return temp_ei; 9b8a11e8261527 Bjorn Andersson 2017-12-05 95 } 9b8a11e8261527 Bjorn Andersson 2017-12-05 96 -- 0-DAY CI Kernel Test Service https://01.org/lkp