Message ID | 20230303092859.22094-3-quic_tdas@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp319112wrd; Fri, 3 Mar 2023 01:43:43 -0800 (PST) X-Google-Smtp-Source: AK7set9YRslmJaJ0DROK8201GzVonzBpwaztMPTS+Q/HpWyaFeOnxQN1QkdrCo9Q1K4bGlwGu9Ir X-Received: by 2002:a17:902:e882:b0:19d:1720:3873 with SMTP id w2-20020a170902e88200b0019d17203873mr1697687plg.57.1677836623024; Fri, 03 Mar 2023 01:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677836623; cv=none; d=google.com; s=arc-20160816; b=OiGmYvmPo0CflYxLBIIpGRdy08HlD8yWMzSBOA0YBoEwskrGHXJ/ddrMHBxV0d8uQB zO27CyrXYNv7ojvNkvcMwUOm2kPc5kOQrHamupNHXxbLyjDwqubD2IKsYGpRqkLxVwoE pE7QxOpkJ8TZELLhWZJyyTy6JJ0p3PPPAv59ka+4X3axrFvjmBbiDe//YQCZ5hENq13Q UXuerYOW1Gt6wYSNa9h9P25EJx+CxcN25r2sUOEynqwj4RPkIYmzmHQBLRVoO7wT+NoL mBMwTMSFl5/568qsE6MD0IEG/z6HKoN1CDjIZMpW0wFG/T8910DzIqkCKn5ZxNPf6XOQ FdKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rHbfoQH2ghWfXbymqzQac2pa2EdByPx/nTWxztKnuS8=; b=LIy3HdNfJ2G72bwW20aHmblHm8peoyzwmFocFNQP7XeEXTukznBZT4odooSj+lga9b y/iplTtSpaTnFPc98VpMSb79EkLLeOOYM45lZXp+0YHPePW8+WCNj5Xymq7uaZwHO6aS 7P4XoloD50B8trmuYvTBInNLSD07Y4EusYBROU/rVV2P4gGfhlwZ0F3oRaSJTfp1X04U dTTYGwnSiyfffWLvWFPArfASu4A+ahzkLDrMfui4hdwvAD2C6EEXbXDiUnvcAJijZq7u wpsEEifhHFRompfw8bZrAcIZasL624hM6eyOn1qUKwB7nHM60Dlz29Z80HZvLK1xY67k v9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TaVMw5xr; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170902c94200b00192721d6a97si2052232pla.499.2023.03.03.01.43.30; Fri, 03 Mar 2023 01:43:43 -0800 (PST) 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=@quicinc.com header.s=qcppdkim1 header.b=TaVMw5xr; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbjCCJaY (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Fri, 3 Mar 2023 04:30:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbjCCJaG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Mar 2023 04:30:06 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70C5461BF; Fri, 3 Mar 2023 01:29:55 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3237tHg7011277; Fri, 3 Mar 2023 09:29:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=rHbfoQH2ghWfXbymqzQac2pa2EdByPx/nTWxztKnuS8=; b=TaVMw5xrG1oAMAPMa1roYuwuPrBnT5mzy707eT6yyVAP9rby0PySCaoZQ3v9qaFz7JwU m4tERB8THSQe2B6wa3WKWJSEpGzgVw3IYgrx8wnbRIymIHLlwZwRE5IikPEtdQ6BjH6g t4q8BDSqWGMvl/ueeuLEWXLZGAsCEYE43KpsJ7TnaP1WOCErKaPx6LrRL8CjAsuimyEr nD9tS+elvTQqMGifOgkgB2KkVztRH8BnsI1c1YRCTHCHtC8lgDWA4siB7ryew1CCbcXF h4fXJp/vpwxmqytEXriTYoSspd4EzkCLqXSQt1ESak/8Uxp9s0Qch2MWKU/GxAIED9fO SQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p3bry8d2q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Mar 2023 09:29:46 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3239Tj9J003921 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Mar 2023 09:29:45 GMT Received: from hu-tdas-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 3 Mar 2023 01:29:42 -0800 From: Taniya Das <quic_tdas@quicinc.com> To: Andy Gross <agross@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org> CC: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, <linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Taniya Das <quic_tdas@quicinc.com> Subject: [PATCH 2/2] clk: qcom: lpass: Initialize start_index Date: Fri, 3 Mar 2023 14:58:59 +0530 Message-ID: <20230303092859.22094-3-quic_tdas@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230303092859.22094-1-quic_tdas@quicinc.com> References: <20230303092859.22094-1-quic_tdas@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: -49Tm1k44S1rchx71VyQr6cPDCgqXb2J X-Proofpoint-ORIG-GUID: -49Tm1k44S1rchx71VyQr6cPDCgqXb2J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303030084 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759339214749297298?= X-GMAIL-MSGID: =?utf-8?q?1759339214749297298?= |
Series |
Handle invalid index error
|
|
Commit Message
Taniya Das
March 3, 2023, 9:28 a.m. UTC
Initialize start_index for lpass_audio_cc_sc7280_desc
to fix invalid index error.
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
---
drivers/clk/qcom/lpassaudiocc-sc7280.c | 1 +
1 file changed, 1 insertion(+)
Comments
Hi Taniya, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [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/Taniya-Das/clk-qcom-common-Handle-invalid-index-error/20230303-173158 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20230303092859.22094-3-quic_tdas%40quicinc.com patch subject: [PATCH 2/2] clk: qcom: lpass: Initialize start_index config: hexagon-randconfig-r021-20230302 (https://download.01.org/0day-ci/archive/20230303/202303032224.tuvDnbbB-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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/d26ce274e7b0af8a6c6985630d1da8e257c9031d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Taniya-Das/clk-qcom-common-Handle-invalid-index-error/20230303-173158 git checkout d26ce274e7b0af8a6c6985630d1da8e257c9031d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/clk/qcom/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> | Link: https://lore.kernel.org/oe-kbuild-all/202303032224.tuvDnbbB-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/clk/qcom/lpassaudiocc-sc7280.c:13: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/clk/qcom/lpassaudiocc-sc7280.c:13: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/clk/qcom/lpassaudiocc-sc7280.c:13: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/clk/qcom/lpassaudiocc-sc7280.c:705:56: error: unexpected ';' before '}' .start_index = LPASS_AUDIO_CC_CDIV_RX_MCLK_DIV_CLK_SRC; ^ 6 warnings and 1 error generated. vim +705 drivers/clk/qcom/lpassaudiocc-sc7280.c 700 701 static const struct qcom_cc_desc lpass_audio_cc_sc7280_desc = { 702 .config = &lpass_audio_cc_sc7280_regmap_config, 703 .clks = lpass_audio_cc_sc7280_clocks, 704 .num_clks = ARRAY_SIZE(lpass_audio_cc_sc7280_clocks), > 705 .start_index = LPASS_AUDIO_CC_CDIV_RX_MCLK_DIV_CLK_SRC; 706 }; 707
diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpassaudiocc-sc7280.c index 1339f9211a14..0567007da8bd 100644 --- a/drivers/clk/qcom/lpassaudiocc-sc7280.c +++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c @@ -702,6 +702,7 @@ static const struct qcom_cc_desc lpass_audio_cc_sc7280_desc = { .config = &lpass_audio_cc_sc7280_regmap_config, .clks = lpass_audio_cc_sc7280_clocks, .num_clks = ARRAY_SIZE(lpass_audio_cc_sc7280_clocks), + .start_index = LPASS_AUDIO_CC_CDIV_RX_MCLK_DIV_CLK_SRC; }; static const struct qcom_reset_map lpass_audio_cc_sc7280_resets[] = {