From: Tom Rix Date: Mon, 15 May 2023 11:40:43 +0000 (-0400) Subject: usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static X-Git-Tag: v6.5-rc1~73^2~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c722576b2454c44934e27bd73fdf828e720fb237;p=thirdparty%2Fkernel%2Flinux.git usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static 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 Reviewed-by: Bryan O'Donoghue Reviewed-by: Guenter Roeck Reviewed-by: Heikki Krogerus Link: https://lore.kernel.org/r/20230515114043.3452010-1-trix@redhat.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c b/drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c index 191458ce4a069..937e855a6c4c3 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, };