Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1922465rwd; Mon, 15 May 2023 05:08:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/hyYwyuvxuCykhD6TLGsgMFdOJwNOQPsXg/MfEaTh3aAwwD2pwmY4wphE2RnW/szdnStu X-Received: by 2002:a6b:721a:0:b0:76d:7522:2658 with SMTP id n26-20020a6b721a000000b0076d75222658mr6662498ioc.9.1684152502565; Mon, 15 May 2023 05:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684152502; cv=none; d=google.com; s=arc-20160816; b=gzRmtRlEZFBLZU51ma+zGYQgYJD7QlqdrUHw+wCXKzmpeEYljVVHZQbPxrtSl0UjYI GrKzHxNQsc84dMd7Er81FjI3RZg9GoGmjpIjaALOnHUQj+veSzT0f1x6U2Q1R86xjj9d UrSRveHE2+P4GM+NqgV9gz6adVui3jEUky3rFSyUwv4D6vjaM4CvtIiMh2sQKm5gdWVw 21B6ubs0V6glKIynEMhrmd7BnrpEfYilSJrzYYKISRFJi6LeFSyGDOs1VBmVUKnKurZc bKxqeGccltq6LtoJSQG5DPMszeRLBQl1QSy1lotMdZUhuEFfNeE5MGc6SBmfNtqEvWN2 2FUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3LD5Rvc3k/RtIbhopk19Y3M9HNSW6Y86XANxNzfI2Io=; b=KkrR8lTq3tpyQSvWoVfJIKksq626KPiZxRJygCXh5wGBE7FdALFy8CtVuoazNE4JJc KfXnpkRZtF14C3d6TVkVL7+rw63TwFb2H7KdnwdRK77XwZI09HAJocATmS36sLJyUDVm xLk1MiTCRQC1X1Lz8kJ74Nd1GbLRqLPINLfHektgQ5tZWfwIfw1QcPedDKOTNgDwXENf E2/0Qa2xMn8Z0bZhxz3Ajqr/wu3v8iBnaC2d0dwP2uLZb4twTRc+WBoRvslnJMGT/7a6 kGphoBpO7fe3dmIxQpmeLV1s8Jq2n5qTj4luTGHrWd+d2gvxpOA6jDAEW3u1yImRm18j k/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xiqjFttH; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a02b002000000b0040f8e9d42ddsi11883848jah.63.2023.05.15.05.08.07; Mon, 15 May 2023 05:08:22 -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=@linaro.org header.s=google header.b=xiqjFttH; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241574AbjEOLyp (ORCPT + 99 others); Mon, 15 May 2023 07:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241545AbjEOLy1 (ORCPT ); Mon, 15 May 2023 07:54:27 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A71626B6 for ; Mon, 15 May 2023 04:42:27 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f41d087b3bso96411775e9.0 for ; Mon, 15 May 2023 04:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684150945; x=1686742945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3LD5Rvc3k/RtIbhopk19Y3M9HNSW6Y86XANxNzfI2Io=; b=xiqjFttHxg0o83PmsBCpWxnbssUkfwGFFEOvU1JCzaVuo9xvQ02OoYilbsUnl2UX5x l1SmeMnXrkVgaQE9OanM/TZhWD8jAoTFHUBIWCIpfmC1hScdLlJyHtgGj5a241rq0R42 xaIYIR4KbpfOHe8/SIl2u/numC1CfWN8kSfKVFJ/VEGwVZf9FUJPo/S+LfonA4DYdp+W otPoUgh+YQeQNfqufcF5yQB/Hji9L3BTXlounauxi4iUfWyNuzo845rVdoQDxK3Pc+gf fNYtd/xmmTqj3fOZROuXBK1GNyeSO1CtFzC/sWRC3Xy7grHBjQAvDi0BEFTOoUo9EmWD dXMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684150945; x=1686742945; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3LD5Rvc3k/RtIbhopk19Y3M9HNSW6Y86XANxNzfI2Io=; b=OLpDAqnCmoaPVgZuVvHVNiBJr8FD/4rGbaBcS4+k5kuAFs64jFEdwNICXE6PgoxDCz eg1StUdN8PqCV1IdGJuxZTptQ0yK7Kkz8EZb4Hvzywi3sdP382wJCW7dMWQ3vHaZc5yL PcasF03HzdgGbf7+GE2AjFi9dw7hbA1m1zM8axfdylfbrINsUjQvnJTNgAhP2DHel9q2 5/5xyEvPTA6hXXFc+PIou50GAcBRs/FtrqYz7RKXk3d9fWdMYhls5xP8Ec3FKXiH4xSq LpRvJ39q8Srx0Lg4uBvsYLVpMFZTsDzx1V5YSl0G2bWD1hurbBvQKYsa780bPt0fURf1 oR2A== X-Gm-Message-State: AC+VfDxm61HWD/Wdk3Sw8e7Om7PyYKjxH19MGg9DD5yRBkXy9FcbFUa7 tImDoky/7vLDmhoImZiw1HsYAQ== X-Received: by 2002:a05:600c:2201:b0:3f4:253b:92ae with SMTP id z1-20020a05600c220100b003f4253b92aemr16922436wml.0.1684150945549; Mon, 15 May 2023 04:42:25 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id 17-20020a05600c229100b003f423a04016sm24545869wmf.18.2023.05.15.04.42.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 04:42:24 -0700 (PDT) Message-ID: <54aaec74-c3a0-563d-5eda-a583782c2f57@linaro.org> Date: Mon, 15 May 2023 12:42:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static Content-Language: en-US To: Tom Rix , linux@roeck-us.net, heikki.krogerus@linux.intel.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, gregkh@linuxfoundation.org Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230515114043.3452010-1-trix@redhat.com> From: Bryan O'Donoghue In-Reply-To: <20230515114043.3452010-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On 15/05/2023 12:40, Tom Rix wrote: > smatch reports > drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c:323:29: warning: symbol > 'pm8150b_typec_res' was not declared. Should it be static? > > This variable is only used in its defining file, so it should be static > > Signed-off-by: Tom Rix > --- > drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c b/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c > index 191458ce4a06..937e855a6c4c 100644 > --- a/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c > +++ b/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c > @@ -320,7 +320,7 @@ static struct pmic_typec_port_resources pm8150b_port_res = { > .nr_irqs = 7, > }; > > -struct pmic_typec_resources pm8150b_typec_res = { > +static struct pmic_typec_resources pm8150b_typec_res = { > .pdphy_res = &pm8150b_pdphy_res, > .port_res = &pm8150b_port_res, > }; Reviewed-by: Bryan O'Donoghue