From patchwork Sun Mar 12 13:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171437 X-Patchwork-Delegate: geert@linux-m68k.org 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 B5D36C6FD1F for ; Sun, 12 Mar 2023 13:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjCLN1W (ORCPT ); Sun, 12 Mar 2023 09:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbjCLN1I (ORCPT ); Sun, 12 Mar 2023 09:27:08 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45BAF37F26 for ; Sun, 12 Mar 2023 06:26:53 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id cn21so8391928edb.0 for ; Sun, 12 Mar 2023 06:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WytfSS5SlCtvN3tu8z+yu+BDV1OoIWQw97CMtR0M6Fs=; b=bCtUd4r0Jb3+ogB8NYH1QXQ0YXhVjJo+KKZ4Gzj/Op4ikKit5BrweRpAP2o870HJgv Op2Reu1uH8mjdQYkSiASSjust4eEpPAxUDnSa/KrVd9T8XiFv18g3Sw4Q9Eie1AiGtdr npE15I5zCfFGgGgLGKZMTDf+c/WmgfDK0hM+2hagUNjN4Vsc6E7/IgemNZzpm955YvOf RsVaW43G2YJCAtohoOuph7X6Y1PWw0U2he4YU5J7aJ6c0pkQ4ev+aLwmBMTxZR1DSioG 4QOb1IjZEqPgikZBTaFORuZqRRhdAlUzaGzPLPO0MtufrLtO0pVQe87cYkxBr4uDvPmU 6wqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627612; 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=WytfSS5SlCtvN3tu8z+yu+BDV1OoIWQw97CMtR0M6Fs=; b=W1l9RwCm4UKP5Ct8AbOXBwKYOK1Ah8z2Oea3/QA1F9eu/knevnKTA+lQLbwTbXPp4a AHg8kBsg1Eo5mi8cveu/IVjE/kUArNzw6xFxsbdv4IgsdgD3BgW6bH2W49I2nz1QGrfM InPt+b58Kf4zgMV8x7MuyL1JKlqYFTQun1msqMIVQUkQOJ9FThl+hZtQW7iGiN5fweCf yb+mqEOUkySEhMiiqGqTO7Q+fFmC89KKDyijrZdm1PQC78aBE+VX3BqdWROCdt31N7Ht AVf4I8gmN6Yf8NecCQc2M/DPE9Uvr5+z8YoADIiFTrniHGYVbvlcoj9meV5r5YCfhyFo kwcw== X-Gm-Message-State: AO0yUKXigin+lmyl+rzITYDAS1drmMo12RaSB4ZGPlirF1OzsTYwigI1 ahbpinO3Bqqbhpj5LkqR9HejHw== X-Google-Smtp-Source: AK7set9B3LhrBjMfL2aw3ioMNOnb2g+Fi2MOAMLriFy7O5vDSEwmI/ai/0OLcMaSr73LkK7rgJPgzg== X-Received: by 2002:a50:ef18:0:b0:4ab:4b85:a69f with SMTP id m24-20020a50ef18000000b004ab4b85a69fmr29958230eds.1.1678627612626; Sun, 12 Mar 2023 06:26:52 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id u21-20020a17090657d500b008b69aa62efcsm2244715ejr.62.2023.03.12.06.26.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:52 -0700 (PDT) From: Krzysztof Kozlowski To: Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] soc: renesas: mark OF related data as maybe unused Date: Sun, 12 Mar 2023 14:26:49 +0100 Message-Id: <20230312132650.352796-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/soc/renesas/renesas-soc.c:272:34: error: ‘renesas_socs’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven --- drivers/soc/renesas/renesas-soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index 468ebce1ea88..9e0a5707d917 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -269,7 +269,7 @@ static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = { }; -static const struct of_device_id renesas_socs[] __initconst = { +static const struct of_device_id renesas_socs[] __initconst __maybe_unused = { #ifdef CONFIG_ARCH_R7S72100 { .compatible = "renesas,r7s72100", .data = &soc_rz_a1h }, #endif