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 From patchwork Sun Mar 12 13:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171438 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 29F13C6FD1F for ; Sun, 12 Mar 2023 13:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230390AbjCLN1Z (ORCPT ); Sun, 12 Mar 2023 09:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjCLN1Q (ORCPT ); Sun, 12 Mar 2023 09:27:16 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C56139CCC for ; Sun, 12 Mar 2023 06:26:56 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id x3so38512659edb.10 for ; Sun, 12 Mar 2023 06:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627615; 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=LGTUZkkfCkNxamopwrKu7mj2z6yaQ9NtQM+S0XNMv+Q=; b=Pd4GYJuoIpKMXFk2TWkkcUxKUSddOD6pPz0xn0z/64rFpDDy6bpCS3uisE4kcLXjzD K1z9OyVeJWDXualnrlw9aBaI0x2oPbk0DUqjfDzPE+ebySoPwDvyPrFbW2lRaOcqTsmI Ekx/PwTpjUSSUyXAudfRdX95QEywhl6T5VHuBmbOF0+eqlFoV4I9LntAGiOPSjO87wF9 R1PmNcJpcCjJlzvT/Ci4CeD7D8TGu/iwB9t04MjJqrylcBw7w7UjJdDntVKfTd0SJm3Q eFfeOdtoB2GmmbkgCn+pdxX4kUy6OK8jkmAeB+uZ460ekL2GkEmEFTXQWrdK9wtp9ZJl xysA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627615; 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=LGTUZkkfCkNxamopwrKu7mj2z6yaQ9NtQM+S0XNMv+Q=; b=epTgkNGh1ZNw1e1IMiNX64NotUZ0xTOotLYSL9/rG33Y1dgJGgIfFcFqZkXV8rB0bv zrmS9jmynW28XBA83pPZrzT4dhWOiYMDCBINbVNQlS+8AxGtdTr9TFc/c/Is7Aa9OctG DcQJ6D9vxtsJ6P4NZ1aLG0STp3iGxn0iZOVmpJNRvk8Zt0egVfvEwMvPYKn/GVJfEURA eoug2Y/y2RMLmjqlcSVCWgxzUZURhehDv+64Ya16j1xsF7rUArr/55uMqo6JkRi89uSq b7Ve8AGc9x6Mzu8dmJq2iAsIJosM123S6HWIQt6HW9nKaJoixZTTqyb4zynq9Z3z/18t m8Ew== X-Gm-Message-State: AO0yUKW851IBBvBdlxoRTnyh4uJ/JnJngRUPeYrxoNePXtxnO8WMWi4d tZeYTp2vIh2l2ibdbx1z1hE4vg== X-Google-Smtp-Source: AK7set/hQZFH63oA7isHWbOCxn+vRqfDmoIje4sNMZQlhJlZ/rLcdMw7EGdg6+XEJ/da73x+5iKoxg== X-Received: by 2002:a17:906:9613:b0:924:d90a:6f97 with SMTP id s19-20020a170906961300b00924d90a6f97mr2461178ejx.13.1678627614817; Sun, 12 Mar 2023 06:26:54 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:54 -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 2/2] soc: renesas: pwc-rzv2m: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:26:50 +0100 Message-Id: <20230312132650.352796-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230312132650.352796-1-krzysztof.kozlowski@linaro.org> References: <20230312132650.352796-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/soc/renesas/pwc-rzv2m.c:124:34: error: ‘rzv2m_pwc_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven --- drivers/soc/renesas/pwc-rzv2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/renesas/pwc-rzv2m.c b/drivers/soc/renesas/pwc-rzv2m.c index c83bdbdabb64..452cee8d68be 100644 --- a/drivers/soc/renesas/pwc-rzv2m.c +++ b/drivers/soc/renesas/pwc-rzv2m.c @@ -131,7 +131,7 @@ static struct platform_driver rzv2m_pwc_driver = { .probe = rzv2m_pwc_probe, .driver = { .name = "rzv2m_pwc", - .of_match_table = of_match_ptr(rzv2m_pwc_of_match), + .of_match_table = rzv2m_pwc_of_match, }, }; module_platform_driver(rzv2m_pwc_driver);