From patchwork Tue Oct 15 21:33:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13837269 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 71F67D1F9D8 for ; Tue, 15 Oct 2024 21:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=kgqvnYCulx5GrBUNkm6dbN9z/AMn9nhQtJVyer7NG/k=; b=P0Wki8dXy5QUUxkzqDSuuCZs6t uLWBT0n1MI+Ik3a8vVypc/hqxu3tvMolRYlk2EcfU8AzI16AgOuvdpWN7a6pvCxNIayPCHA45ghdF bsKes78R8F6Q5/Omtey9eK1eJvUZSdA9iN2AaV6yYa0T46+UmK6LFMPL+nRTJrilByPbxhxEkcV6n FwBzm/y/nyuu4rNuFf1gPNffHY236uQcdD9s2KisPH4TnOKi40u8h/7Ed9PMk4qIa1uD4PYxIyPnt rbiaFSW8bt3qX8yH3/2NCGFc3/Kko6mqoad1FKahVCBzEnlPgDKC/Fek6PfaWe8z9dsZl4BitvI/f aEdD5HSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0pE3-00000009g2G-1dDk; Tue, 15 Oct 2024 21:37:07 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0pAb-00000009esm-34MR for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:33:37 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXOu2113399; Tue, 15 Oct 2024 16:33:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1729028004; bh=kgqvnYCulx5GrBUNkm6dbN9z/AMn9nhQtJVyer7NG/k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=l6Y7b7UOlbfa49Ikd6d9jQL6LIyzk0tS3cK5/T8yuGm4jk5FOkchM+GLqjIqfs66v JZF2b9lZOTJOVQaD9Ja33rNV3gNgtned9ib1n4FLk0HdLQanMSKn8X6f+WU/yHq3ZH QWPM3Zrg3RIWhTh4Cf6xJWmmQrQF9ynteMUxqAzI= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49FLXO2c038573 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Oct 2024 16:33:24 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 15 Oct 2024 16:33:24 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 15 Oct 2024 16:33:24 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXNBc038888; Tue, 15 Oct 2024 16:33:24 -0500 From: Andrew Davis To: Jassi Brar , Arnd Bergmann , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , Andrew Davis Subject: [PATCH v2 1/3] firmware: ti_sci: Remove use of of_match_ptr() helper Date: Tue, 15 Oct 2024 16:33:20 -0500 Message-ID: <20241015213322.2649011-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241015213322.2649011-1-afd@ti.com> References: <20241015213322.2649011-1-afd@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_143333_907249_19810BDA X-CRM114-Status: GOOD ( 15.32 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When OF support is disabled the of_device_id struct match table can be conditionally compiled out, this helper allows the assignment to also be turned into a NULL conditionally. When the of_device_id struct is not conditionally defined based on OF then the table will be unused causing a warning. The two options are to either set the table as _maybe_unused, or to just remove this helper since the table will always be defined. Do the latter here. Signed-off-by: Andrew Davis --- drivers/firmware/ti_sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 160968301b1fb..6a6bf7a2d1349 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -3421,7 +3421,7 @@ static struct platform_driver ti_sci_driver = { .probe = ti_sci_probe, .driver = { .name = "ti-sci", - .of_match_table = of_match_ptr(ti_sci_of_match), + .of_match_table = ti_sci_of_match, .suppress_bind_attrs = true, }, }; From patchwork Tue Oct 15 21:33:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13837289 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 5A673D1F9D8 for ; Tue, 15 Oct 2024 21:40:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=FyOwZ0vkZR3VUSG5bnWs+lHeIc2qBlsGjbbcrAj+bnE=; b=pwyGxsR357+5dM+2qg+CLe1HQ1 YZhzB+EV72yX1Vxge0dbnb88/uIYc8I03HzUQycxHigtn1Imc2opTsk7Ls0cn9em1vKsQFTs9S3LR F/npmHzKjiouJNMPULexc1/sAGS9jZ4CQ+iNYEQnRvI4i4prOWiyGyxpr83QFabbx5DqIwJjRrLEq m1066ZsNg3oJ92O3k/2pPFLLCvCv/X4XbM0Q7gyeekTQFkbDQ1kCvTXyiXav+MM8RfnOqLa6l614t BIGaxuhmUr51NaExKjcAjzZ1W/pNW86ndCJeDVhqumnRUvkgjebMnBPUQ1X0A8xO1p3F5/qPQ8bxY BKk71hsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0pH3-00000009h4R-0goc; Tue, 15 Oct 2024 21:40:13 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0pAg-00000009eu5-3wKH for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:33:40 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXPCB028091; Tue, 15 Oct 2024 16:33:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1729028005; bh=FyOwZ0vkZR3VUSG5bnWs+lHeIc2qBlsGjbbcrAj+bnE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PGA6R1BTEdYUHwiYAIuUBo33yLXeWQHjphHEwGBmW/7EmnQ9p7McqjFAtbCPs/oWR WkOUG45HVnRlNIpDcrEP9T/xDEg+Pdn2hI4ZV/AkG9UntUlNnozo3Z2fHxELGGjZRY X3DH9i5N3wS6SBdeKrsWSeq0UQVmiU0SyBAD5xl8= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49FLXPlH086613 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Oct 2024 16:33:25 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 15 Oct 2024 16:33:25 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 15 Oct 2024 16:33:25 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXNBd038888; Tue, 15 Oct 2024 16:33:24 -0500 From: Andrew Davis To: Jassi Brar , Arnd Bergmann , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , Andrew Davis Subject: [PATCH v2 2/3] mailbox: ti-msgmgr: Remove use of of_match_ptr() helper Date: Tue, 15 Oct 2024 16:33:21 -0500 Message-ID: <20241015213322.2649011-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241015213322.2649011-1-afd@ti.com> References: <20241015213322.2649011-1-afd@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_143339_104722_70D5AA90 X-CRM114-Status: GOOD ( 15.73 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When OF support is disabled the of_device_id struct match table can be conditionally compiled out, this helper allows the assignment to also be turned into a NULL conditionally. When the of_device_id struct is not conditionally defined based on OF then the table will be unused causing a warning. The two options are to either set the table as _maybe_unused, or to just remove this helper since the table will always be defined. Do the latter here. Signed-off-by: Andrew Davis Acked-by: Arnd Bergmann Reviewed-by: Nishanth Menon --- drivers/mailbox/ti-msgmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index 9d2d4ff6cda40..8eb8df8d95a4c 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -920,7 +920,7 @@ static struct platform_driver ti_msgmgr_driver = { .probe = ti_msgmgr_probe, .driver = { .name = "ti-msgmgr", - .of_match_table = of_match_ptr(ti_msgmgr_of_match), + .of_match_table = ti_msgmgr_of_match, .pm = &ti_msgmgr_pm_ops, }, }; From patchwork Tue Oct 15 21:33:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 13837288 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 7EFBAD1F9D8 for ; Tue, 15 Oct 2024 21:38:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=QvnFcob+2HOivdOzFJ/ecoS+EXmlRXVsbJmIgJJMYlY=; b=v5wYBmPcM9YVhBcujN78svLXm9 hxvEdpOfIt+0+FjcKJHyJBKYoGKBkEYpGTO7p8kztwjo4ADMjlDcOtMHjLTrZzTijhNNmJI6ePSFa TzjfWYI9ZH9ai4tTw4tLp+GIvgXy5NSZ+aLO3OsinzbualsusOiqbClP+w1RMHd40rro7Vfi21siT tTDKIjiLSGXOgItQ68gYftZs7T74zAOtO1bFTnW3O86CIfg5aKyUib0HidryYREDNhdhJApe54Iz7 5vG6qgeyoYMcgkoaEqeOonB+5tCq0ykMjp9WTkcqJm2U3aqHGGy+l2piFfSq2NXteuT2s6OdtvDDx uPGRIJow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0pFa-00000009gZx-1PLm; Tue, 15 Oct 2024 21:38:42 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0pAf-00000009etg-2XTS for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:33:38 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXPXN025915; Tue, 15 Oct 2024 16:33:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1729028005; bh=QvnFcob+2HOivdOzFJ/ecoS+EXmlRXVsbJmIgJJMYlY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YpWeCW4xl+x2cVyRI07AIIE6ri17ufcsopX3qzE/GGM/+wz7qDSPCftGiVHuSW3B+ nG1bO/h3Gnf9qo07uyhOedycIMYbM6RcUuzu/7bC5hO0gvHW7qSB40bVt4KgmPSVnu 5SQOo4sj70bY0+FFGXsVTfKQE7EUQgrsP0F8UdYA= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49FLXP1C038581 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Oct 2024 16:33:25 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 15 Oct 2024 16:33:25 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 15 Oct 2024 16:33:25 -0500 Received: from fllvsmtp7.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49FLXNBe038888; Tue, 15 Oct 2024 16:33:25 -0500 From: Andrew Davis To: Jassi Brar , Arnd Bergmann , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , Andrew Davis Subject: [PATCH v2 3/3] mailbox: ti-msgmgr: Allow building under COMPILE_TEST Date: Tue, 15 Oct 2024 16:33:22 -0500 Message-ID: <20241015213322.2649011-4-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241015213322.2649011-1-afd@ti.com> References: <20241015213322.2649011-1-afd@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_143337_711796_15B55978 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The TI message manager driver can be compiled without ARCH_KEYSTONE nor ARCH_K3 enabled. Allow it to be built under COMPILE_TEST. Signed-off-by: Andrew Davis Acked-by: Arnd Bergmann Reviewed-by: Nishanth Menon --- drivers/mailbox/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index 6fb995778636a..af721d769fdf2 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -127,7 +127,7 @@ config STI_MBOX config TI_MESSAGE_MANAGER tristate "Texas Instruments Message Manager Driver" - depends on ARCH_KEYSTONE || ARCH_K3 + depends on ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST default ARCH_K3 help An implementation of Message Manager slave driver for Keystone