Message ID | 20230310214553.275450-1-krzysztof.kozlowski@linaro.org |
---|---|
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 v21csp1118991wrd; Fri, 10 Mar 2023 14:01:19 -0800 (PST) X-Google-Smtp-Source: AK7set8MxbO38WAC4FxVreY7E+E9QO5W9ntRlbYWpbrjiBefQU2pQQMbSXhm3vAf6qDhOwg0Zcn2 X-Received: by 2002:a17:90b:1e47:b0:234:eeb:8df4 with SMTP id pi7-20020a17090b1e4700b002340eeb8df4mr29491474pjb.14.1678485678936; Fri, 10 Mar 2023 14:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678485678; cv=none; d=google.com; s=arc-20160816; b=AkqniKpotKKxtsK/PlOKlOvgx1EmSJGbz/psApbG3l/9HTWgm4bQjhrLcjUW/V+xoM OWESxMnRefW1ILh5bBGKRXv6qjPqYHAoz9fXptmXUvGLM3qBCMaD5W4ihW9AFQn7WGB7 y2sO+rNt/Vyu/Ui3pPx68ig0LAJKJLvUfZY7hSA3PQCmhHvjZoN30YGAWhreeFBLsN/b FxHZkMTQnxQpd588eZ48yFfWXGxzcbrLSJ/0ABMPay7qz5KxILv6uPK1Ytq2ao8GF/zQ ymyeGYH/3FXwmbJCyRhEcBAP7ZIPKF+thuE/7ZT5LQyOkhpXYb6UoWhHghEVPA6RAQRv 4srA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wk7HS+JU2o5z8u8D+phfvsWKJzSNNAcdYUjf3Uh+O54=; b=jGiYRVFZMCequTXFuUbm+bqo2ASnj77iZmVlKw1VidxDo8Hw+rA1pWvPaKXaHNsaG0 L/nZJtvmK1U2u9kr/kzaYt+ujk5aVFsE3l+vjICHUMKwzabUMmT4L3ydd9EPEmjZTVty ap6Qbj75fQ/wwbzMIg2CeQl7MAn1yMKtQKf1NzFw5paa4AeIsdWpFuq4wdvVeyhDBfrq gt7zrDGUmURcs8962OxGttZuDDKGW23bRWfV5yS9xc7jx/oePI+zOrHZqattaLUI1eTf 5BP2MPSlAWiRFnaNU/Qxcs6dogqojotuG2Wl8wJdmG93l4H88OWNPjJVeOfU5OjRYt+5 USIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Er3ZlEVm; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk6-20020a17090b33c600b002340152a657si748080pjb.176.2023.03.10.14.01.05; Fri, 10 Mar 2023 14:01:18 -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=@linaro.org header.s=google header.b=Er3ZlEVm; 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 S232097AbjCJVzy (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 16:55:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbjCJVz0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 16:55:26 -0500 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247D514203 for <linux-kernel@vger.kernel.org>; Fri, 10 Mar 2023 13:51:59 -0800 (PST) Received: by mail-ed1-f46.google.com with SMTP id a25so26295550edb.0 for <linux-kernel@vger.kernel.org>; Fri, 10 Mar 2023 13:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wk7HS+JU2o5z8u8D+phfvsWKJzSNNAcdYUjf3Uh+O54=; b=Er3ZlEVmoHoIsKsxxmk3YiAdjEKW2o7aagUdkvk8ACc/AZti0eUPVtEBK8r4r0smjz pB+sZJQgrdwpZYqfgqnS00yJsCXRm4tuxpKc9Sv323GEDDFRnD1x9yhqAjA0TAH+pD39 /NgNPgn1qAdB2VMocKQHi9RfthoRIiGig5whQaEgGz2y6LGsFtY8/7u3AgHnh1ysTixO lo6Fd82XFMyeVBYZ+eAjyGMolA6uQ3qrk/k7hLR6+oBu47T9as0SzNFVZLaPbQ5p0hEu xzfTRrmQl+xvZUdIRvF+timC/BMSv6n2PpI4xuBenWLMdJ9K0wzRhzAUHGQoc6i5W58C qjbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484756; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wk7HS+JU2o5z8u8D+phfvsWKJzSNNAcdYUjf3Uh+O54=; b=01v2m6Mm2YVCyg9qNNepDkp3uoQL85ClME3WOU7OmvVBmIl07t3pTsMPkmX8RNTbX7 m5EJwKJMM2sTC21K0TI9Z7tL2Zce+tt5OLEEYwl/TfR5J2k4TVLHhpH81PbOvYr7KDcJ MVvSZu2BOh8O+VpdHYoPEbhQRdwUw60Wz6lDUwJPff6y4IlY/gy71BJuNjP2nSo2/sPw Na+FSiKGoslGRziyKTsNIV9RYAIYVPp8VW93HymtuPCB+ycpD0J6c73Plw5wcYF8Xu9W w9sUr9+3Syh0zzLvwc56fcbIWbwItENFjLPBjoOXgMXS9E9tqTr/fXepzNPk0l/nhovP Nyiw== X-Gm-Message-State: AO0yUKWd1DwtJsZau5VGrd2M+RFdOseCVC3qGWOGwRa4MgvGl4/x4vE6 /BVTv1H8hUcHr3K2rc51bv6syQ== X-Received: by 2002:a05:6402:202e:b0:4be:3b3e:c226 with SMTP id ay14-20020a056402202e00b004be3b3ec226mr23145020edb.7.1678484756376; Fri, 10 Mar 2023 13:45:56 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id u7-20020a50d507000000b004be11e97ca2sm471873edi.90.2023.03.10.13.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:45:55 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Tony Lindgren <tony@atomide.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 1/9] regulator: lp872x: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:45 +0100 Message-Id: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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?1760019798985372109?= X-GMAIL-MSGID: =?utf-8?q?1760019798985372109?= |
Series |
[1/9] regulator: lp872x: Mark OF related data as maybe unused
|
|
Commit Message
Krzysztof Kozlowski
March 10, 2023, 9:45 p.m. UTC
The driver can be compile tested with !CONFIG_OF making certain data
unused:
drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/regulator/lp872x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, Mar 10, 2023 at 10:45:45PM +0100, Krzysztof Kozlowski wrote: > The driver can be compile tested with !CONFIG_OF making certain data > unused: > > drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ defined but not used [-Werror=unused-const-variable=] Here you're using maybe unused instead of removing the of_match_ptr() (which does seem like a better approach). This really feels very random, there's obviously a usability problem here.
On Fri, 10 Mar 2023 22:45:45 +0100, Krzysztof Kozlowski wrote: > The driver can be compile tested with !CONFIG_OF making certain data > unused: > > drivers/regulator/lp872x.c:931:34: error: ‘lp872x_dt_ids’ defined but not used [-Werror=unused-const-variable=] > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/9] regulator: lp872x: Mark OF related data as maybe unused commit: 70b26bb55f719e2900404459128d41c8425c8dde [2/9] regulator: max20086: Mark OF related data as maybe unused commit: 4a5850865641d0b83caaad81ca0bbd722ac514fb [3/9] regulator: mp8859: Mark OF related data as maybe unused commit: 334e6b85a348a79bb018003f09e1cc94accd53a2 [4/9] regulator: mt6397-regulator: Mark OF related data as maybe unused commit: 38cc873cb1cf27965dacbbc5957a7a8aee89679c All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index c576894c3d52..c3a6e77db4d0 100644 --- a/drivers/regulator/lp872x.c +++ b/drivers/regulator/lp872x.c @@ -928,7 +928,7 @@ static int lp872x_probe(struct i2c_client *cl) return lp872x_regulator_register(lp); } -static const struct of_device_id lp872x_dt_ids[] = { +static const struct of_device_id lp872x_dt_ids[] __maybe_unused = { { .compatible = "ti,lp8720", }, { .compatible = "ti,lp8725", }, { }