Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp69198pxa; Fri, 21 Aug 2020 01:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznI+vmQyM9k3URzDbw7fdUJhUsIDYwpLjPdmlI6voBQOVBFqXOvLaGvJgm6fTLcfqWrnXB X-Received: by 2002:a17:906:3fc7:: with SMTP id k7mr1568016ejj.301.1597997254266; Fri, 21 Aug 2020 01:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597997254; cv=none; d=google.com; s=arc-20160816; b=XcTD9uxc7Ihezc0SPSwnIU0oDkOcmLqzBWkGVGIRElrTnqGi+WDECw3UdK+ldxUwqu Gb2AjikjZgHYuzcDqxkeXAHXVpVJsiKDPmjy4lHL0U+ZyS1eBEYey1sm8PXAyDwfp2Bk 6xAuYVadpJCHQPOid1xnoSr7SNpgwAlgI9FlVpgZ8r6mCDnQhTR0luTfsLgJwR6HRCRR zdUn10sLNnmCe9quuRaWCpyD8Ij4+1szURwWUxc5b2EdMWPq3f08S9lYOpBP6SBZ7SgK /34ab+igdxzZXVgsJmbFNMoNB4yJ1s9wWvDkbww0z52dBiX1tVtCvqnjnkyF5j4IJY67 lITg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=mEEFGwxCR0LLzSzT8N8HBawMHqEEzWXO7414JAV6Gqg=; b=ajN0L2tdEHyFeva3U3cDyX7kdClguWLNqXLqR3yqfbRAXtD8K34JhI2YEPs7XVS14Y f0DylOg/pbkVK0Nj62jTHWGgrHwxZjzAsDeICLn3tgEtM4NYpzvuaONoIsxoc+fdEb5m HNtWOwj21b9TOYKg6SYNzHxOQTXPzRsopiUqMGLowkNbLj4Yjw1Kln/OEsevoppmf2+/ ZQ+M3LIU2a2rlAwHp2KinXCxIA3FxzSgVWEZqDqPrOfZ+S2eNDGnhBTCGIgpxz/fd4VW /1K9wPKMBjbDB7H0sWjwdZ9ZiiR0+MSDqiyPBrSh7Z0T9SaWarkkAkbKD3TQakcds6Gb ewjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=eYPOpaot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch10si716514edb.28.2020.08.21.01.07.10; Fri, 21 Aug 2020 01:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=eYPOpaot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727049AbgHUIGH (ORCPT + 99 others); Fri, 21 Aug 2020 04:06:07 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:54288 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725965AbgHUIFl (ORCPT ); Fri, 21 Aug 2020 04:05:41 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07L82M8Y002909; Fri, 21 Aug 2020 10:05:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=mEEFGwxCR0LLzSzT8N8HBawMHqEEzWXO7414JAV6Gqg=; b=eYPOpaotWPQ4f7pbwo3lzzRAHL9gJ56LxFpuIA7vitShstnf99AMesLYK1sXmMGj/Kt2 bBCxV5KgtkMg0X9xo0FN4bPkE5S5KtfzMPpfBoilBcOiK/ljUVnxz/mGV3ya/OOAVhH7 rGofCoqqfd+XpWN4ikYKTdell/ML0x6/ro4sxUHBAI4QeWBse9thJNWaohSYgwtozo1/ 4sunJcWcCUUJNMlYMO38jj9TZWvepJU/yKbdC9IMSFPsiqEUpEfks79Uivx6BZ6cp78e gY9ONdq1bPVS1uTsFuG55lCrxYhpak8wh3TRj7Qa7u4t9dRL9E/okTsxWFD6Jj4OxA0D Pg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 330jg7nrr1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Aug 2020 10:05:21 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DF69B10002A; Fri, 21 Aug 2020 10:05:20 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C439321FE90; Fri, 21 Aug 2020 10:05:20 +0200 (CEST) Received: from [10.48.1.149] (10.75.127.47) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 21 Aug 2020 10:05:19 +0200 Subject: Re: [PATCH v2 11/15] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n To: Jisheng Zhang , Liam Girdwood , Mark Brown , Support Opensource , Andy Gross , Bjorn Andersson , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng CC: , , , References: <20200821111135.0b958d3a@xhacker.debian> <20200821111755.4c461039@xhacker.debian> From: Fabrice Gasnier Message-ID: Date: Fri, 21 Aug 2020 10:05:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200821111755.4c461039@xhacker.debian> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-21_06:2020-08-19,2020-08-21 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/20 5:17 AM, Jisheng Zhang wrote: > Fix below warning when CONFIG_OF=n: > > drivers/regulator/stm32-vrefbuf.c:287:34: warning: ‘stm32_vrefbuf_of_match’ defined but not used [-Wunused-const-variable=] > 287 | static const struct of_device_id stm32_vrefbuf_of_match[] = { > | ^~~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Jisheng Zhang Hi Jisheng, Acked-by: Fabrice Gasnier Thanks for the patch, Fabrice > --- > drivers/regulator/stm32-vrefbuf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c > index 992bc18101ef..161622ea7259 100644 > --- a/drivers/regulator/stm32-vrefbuf.c > +++ b/drivers/regulator/stm32-vrefbuf.c > @@ -284,7 +284,7 @@ static const struct dev_pm_ops stm32_vrefbuf_pm_ops = { > NULL) > }; > > -static const struct of_device_id stm32_vrefbuf_of_match[] = { > +static const struct of_device_id __maybe_unused stm32_vrefbuf_of_match[] = { > { .compatible = "st,stm32-vrefbuf", }, > {}, > }; >