From patchwork Sat Mar 11 11:13:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170762 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35B23C6FD1F for ; Sat, 11 Mar 2023 11:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uWInq8wwhVXTP4UUWdJLMmPFDP2zMOYI4QWF64cF7X4=; b=At+7wCavfMSBX1 rT1yaueTXviQRndRgxBRyJ5iz6pLvT4bX9pVY6P5lAzZjpdNkaoUSD9xoxag+PONuqUsSywU8U5yv nl4q1D99loeJtnMOj2LfSYiHTowx110tCMWTL6uQkETKqCDArt0dbs2PAtpPRD96Tj6PBxhcg26A+ uX8L23OPGP/Ba7rsInWApEhQhgDiWzvEeVU70UjXZjPXPL/2lvHfOYi3VDJvZ9GBYQN2whqx0kTct fQk0es/+AxMEXreV69x9A6GMZk5m6atZexfzNtzoTQmTj82OIDDH26LAGntc4hq1DiqBnAe425o+4 S255JaO5hOtLR/U9JdBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA3-000Ecg-DD; Sat, 11 Mar 2023 11:13:15 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pax9z-000EZJ-JF for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:12 +0000 Received: by mail-ed1-x52e.google.com with SMTP id cn21so527253edb.0 for ; Sat, 11 Mar 2023 03:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533189; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bq/suyyejHELTOKo5Lqe9JDVsAF8B3eTSU6jYYaw5rs=; b=GcR1BBQCdR4Nyqe7Dp9VmqBVN4+13vTx5EQOi44pJiaYeXD+D+mKtO4fvpp9GIPG7r BRskmMZAc7XIdFRRJjgBgEQ1P5GIFa4CF13JemkF79TJICvhP2c10MUllTPK1seye4pi re5dV0XML2v+mh3EmItQ33rYyB5W+zffyWOzFosg/rs/L4s7KEG0ns7ppsI7jsSDRr5F W2qiVDcRrk8B46+pmYoU4PIX7mUPqicOY9cvI7rvl/lClgykghEKJdGipn0oy64VBbz9 cZ3ElInRGqJOoyxjVR0VwTCWuuHRceQZLGarrhTJRQ2bWjnZs0TKtT3xc/PFhZQxHq1+ 0p0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533189; 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=Bq/suyyejHELTOKo5Lqe9JDVsAF8B3eTSU6jYYaw5rs=; b=L/Z719Ef9YxozQQwKL1pNeobIaJZdp1fWWyKwWO6H08Aqtzq1FjUtNBiLAgatOVZtY ThecVtbhg1/66d21HfES8BiXUUBclOI0q0Wzdvkri+IL8ifmhL7y5kPfy95KJZUFlIkt EGDX3O/h2CpD8yul3uMqVeKRJzfA6gHahKeh4+3jq1//aqthVQX19UR+GPC5syrFE6xb BJLhXfQ7iikcPsVceM+83vFNLSvDQ8ovrWGKp3PnOqQl+Mls1qeuJHZYGuG1VbYYkped KE9WAxasgWxw3dTVHZkPcMfgkPIgN+RP6SvCd/DR3SQCfe7ACcdonkxlD0aeZZncWlUm bmDQ== X-Gm-Message-State: AO0yUKUD0ddjl17NTJRoyb6QA48pRYRs4S55dfp336tv3lz6rTV17Wua uZyM/FQHhyOvwpyFKlDC2/Xjdg== X-Google-Smtp-Source: AK7set9dk+CAqDZes0jxHQYmgJHEtMKUFbr5JbHgUMiQ/8tZWwFWDoce+nP6IcyAWHRx026mDdaNnQ== X-Received: by 2002:a17:907:c61b:b0:878:4e5a:18b8 with SMTP id ud27-20020a170907c61b00b008784e5a18b8mr30977606ejc.66.1678533189212; Sat, 11 Mar 2023 03:13:09 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:08 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:00 +0100 Message-Id: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031311_660395_808B5488 X-CRM114-Status: GOOD ( 13.54 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-ftgpio010.c:336:34: error: ‘ftgpio_gpio_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-ftgpio010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c index 2728672ef9f8..31e26072f6ae 100644 --- a/drivers/gpio/gpio-ftgpio010.c +++ b/drivers/gpio/gpio-ftgpio010.c @@ -349,7 +349,7 @@ static const struct of_device_id ftgpio_gpio_of_match[] = { static struct platform_driver ftgpio_gpio_driver = { .driver = { .name = "ftgpio010-gpio", - .of_match_table = of_match_ptr(ftgpio_gpio_of_match), + .of_match_table = ftgpio_gpio_of_match, }, .probe = ftgpio_gpio_probe, .remove = ftgpio_gpio_remove, From patchwork Sat Mar 11 11:13:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170763 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88AA9C74A44 for ; Sat, 11 Mar 2023 11:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=H1tAE83P613ntxmrDupNJ/lQP8Kn0MjpKM+oARMUEfc=; b=hf0iZ+RX1lP46W 2ePcTfLG8LtuIZxU1qY9zhLlFCd+rICHPM9THg8jqn6Pm/jbOxpb2h54ACJ1Uj8sqlrIDlNGbobU3 d3SIiPzCOwM1ZFPHQwjR3hX8BXwJEsKU7kUNqK6rjT4DulyKdzJX6cngHC1iPtJmfb2j2DaezhEcL RiDPr4haDvqMO8y/WNaeKR+IZFwkylfTupTCxhKi6uYK+4IQab7qHancFPsNOwaL+sIqB8NKlIzee TwERvSHYzA4HvafxtXYF0dCP/Rfd5ybWhEC25lqXpajhvQJyW046mpPHo4rY2Y3kgnDx8LQfS9wS6 c/zHxZO+ipEebXBNRrcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxAI-000Ejv-2m; Sat, 11 Mar 2023 11:13:30 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA0-000EZY-Ia for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:14 +0000 Received: by mail-ed1-x533.google.com with SMTP id r15so3535547edq.11 for ; Sat, 11 Mar 2023 03:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533190; 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=MKcG3ySBRe5JuI6NeHmlPILSvTUD+lUq9m6at8uAk5A=; b=n2Rvr7kl1IYJajnq0ldv2bkSaydwwJ3o1ZvlrlgBQKI0Xc9n/dtV7g0C9DOkOM/kCl i0mKGhJKduSBD3dJJXjgtnYvaxxkzgPU/xyR2+1QpPGKnK0c7AYrQ3JvwiKnZcNmgqn6 VfCci2mLOlirUQEbj2a41FiOmbSGBMRO2c0SPI6ppJ0DmPTHielB4c5ff6AtRlkdH0QK MAB1G1WVWt4SaT4DZ3oq0dF0CWk5PzgS3EdugtyxMIc2IiwoP789e7oi0zQz+fyNn/52 BadOh8pP/nQbg9PXDBK7XtbDb63kbAcIfTw+cRVH2RDgjg4y8yiRrJEjZFrg2Qty9Snp TLBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533190; 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=MKcG3ySBRe5JuI6NeHmlPILSvTUD+lUq9m6at8uAk5A=; b=v9k7ODus7n6roKTCloHulawma16vO5GxhEsTRh/d2jfmVEZUE6z3xb7kNg6fESwxs4 ORUyg0VUg5vvx3pPOgleW4MKfvxfQICBol3kB43OPX91zllLxoHPdUfCAnQKQljC+XrA VMrN0RIsn2cJ/I01TquzyXAqYDCECDeYQ6fvv4EHInaZ1x/WWhpxwqs+NSOWEWXEXCfk 3PCG+zA96gZQu2qk23eH4uN1deTwM/xyK0CRUxZ3rCVPbJNZgC4sovbdMdOwBz2c3z4B 6WI7sW6TAOB3FlC2KcAd4AWnXN8sVfRDhaD8r4wKBIyxUzPqv/X2361D9rIDEHhUFtbz dj0g== X-Gm-Message-State: AO0yUKWr5wrO/A9lTlE4jutmCIN5JBBrO+XlBcCdifycVWvuq6jc0icV 65bwwf/VZLaeRD+BUPKODkfB8w== X-Google-Smtp-Source: AK7set+YBcaMtvHO4ngFhPGNllDoFAkHQQFm1NFBgnehBp2jMGVV6Aj/CbmzzUXu/tDdio+14jWZJw== X-Received: by 2002:a17:907:6da3:b0:878:50f7:a35a with SMTP id sb35-20020a1709076da300b0087850f7a35amr35308557ejc.72.1678533190497; Sat, 11 Mar 2023 03:13:10 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:10 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/8] gpio: altera: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:01 +0100 Message-Id: <20230311111307.251123-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031312_630373_41B12F6C X-CRM114-Status: GOOD ( 13.99 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-altera.c:324:34: error: ‘altera_gpio_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c index 99e137f8097e..c9158b5230f6 100644 --- a/drivers/gpio/gpio-altera.c +++ b/drivers/gpio/gpio-altera.c @@ -330,7 +330,7 @@ MODULE_DEVICE_TABLE(of, altera_gpio_of_match); static struct platform_driver altera_gpio_driver = { .driver = { .name = "altera_gpio", - .of_match_table = of_match_ptr(altera_gpio_of_match), + .of_match_table = altera_gpio_of_match, }, .probe = altera_gpio_probe, .remove = altera_gpio_remove, From patchwork Sat Mar 11 11:13:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170764 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3637C74A5B for ; Sat, 11 Mar 2023 11:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JijcYy2T3DGD5AvCA8ZzPxFnPbu99vMJh6WQU/xsrgM=; b=RvxuZ5X7FlbDhH 4I/iIBZsh5PJTBK+m+2wQWJNwkVtnuHItWrtmMlLE9tvVyW04Ps5MMtWDPbv2J8I3JFVFU7YHYO12 VlWRGWnqqgOxQ9tIuCDAzM4FOHiQKcsGxtP8yUIihlMuP3oeiITrskqVyaA4b/10e01qyDg4sbKmM nBFZmXsQekYJcfKdgPXDDi1BmQYWPZPy3jJVLav3TF8tTnmkDQvgZr/wY+c8Z1pZ9xgpJiS16qGL1 Y+s+fw974TZN531AjztO6Ogn07bwFxBBIN4qBfSLqXDDJJAJAv8FHuNML/ZIN03eQW+x6agvCCa5U gbAoaJTKErtFRqN4Od6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxAJ-000El9-U8; Sat, 11 Mar 2023 11:13:31 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA2-000EaT-Bm for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:16 +0000 Received: by mail-ed1-x534.google.com with SMTP id ec29so30729581edb.6 for ; Sat, 11 Mar 2023 03:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533192; 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=Au7/yL1zYXB6rvSIYm06fKqV/NjBkMA3JzAdMmyQAvA=; b=XmqQxqtI03WcyyadnLOzT3XankDqi0o94vgWekai5pN10TUTNXpJG22qM9lKhC1aCs 3AnM7FDQ2hqBZ2vgJI4I4bI1qHt4vIZ7KebWNYV/4y0ExT4HSjx4Hv+TtODAieHn9X+B THGjLaP9Vbs+Ze7T8gd/edgHrH5CUzGxuGUv/OXThpUHqgUM27cHLF/nVQtl3vZ8hjb3 zuBZ2LLF4ih3ffhR8eus5Xje1uFb3AWLoc4eRmnBxKaK0gZShkcuuTbowjJb/Qa/hjWu gfSubhUU8uz7BWULWG9RppHcQYHp6nlwLJOG4NZKvp6pasl5CAtk83XCC2j22cbSJ3gY ITHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533192; 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=Au7/yL1zYXB6rvSIYm06fKqV/NjBkMA3JzAdMmyQAvA=; b=EfjF24eOU0HYCLePUFVy7/xvLeYa6KLe4EYqFlOy0vHnX0biAqAk74/X15CVuvopUs VgjAslewmHCpPtPsrBTXj91K8Dhe4Cx0eNLiO3zna5ul0Uvuxy4NffD5oPmTl/GW6rEm mHyBjrNiSf8cq8wtNgBrWmRpMR3t0bXrs47GeFAdbtfo+e0UnKmf4n1lcsvOBgz6pUSv 6v/6x4MePdv+uTFiJXLanl3TvfWOvvTGzfND55bpREWcaefgZABCveIzF9MAeXWDbt0p kPExu3OAmwSkLLbfxeTH5lbysyCvLeM7jc0Xdmto0q3aY4dqXk4sI1jkINppC9bliM4B m2uA== X-Gm-Message-State: AO0yUKX1AXAgdq8mgH/TnpwE6F+J0SPmrRzpPMGxYOCiA8UV8ZRyiPLb I/3hctKQsmVdpCmSwiTEfZItFA== X-Google-Smtp-Source: AK7set8iOl3WmX7WqLjnrxOQrqY8rpn1ZSUQAwX6L+oyJRwqyZmjK2u+y5kkGW9jsi6G9CtnL0hTrw== X-Received: by 2002:a17:906:a4b:b0:88a:cbd1:e663 with SMTP id x11-20020a1709060a4b00b0088acbd1e663mr25443626ejf.6.1678533191998; Sat, 11 Mar 2023 03:13:11 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:11 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/8] gpio: rcar: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:02 +0100 Message-Id: <20230311111307.251123-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031314_430372_9B25A247 X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-rcar.c:435:34: error: ‘gpio_rcar_of_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 5b117f3bd322..2525adb52f4f 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -663,7 +663,7 @@ static struct platform_driver gpio_rcar_device_driver = { .driver = { .name = "gpio_rcar", .pm = &gpio_rcar_pm_ops, - .of_match_table = of_match_ptr(gpio_rcar_of_table), + .of_match_table = gpio_rcar_of_table, } }; From patchwork Sat Mar 11 11:13:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170765 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D41AAC61DA4 for ; Sat, 11 Mar 2023 11:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/WTE/H75l6fsLoEim7PyMhDc5LbLQ6vH+U2WlaOGaSQ=; b=cp5EIP2bfi2nSu z1k12wNpjy6BWgKsrEUNjlH+i0nEYJDOHRUquGWxqEu9XrKRHQU2g/HN9IfsGLCFJhOyY4YQ4IAbD Vwj/U/SkrCD7mhOE6EoonKWB9saSJjbI/2nMlETASQVEUgFyaa3Pk7BQpilV66VcdjjGwuv9+7Cy5 6ML7zu2icQ76h/Bo16gRFYkbUXInKLcMUfYUwYUGdlwrSNfmaxMyd5KQvCuQzV5jK+LsDU3si33og n4Zud6CzRdyTK3+f4dnZptqdPe4gbt/ULWKDBGqUYT5PRjig2NTnRBzu2wHk0yunb5m1dFz3yDq5+ jLLNhNNbh/nGhqWs0gvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxAY-000Et5-VC; Sat, 11 Mar 2023 11:13:47 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA2-000Ebh-D9 for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:16 +0000 Received: by mail-ed1-x533.google.com with SMTP id cy23so30619866edb.12 for ; Sat, 11 Mar 2023 03:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533193; 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=Aq77vQWPmqN0P1uClqWDA1EHy5/jRECv7qlu+zNRs6E=; b=wZhAnnIZeT7MXdc2zrQmCUUtQSrHgd18EBJULNpexDsCm+kAnXxTsna2cYJudLEItk EVVR7jB0HWSsrGexv1t8WRVbDv5wiS5X//Q0Q9UMBICgstFHLykEeIsMc6nwZy9fen4c faYhgqvPZW1XIDNVoq6yAs+68/2LWZRambKNXfznY0FiBh5/u7OEEQjVU3BHVid3UbSA i4E/T8AhOCumDQaXRrE4rCMBDIWT83vVj77CAWwhZhc1AfVj2SKQQVno+4LUVO4sqpa3 AauuUHbFYJBBWl52L0yEnst547gn9FOMwbwMk80vK54jc9rhgbqlUzyOp0Iwc6+g4UB3 tAXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533193; 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=Aq77vQWPmqN0P1uClqWDA1EHy5/jRECv7qlu+zNRs6E=; b=NiW0+ZcErXwVstIhBvZpsfFmwC00prfeyyI0CpiPlif19QCVEOZb7dxW/sY13u5vrs ElyGpdvLJmGQAJLwsm7Qlrh80Y4HwqAP4FcIuTlL/UPDvDUBDVFfbBRBhhxUXsweEij+ uv3oTfXYfNPW0pheaa2VTBeit0vbCuaL0MzY6yZDjkVST+EyHnX0cRna5/hEljv9gXqf MGCWKTWiEyqlsMxczRP5KyVY3j87wkIKkkNvL03t5e0OBda0Jpx0xQbuYU+Rj1ixNc5C iXskR1VoEbpfU/rZw6aSikVTkQ8wo177eAPNx49Na8Vo7+FF5NeC2CLxMzSxenQs+bE+ Km/Q== X-Gm-Message-State: AO0yUKXGQGYw9c8Yh0N5uRtGL43R9KdTCMPv8pXCBj2oscn7KWeyrQFH L/0Hk2E3Er3UtBeWxF3QDnBgUw== X-Google-Smtp-Source: AK7set+/rTdizsglqbDuXDqPYxb8+Sz15WC2l2nH3OBdecIwjfF3xVJtNxtd/pcpj3MJ2dwtHbkMww== X-Received: by 2002:a17:906:52ca:b0:8ae:b008:9b5a with SMTP id w10-20020a17090652ca00b008aeb0089b5amr27143452ejn.69.1678533193246; Sat, 11 Mar 2023 03:13:13 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:12 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/8] gpio: visconti: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:03 +0100 Message-Id: <20230311111307.251123-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031314_500839_F4F9EC46 X-CRM114-Status: GOOD ( 14.18 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-visconti.c:187:34: error: ‘visconti_gpio_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-visconti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-visconti.c b/drivers/gpio/gpio-visconti.c index 5e108ba9956a..10d9de41f29b 100644 --- a/drivers/gpio/gpio-visconti.c +++ b/drivers/gpio/gpio-visconti.c @@ -194,7 +194,7 @@ static struct platform_driver visconti_gpio_driver = { .probe = visconti_gpio_probe, .driver = { .name = "visconti_gpio", - .of_match_table = of_match_ptr(visconti_gpio_of_match), + .of_match_table = visconti_gpio_of_match, } }; module_platform_driver(visconti_gpio_driver); From patchwork Sat Mar 11 11:13:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170767 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADF8FC61DA4 for ; Sat, 11 Mar 2023 11:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XEHwD5AlZJZAQg7vcrnoDr0spFrU9VM70hGhBESyMWw=; b=UTL75hvslzsnjB qdOpqZWCHizTNgIF6d3GiUneN5JHmm6DMYRJnSrPowpDTgzmrFR/ffYhWWPVsauC+oT59W1owgAI5 8ngiqT6LEktu5ctkUqu1aBJ4ZCVJ8+BUdvz09SwoZarE468uLTMlJ93dCK2orD6vZy/RAbFipHXNn m3C4zfVY3jfAr1BFHTqsEm1aC6TTbXpCh0eLxSSW2946hNXIdGCtUj+wqd6lDsB5GhmPyWI5Pt4xC XMqRD3VY9RqDOeJQRsaQoENHy62OxqoA9w0GLqAcVmJ51U70JVo7qp1Qvz3+jnarotugYdz+kUvdU xH5sUtx/NYtJUssltoog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxAs-000F6H-NE; Sat, 11 Mar 2023 11:14:06 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA4-000EcT-OZ for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:19 +0000 Received: by mail-ed1-x535.google.com with SMTP id ec29so30729803edb.6 for ; Sat, 11 Mar 2023 03:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533194; 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=VC9LP4Mz3ZehLFvi2CSx22bsql7JNCcQ0viTq1wmSCc=; b=O4S33oHNUCZoaXa1/QENkscGWzkVC5vXemfIKwaGTgV94h9Skey96TbQiRRLkCDmBP xRoabFrs2wASqubivqfcgL4ZsVoG/abE12Fgx86eMPRytCmEtI0Dp3mts5s+NnTbS3TN SnhU523+D2+a25wrW3xsy+knBpl6l8eDUY1F36c6Nr61tOouSC7iBtl5356TiCC76BG+ ZTBnnJcXcdo2WoHDxL9iyQG0JeMNpnfRQdaCCxfJtjgiy5o6xNvnGPWAdzuk5Ui44u5U zQyFJXKE4jtrQ8KFv9mpx2N0fNcURBaoMTVMTLkTAeIXssbN8Zs+Zqpu48Oc/p5fkBc4 sC0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533194; 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=VC9LP4Mz3ZehLFvi2CSx22bsql7JNCcQ0viTq1wmSCc=; b=EqzpxL35JjZA3TYz8/TaoyEtZjFj/b356mG6RpQP+t2t/hBt7jv5iEIQIzoHvilxcw d35J+gV6KQYL4cdh9BuN5lBntJHCvmHxaKZ+Ugc1URQDzYaI91y+s39YXWV6VK0dOBZP XbwTwUAujuAegJhJjIjytITrXhrqIxGS+AYO3kUKTvGyCdlwvlbk9mNb96gfdnL9eb32 ikXmstGifnZf5TGcJ1T94IHrTrrtD5Ss6J9etxOPoc/337TEz8ebbq9jD7/761N77EGc /Oj7df4MZEHtC6omuRKD+VmHUclxgVT/E/q4LDApz4NzQ+wnQXnQQacWeAFBaqaNLSCC sD8w== X-Gm-Message-State: AO0yUKX9B/HqNsUB7ZicEcmmeFlrtlXzg1eJKX9G2HZVZY047wcCK1MN kv/fPcdG5j30Fq+c6QX2vGiqbQ== X-Google-Smtp-Source: AK7set8NY+cOflW1Wg/2w/XINECjCWqtchHoBTmqix4SLXg+4znExK1iEYJu1Qx4UfVb7s6bex1nUg== X-Received: by 2002:a17:906:4f94:b0:8ed:e8d6:42c4 with SMTP id o20-20020a1709064f9400b008ede8d642c4mr27839053eju.12.1678533194223; Sat, 11 Mar 2023 03:13:14 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:13 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/8] gpio: sifive: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:04 +0100 Message-Id: <20230311111307.251123-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031316_875712_607061C7 X-CRM114-Status: GOOD ( 14.12 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-sifive.c:263:34: error: ‘sifive_gpio_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-sifive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index bc5660f61c57..98939cd4a71e 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -270,7 +270,7 @@ static struct platform_driver sifive_gpio_driver = { .probe = sifive_gpio_probe, .driver = { .name = "sifive_gpio", - .of_match_table = of_match_ptr(sifive_gpio_match), + .of_match_table = sifive_gpio_match, }, }; builtin_platform_driver(sifive_gpio_driver) From patchwork Sat Mar 11 11:13:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170766 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4970CC6FD1F for ; Sat, 11 Mar 2023 11:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Sqg7STBc1rqCduWZ/nqH30ifQpx1zMA3d1KEPBJTkCU=; b=IkqOEgpY5NqS6E 18hs5Ui4k/w6in64f0a9pWjQBul3QWvrezHeqHbQnNOY9S/DMNu8ZuXMOIdwDQGGaK9qZnzgstpND qFG48r7rDrh516ixuMvyqEd9SAD3Y6VYjtwCbzWY0Tf8mFTZnEm3P7Vp6+ZtWDGmtbzvBY/vwGBAl 9ovqG3iEHyxE/nMHjxpE4axzjOY7veN+1YLy6AP4FP90zdwNr5WaPEVD6Ecjc+U6OHZXuYCzHQL2s cP9HglFLJ9oGdUS/A2/Vv0fdfSFnLVzxkVSEQr1deRvaSDb+l+KU0NHSLhzIpJtKn1gQfsyMRlltN RR6Z5s9tiPwybr60cHyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxAp-000F46-Aj; Sat, 11 Mar 2023 11:14:03 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxA3-000EaS-LY for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:18 +0000 Received: by mail-ed1-x52e.google.com with SMTP id da10so30799399edb.3 for ; Sat, 11 Mar 2023 03:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533195; 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=0wsjEFg411f3j1GspmCDAJvrOGJIOzP6/PbM4Sd3D2A=; b=XhfSoLEog6AUz2J6PG6GYohg6cYoVFocyuaGxSFjpkU1pCGqvxorZPijHHSMQi/xKo /P0LizNb/zLTXk+vbMrXMpGlmU+jdQg9dAiHeT8/aCRS1sbq6HffoLTmD1eu2YwMS/IX sGWA2Y7kTrdUsfwemZA10Gc43Rln2DPpIUAymagKYYysvnv0ZlUBY1Y8/0xWSsB0iOAa RAyY7ZOUWIpAX/CnRWX4PdK6wCHSLVHpqv47VIufbYQPX7BYtdCqnYDsQ2HiOT+BgoX1 TM9CKg3QC0oqE9ZS/8HLT++P2NsNRrZ7VLUs0EbKFvIh6Im+cCvKfF4NPdtAWmOf4MKj wQaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533195; 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=0wsjEFg411f3j1GspmCDAJvrOGJIOzP6/PbM4Sd3D2A=; b=wU8+b5nLWDf3ZRrZlEsIZUi8WY7LkdAaDmD1A/9zbaFkbwFEU9DQ7CoFeW3rRu6Sz5 gwrnvXqntdCSbyEO1GJfXaFm0XoYU14Crw/TNDMtxlQfSefIlwYtuD63D6XgKtQ7Qg8J U57wV2QqpAFqtPZoQZ/s038/7xAZ0H3E4+xHAHdHppj5O5RCejhiMpq7eRDQBuv57JgE 04zX4OjdtSiHiTfe0A62BZczWPyPPfGTWfLfzbOT392jASe76g6ef50S3tQ1+3QV8rVV g1t40pb6wHubRA6d5kDRhht9NdH89Q59DkzvbbQgUi77s2EhmN2OS32yo9c6dMwjkqsr LSDQ== X-Gm-Message-State: AO0yUKUAhtfvKrxhzqU7CvbUHs57d09Va54PJ4ixms4s/UQruVcLnYyl WsRwhEy0F08/XKa8AZV0bBnPtw== X-Google-Smtp-Source: AK7set8+yT6UzSrYOGn3LNs3My65y6SinT09SwukP5nlfb5NWOHN8GOPBLSL/652xN3+evwtWbuaFA== X-Received: by 2002:a17:906:7f8c:b0:921:5cce:6592 with SMTP id f12-20020a1709067f8c00b009215cce6592mr1057307ejr.59.1678533195246; Sat, 11 Mar 2023 03:13:15 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:14 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/8] gpio: sama5d2-piobu: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:05 +0100 Message-Id: <20230311111307.251123-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_031315_764459_D2E41666 X-CRM114-Status: GOOD ( 13.99 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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). drivers/gpio/gpio-sama5d2-piobu.c:230:34: error: ‘sama5d2_piobu_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-sama5d2-piobu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-sama5d2-piobu.c b/drivers/gpio/gpio-sama5d2-piobu.c index 3e95da717fc9..767c33ae3213 100644 --- a/drivers/gpio/gpio-sama5d2-piobu.c +++ b/drivers/gpio/gpio-sama5d2-piobu.c @@ -236,7 +236,7 @@ MODULE_DEVICE_TABLE(of, sama5d2_piobu_ids); static struct platform_driver sama5d2_piobu_driver = { .driver = { .name = "sama5d2-piobu", - .of_match_table = of_match_ptr(sama5d2_piobu_ids) + .of_match_table = sama5d2_piobu_ids, }, .probe = sama5d2_piobu_probe, }; From patchwork Sat Mar 11 11:13:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170805 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BEB6C6FD1F for ; Sat, 11 Mar 2023 11:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dHzIA9HuSMxw3W2NI4HKOgdZr2Xt63hh3tbktKFESCk=; b=wCRGuOZr5uyPX+ LDZs7XWCQVKC02EqDEyEtwedxfNkbdQ8RRUiFIPOvITTUK70dDJG8tm+8xfq28Y+oMd8I464JL+4+ BtlZ6ByPXroodaerY/H0aEOfkr8RWtwHf8rrScttVjEEsVfF24NUJ1vI1BXtH59lge/Tb47sNyvVK etslLxPA0TsDvUqHNK8sthgbaNR8SoPAt16uFAkmph9pKVqaTG5mbs411NnhSre5nyZwUsvKBAJUp KawnbfHGS4sY/7HSVTHOoYzg2VXrLquUX6XhHuItxyy/0uuouuHRaUPwe8QntearRq4jaBIdxotRJ T1RVg+rrkWfYCGqiKbaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxfQ-000OcT-8G; Sat, 11 Mar 2023 11:45:40 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxfG-000OXa-8v for linux-riscv@bombadil.infradead.org; Sat, 11 Mar 2023 11:45:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=SV/dLCNcysuQ7CKaIgag1w22Gn4yS1/4xn0PDWGs4Eo=; b=T74+u4WKiIZeLv6StuyXlf0jJ1 e2DD2qZAbz3o5l0uHfKQFhjkZ0IvdKnaCjtZQ34jrMtGjXano8925E3PY2IiIdxiKSp2eWjxMLVVl nweL9jPpJSj+xfAwBJQnY1DsY7tqG2z+FAufNNqziIA68kdn31ilFAhL4zvNQ0jvkgwAaMjrmo79O IN+B81nDIu5qEUYVzdQ9plkS5hWZ0+NNmDVJhhT13lj7CuRB+ZBlzJzb5pHldJKApPA+f7aU14h/M rT8kCq453wpRur7wrzKIffIB0aaOA1Rfh9fj9dQ3VelZoIJDHqywTKcAg6kOHKVyOtEIG1cSRbtzP EdKUHrGg==; Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1paxA7-000j0P-1o for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:22 +0000 Received: by mail-ed1-x536.google.com with SMTP id g10so1853729eda.1 for ; Sat, 11 Mar 2023 03:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533196; 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=SV/dLCNcysuQ7CKaIgag1w22Gn4yS1/4xn0PDWGs4Eo=; b=aewFZRIKniBekuXeMaGJNez/58uZHOVwAjNPwR+B2kHBdCJ63CkilQSENhCJYv1pG8 zcdnWH8Q+yGhNsdegLlOpHWz7AwkjhUo95EFhrKrhmzfm1bOy3rn2FLD0oFpAV7LWLEj v3vF0mvNf0CiJkdaUGzWtA0y0C65mtU2nG6C7ACOubceuA5VnzGpt7TduSKrg1nOpJRr ia6lVsJaLdTEQsL1KCrPsaeT7F1X85eZ/ho87my7n2LIlKlqaRn762ULmRFIxorqevxu JVa0UPmb8expOEojDdKdP9vfyvMKf7Aja4zcK8MX/wkFeoGATANvM2Dl7hg0aqiNPoxQ Zqiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533196; 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=SV/dLCNcysuQ7CKaIgag1w22Gn4yS1/4xn0PDWGs4Eo=; b=I2Ak5ZjRQNLHbq22sDs7T+hg7jtnMS0rs6+1qsyEVxPw4ynHPVtsugSSD9n2V/iYzU lOTAEE705BtCQKFMHx8ykhAfWf75YC6CkoQSje5t97NeSQ3YC/PByeY7r+5vJClbGBSu vQ3E8dN28Byw5Sj1S10YkxPFU3dlsvoNgZqF3l8OLWfG1iTeEyDNzRVsEtopICZ/GkHi pfChEQ0fYKzr4cWH7cpn4Aj8+Se6StwP853LKHg22S1LrYcALLFP67tEW+mK7VhjWi2O jAvAUI5dAkq1lGYx55B/YR5hYbwaugCS97qgwhp2ULacA1tFOAdTAgtEOXybG0ZhA0aP 2omg== X-Gm-Message-State: AO0yUKU94p+w2ntbpqKlcsUeYXXcjf6S9oMCzMf0y1UZisCSyjuBibKZ NoXgvhJBKqBm8bCrHzX8PyQc7w== X-Google-Smtp-Source: AK7set+zT8di1EH1vwo5WQtIvhf3MGOHHVEN7hy7axJP4iQDi22LYOiHLEsY77pHOuQpGOh2MpfNuA== X-Received: by 2002:aa7:d78e:0:b0:4fa:d75c:16c6 with SMTP id s14-20020aa7d78e000000b004fad75c16c6mr515662edq.38.1678533196359; Sat, 11 Mar 2023 03:13:16 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:16 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:06 +0100 Message-Id: <20230311111307.251123-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_111319_857661_06A4F3E0 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/gpio/gpio-xra1403.c:198:34: error: ‘xra1403_spi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-xra1403.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-xra1403.c b/drivers/gpio/gpio-xra1403.c index 49c878cfd5c6..51d6119e1bb4 100644 --- a/drivers/gpio/gpio-xra1403.c +++ b/drivers/gpio/gpio-xra1403.c @@ -195,7 +195,7 @@ static const struct spi_device_id xra1403_ids[] = { }; MODULE_DEVICE_TABLE(spi, xra1403_ids); -static const struct of_device_id xra1403_spi_of_match[] = { +static const struct of_device_id xra1403_spi_of_match[] __maybe_unused = { { .compatible = "exar,xra1403" }, {}, }; From patchwork Sat Mar 11 11:13:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170804 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7EDEBC61DA4 for ; Sat, 11 Mar 2023 11:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SwcYuQAlIyMlomS6DxjcvPsaJNeijMfon+hcLNtY3Ng=; b=ir6ZSa8+prMjLB DxPSRwnn3VQ8XeBLNZJOKemyv1VuD8+MV4DOcG9M0whRxHC+dU/kbp1JVlKOsh092utrbu4T7PdHb Tgdh4WmhmLiPiMCCYhaJJooYzonuf2IoEW/c7z1/fazJG5Z+hPgbHriv43hnDI8uTjAS7TtWExd4N 5ZEe4aoOR4O9tot6Ia10elBo53wyt3rRAMwtVui4T2c04dT9VGbXfTmWyGOI6hss2FTWXG96CZT9c kCe/VB5hXFSQsrObB7Nup7iHFXCA0R2Ec9pVQmrCPCvbIg30gFNKKlOjGcFikc3M5pK/dSsKxIGpE xEKUhKMd1Uy4hDFvjZcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxfR-000OdM-Jc; Sat, 11 Mar 2023 11:45:41 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxfG-000OXa-KV for linux-riscv@bombadil.infradead.org; Sat, 11 Mar 2023 11:45:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=5rB3q6hozgVfcdPrbsf67fNWfSHcvZZqXt4YDenx5ZE=; b=WiVmGrJmfLw5nCiAjKFZ2OfqMB gJatkIcUz3dKC9YJsR/5g7zFRyjJ+xGRhA9sCY8TT0Qv1kLpd7cVVHBt5fO2FTIossj5bZfeJNrrZ n0pRcO28tX6QdfTWxdh9dqazmp42H6e7iZq9yyiLxu3fKF0Ps0whKtxpg/HoJ6iR8BgA3cbWy1iE3 ddqHE/XIhu6c58siZR6BUZcNa66Vk2AlfFHnhFAUpNhhbts4O4NmM7ArhBsE9p+jwsNcTrMbQUmK3 j9s0LbK4GW2ewuZ+nemBd/ON1smT268SuyQ4JRta7WPXC5owWhdHlRPS3kRU7YEdo9hEf5bXpx5eg Y87WgqsA==; Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1paxA7-000j0Q-1y for linux-riscv@lists.infradead.org; Sat, 11 Mar 2023 11:13:22 +0000 Received: by mail-ed1-x536.google.com with SMTP id k10so30631491edk.13 for ; Sat, 11 Mar 2023 03:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533197; 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=5rB3q6hozgVfcdPrbsf67fNWfSHcvZZqXt4YDenx5ZE=; b=aR94cJVoY8K4fjPFcZX1W2Np8gTXFJjYSQFlXozjBDUfwYPGSwW5v/z2JMbYAb6PrV zvI8CVyNbm8DQWlo/jPMGrZOOEYh+8xzf6zcwtEtKo2YYnAdSWrWI37lG2nUP4WXW8ji z9oa3Xqhq6tE+3BhZT8REto2kEPxkpt76BtKLIgPfaWA8OhMI1iv0Pkxbnc3B06hyfai bZmGvnKCEWNwnCweyCire/5fdZ3VL05AgWek3S561QdETMTDBza1e0MByy7W8T2LBzlA FBaPIxdIPNItOV0d+1VPl1Qwzoqk8pRI0VXM4aAzqAc7oLnJq6+UwC7O0c70IRtCEDUN SGGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533197; 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=5rB3q6hozgVfcdPrbsf67fNWfSHcvZZqXt4YDenx5ZE=; b=6/T17Svcxl1y1vqiha6mSxbTC2Mlqo4SiXKDlPD2LFRBKH4WpunG1y9U4XF1eoT1N5 atZv6fJCBvGU7gtZC6XX/lkZk0gPgXj8t6gVr3rmw8qEXn1hqr2nBb+ZPb+2mUE2+0yw 7bn7DG42E/hjep3K9+LbRKQni1t5z5O/hSxLxoJogPrv89YuEzsJrqq7bng7rARMlNLa 7RtCYhpKaijVIQ26N77dO59jwzwYwVNrMK6zIqj0vo+yXE9xBh81UavJxo+aIk8n45Ex cAh6YTwOLT3AUgp7e0FwyoMfgDd22rkE+KBknUbj694i++sZII7tbuPX6h25OCAWT++8 Q5SQ== X-Gm-Message-State: AO0yUKWpBTHlJ8khEvlTQtkMpyE2TdYZB5N4OYLEnYn9dZi44vA1nZQV reQp9UHkz6+VdoZvvkhGxOIvgg== X-Google-Smtp-Source: AK7set89JC1vv0eQfsiqhM1cfuy+WEUarXTfD53+WNNyBec5EzYrz2984z8U96HUMhNZHJ58eIlczQ== X-Received: by 2002:a17:907:6d86:b0:879:ab3:2864 with SMTP id sb6-20020a1709076d8600b008790ab32864mr32513247ejc.24.1678533197638; Sat, 11 Mar 2023 03:13:17 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id s11-20020a170906bc4b00b008ee95ccfe06sm973189ejv.119.2023.03.11.03.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:13:17 -0800 (PST) From: Krzysztof Kozlowski To: Mun Yew Tham , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Broadcom internal kernel review list , Ludovic Desroches , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Nandor Han , Semi Malinen , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 8/8] gpio: raspberrypi-exp: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:07 +0100 Message-Id: <20230311111307.251123-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> References: <20230311111307.251123-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230311_111319_857661_318D5526 X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/gpio/gpio-raspberrypi-exp.c:237:34: error: ‘rpi_exp_gpio_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- drivers/gpio/gpio-raspberrypi-exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c index 3c414e0005fc..ecb0d3800dfe 100644 --- a/drivers/gpio/gpio-raspberrypi-exp.c +++ b/drivers/gpio/gpio-raspberrypi-exp.c @@ -234,7 +234,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev) return devm_gpiochip_add_data(dev, &rpi_gpio->gc, rpi_gpio); } -static const struct of_device_id rpi_exp_gpio_ids[] = { +static const struct of_device_id rpi_exp_gpio_ids[] __maybe_unused = { { .compatible = "raspberrypi,firmware-gpio" }, { } };