From patchwork Sat Mar 11 11:17:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170790 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 EBBD2C61DA4 for ; Sat, 11 Mar 2023 11:26:24 +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=Cw4+W9aPa5zzYbcxQu9NkwlO3EQkJrNMJGdgBRuFFf0=; b=i/KZ6GbBisbXLf +l+zy8nKrFo+95eRz0H1Cd/0mYtRYOzb66lnrOw8/2bkWvXXcCMgoe6BmkjDwOQC5F74rnbysnw5L WWN5gDn91pFj7Hcl8tXwQWUIuD7s0UYd04TdKEgGg01jONwHml6R49YbnX+X+r3mpMIBg8YQw+hfl bCvTHBAu81P9Bf6Fk9+ncelcMlHAeGaB1qaWQIFxDMiH+EVVe7ctGvlKK3QNMuJFTrQpLqnwHAB/O RjVTl5U8Kx3XtEy2Chf2ofM+UanHyb9P69xA+0i8RSnBE5fFQqYeqWEhJj3B3eFhVtIK50nogCHwF T+VZv+d7+YjD3rewMDHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxMa-000KdV-LI; Sat, 11 Mar 2023 11:26:12 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxEM-000GtG-Bs for linux-rockchip@lists.infradead.org; Sat, 11 Mar 2023 11:17:43 +0000 Received: by mail-ed1-x530.google.com with SMTP id ec29so30754507edb.6 for ; Sat, 11 Mar 2023 03:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533461; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=K1ep3IE3PEf+V+OZrFXRxt1O3+yONVLmI0s6NjZUlFQ=; b=rcBRanYBYO5g+ZPGYI4T03o5Nz0rKcOQIOmdHuU29YA/VsUMU8qjdiYlBwvyEZki2D VPzYmHnRMMUj0ttao2Cvz4zxr7dMmUDjDd5/SusHNrQCcmJKLtRtcYj2K6vZunc6FYAY ZQZb91Vdz+RWXQVA9LpaLjhsSo4wSMykftDYMbltvgo1/Qc6ve6XVzxcPnWgDVNI4nDI /Fpat5GSklfub9SP1WzZeau1AyV8isjpNzRYK2ti9SBO1DBxwWpq06HdwhsGVVPffMUU UrzBa+qWWIcDPzhz5mbXKVAivzAyoYe6rBxxJju9VglVm1fknEQJHMSNoOiVzgn9rPM0 o0Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533461; 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=K1ep3IE3PEf+V+OZrFXRxt1O3+yONVLmI0s6NjZUlFQ=; b=gZqT8FUqBcWxW7D3j9HgCGC/omLkqcu0+KwpLjn4txOPsaCF7QYouxN1U9Dz08rInA i7PKsSkCUbBWdn6FPswKvGJKNTzoXS+HCPCcO/bsV19hOLYdP1ROJkcafHigwyTJ0G+z SkE5yisXjj+sNjZvM3+fMjwOhe/1+Rr8GF2ElfgFmmOJ/Ui9m/0pj17zWW7iyMfhMqPt ACYADKtUZQUazzmHqOfVf0WArCm6xqILZ+G6O4I+a/cOLwenyMKjGakvzdk/ldDTUDHJ XqaoR1IWk9V9bOX7xtauvzCWDKMckSGc8yb5pewsgtK9kAul3D1oapAUJkNzCvI20fUq 3mEg== X-Gm-Message-State: AO0yUKXd1biUNXINHaVs551UZkZQaP9DdXaiJ1Z725uvPLYhjk5PCQ7f XCH9Q00FzXxQeBfv8RMLt8+e0w== X-Google-Smtp-Source: AK7set/jS7PpALh4febSJl8zLhGg6wVyLUUjI10zB53ChUlpdcTmeu61y15+R/E1f45fjcVkWJwCVA== X-Received: by 2002:a17:906:434c:b0:908:6a98:5b48 with SMTP id z12-20020a170906434c00b009086a985b48mr27795110ejm.40.1678533461068; Sat, 11 Mar 2023 03:17:41 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id w5-20020a170906b18500b0090953b9da51sm971529ejy.194.2023.03.11.03.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:40 -0800 (PST) From: Krzysztof Kozlowski To: Jassi Brar , Heiko Stuebner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] mailbox: rockchip: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:17:38 +0100 Message-Id: <20230311111739.252080-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_031742_449843_BE4F7B3B X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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/mailbox/rockchip-mailbox.c:158:34: error: ‘rockchip_mbox_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner --- drivers/mailbox/rockchip-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/rockchip-mailbox.c b/drivers/mailbox/rockchip-mailbox.c index e02d3c9e3693..5a4934d39ad6 100644 --- a/drivers/mailbox/rockchip-mailbox.c +++ b/drivers/mailbox/rockchip-mailbox.c @@ -248,7 +248,7 @@ static struct platform_driver rockchip_mbox_driver = { .probe = rockchip_mbox_probe, .driver = { .name = "rockchip-mailbox", - .of_match_table = of_match_ptr(rockchip_mbox_of_match), + .of_match_table = rockchip_mbox_of_match, }, }; From patchwork Sat Mar 11 11:17:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170791 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 D498EC6FD1F for ; Sat, 11 Mar 2023 11:27:15 +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=6N59IkzpwdJNKFy9PO2YW5M5X8Z216skeT7pOftAabQ=; b=QLG1oXIWoD08If D7g7JbMZeh0WmKu0pSI5rYivxo+GCPnZO7RcDqxW0gIaPd+M0cfCTO5QTPvjecWlrQmd0RDpHspgU d/poA8ZS/Jg85GZR65BsZCM7gfx8n9NQccDp5J7fIAwgL0j8XPd0yAK2Ah86k4gqjwkk9K7AXz3vV Zh/NYnlG9WRsiah1EMIN9jJYOeG41bu9PPlZKuPwVujoeycIny9JMJF5Dhj3VEomx/al+jqSDWVVM EiazycRtUuAJABYS+RGPY9UbXS1ODatVPnoHNP1VhK6SnNY1pQVSt9J95HhdvZtRzNmoStyRXGYRm YDHcgZV1d2aRuKl89jjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxNU-000L1J-Gz; Sat, 11 Mar 2023 11:27:08 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paxEM-000GdI-Eh for linux-rockchip@lists.infradead.org; Sat, 11 Mar 2023 11:17:45 +0000 Received: by mail-ed1-x536.google.com with SMTP id j11so30751757edq.4 for ; Sat, 11 Mar 2023 03:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533462; 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=xIoO6eL+tDM4AN7UrOlT9SrG65ZLyWOyL92QpqRTor8=; b=GvHggC9Rk4fo+TGm5lRLiXN3qBJV2sERDmgNKuAJmI+cZmCiobS/4GR/3IYlSKb7+3 FJc4YTD5lkdKXivSJd1LviB8ZZxvTLwwoEf7S0TCub5RhcJZOhJmmJNzLV00a+ZDKVDv raO3I81Nf6ZZy+3OgBAZVf/mtjB4E/QcnPIj/GcvC0cdA1yIdwjY/bbfUacewkBJ77fz Yqg9Q4gkUTD98JLJOPhLouKIPahsQTBRJapNQd0dmKQy3L1CIBwfOr6vnWp9F0fnQY0/ xVW1w273OFdu+3c9Po7ZvKX4abRvX1PGmKg9vxIGq5rdH+5pkrBNEk7ma5LrzJUIOjbo /wWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533462; 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=xIoO6eL+tDM4AN7UrOlT9SrG65ZLyWOyL92QpqRTor8=; b=wpMpLeaqYfqK4UcSlL+jIK1AcYoATfl3qwKgNpkSOshWvphj4TOTW5Bpbb3lWs4kFt Y+EFanusHGJFEtW/XX74T41GImd3vEGvGAwzDrMl4fQHE4tPj/wEoU+NHRRHfOjg9hDM /Ak4UBYr+Xff5YvkfNaSagMfJKxhR3ZBBlefqMiGdbsjpi0b2K2wHv9bdqBXSRJqEMBU DIZJfzACFq7A40WEKvBvFT5gM/pab/rE0c2dxhwY2XdaooRvWJBEnwJlPbTj3mzlvg70 8I1jbIrXDmNrzQ0Bqo2H5uQfSXNrYiVOG9es1he/D+bBLIzDaA68bKTT1TwlNkrJ+32Z zv8Q== X-Gm-Message-State: AO0yUKVbYaKk2WWZIiVqUj4fi1wRgLJsu+wSK2AgWtPt0EjHvhLAQg4G IL5HdYH7x/sN15IdFzAKMbSiPw== X-Google-Smtp-Source: AK7set9jkO2NlkNHaYb5x/nRZfwPNzWxyfqanMxs1WiUEpkgYaf2NFWZ9/s7vVPeNa53couZfE0xug== X-Received: by 2002:a17:907:d308:b0:8b1:3a1c:3174 with SMTP id vg8-20020a170907d30800b008b13a1c3174mr29519973ejc.77.1678533461907; Sat, 11 Mar 2023 03:17:41 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id w5-20020a170906b18500b0090953b9da51sm971529ejy.194.2023.03.11.03.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:41 -0800 (PST) From: Krzysztof Kozlowski To: Jassi Brar , Heiko Stuebner , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] mailbox: bcm-pdc: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:17:39 +0100 Message-Id: <20230311111739.252080-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111739.252080-1-krzysztof.kozlowski@linaro.org> References: <20230311111739.252080-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_031742_542341_5A96BC91 X-CRM114-Status: GOOD ( 14.15 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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/mailbox/bcm-pdc-mailbox.c:1474:34: error: ‘pdc_mbox_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mailbox/bcm-pdc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c index 8d3a4c1fe761..8c95e3ce295f 100644 --- a/drivers/mailbox/bcm-pdc-mailbox.c +++ b/drivers/mailbox/bcm-pdc-mailbox.c @@ -1635,7 +1635,7 @@ static struct platform_driver pdc_mbox_driver = { .remove = pdc_remove, .driver = { .name = "brcm-iproc-pdc-mbox", - .of_match_table = of_match_ptr(pdc_mbox_of_match), + .of_match_table = pdc_mbox_of_match, }, }; module_platform_driver(pdc_mbox_driver);