From patchwork Fri Mar 10 21:45:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662431 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2BD8C6FA99 for ; Fri, 10 Mar 2023 21:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbjCJV71 (ORCPT ); Fri, 10 Mar 2023 16:59:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbjCJV7G (ORCPT ); Fri, 10 Mar 2023 16:59:06 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F6F2149795 for ; Fri, 10 Mar 2023 13:55:38 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id h14so6333465wru.4 for ; Fri, 10 Mar 2023 13:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O/rBHJ3jeIsF5DnV3iy779Hl1kpRg/pHkoneANxryCI=; b=xt75kFz5LhO8Ch+Lm/o6KevHI1x4kNa7AEVEKIM6Ndmw3o9i+VukC3uSroI5L76fsZ L8KIFiGr4Ryg0mgJsKaC9/4O95OZm+3pEQyuH1tjP676k82srioW2XDoIfatrGTI25fo L0baeXcJRNcfGKLoyUunCYq8rfJROSCeV3DViVZOImdRwTRWGqV+yBEA1BcrBS91Aw8e LCC8UW2KmV86vNRKYFJTE9Y83QW09TxQWgW6WFsHQpdUsmlYy+z7d2NmH7Dl2f+QZvJ9 3TGN6Qw+WvumYKjy0lNiQQIvLMY97gz5cOCoW+ukKtmebNlm2t05BHQzB3/0ImT8zqv/ +hJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485337; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O/rBHJ3jeIsF5DnV3iy779Hl1kpRg/pHkoneANxryCI=; b=F5nQ4oICSuO8lni016JwWCNe6mRnZFjqBcXqCPgUZAVZfyL//SeZU5edjFYmDWO1SZ crDIa2LF3fFWLic5FBI1U5fYbij8VVgDaaxgXuGOBz7YaGq7ZSHyYD3MA2KUrgKpDWAi lgMmZgI7dVkBmgZSTJ5gFxyMdCEnelyXvLEk5+CTiyoBY5vfqlwIfynj0eQvVyiuf3Vm tfPzQtC6yAio39onTylmPyPiSPi6JmXQdSR7OcruXRQ0cD4voPu5SoyKLcUoam8ub6Hf vNyx1ZPe66JWNniVsjCh7smmE0cWlaEQfA16xnU8pFo66cQI/Y+jtYnBYak5bkiUPqz4 cFVw== X-Gm-Message-State: AO0yUKVcTp2e0uMH5/XCbrkdBjQaotcM9Pnbmnie1j13WneAR8CJkx3E bxrD1JLMNmIQgaWnJgd4LbWzDJluFKxQlyt0I5g= X-Google-Smtp-Source: AK7set+bDbd+tDtc8yzuKVJawgRnJ7VqI7if9gpDpNki1cjNuiiSF0MocAmariVO2bQ/AAQWG2Y7+g== X-Received: by 2002:a17:906:c001:b0:8b2:d70c:34ae with SMTP id e1-20020a170906c00100b008b2d70c34aemr27335425ejz.71.1678484760561; Fri, 10 Mar 2023 13:46:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:00 -0800 (PST) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Laurent Pinchart , Matthias Brugger , AngeloGioacchino Del Regno , Tony Lindgren , Andy Gross , Bjorn Andersson , Konrad Dybcio , 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 Subject: [PATCH 4/9] regulator: mt6397-regulator: Mark OF related data as maybe unused Date: Fri, 10 Mar 2023 22:45:48 +0100 Message-Id: <20230310214553.275450-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> References: <20230310214553.275450-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/regulator/mt6397-regulator.c:400:34: error: ‘mt6397_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/mt6397-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mt6397-regulator.c b/drivers/regulator/mt6397-regulator.c index b9bf7ade1f8a..526acc8fbe80 100644 --- a/drivers/regulator/mt6397-regulator.c +++ b/drivers/regulator/mt6397-regulator.c @@ -397,7 +397,7 @@ static const struct platform_device_id mt6397_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6397_platform_ids); -static const struct of_device_id mt6397_of_match[] = { +static const struct of_device_id mt6397_of_match[] __maybe_unused = { { .compatible = "mediatek,mt6397-regulator", }, { /* sentinel */ }, };