From patchwork Mon Oct 14 14:48: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: 13835260 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 1F418D18129 for ; Mon, 14 Oct 2024 15:37:06 +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=znEZdV5RFjeuadvOkq16bKno3bWgUr4vZvk1wAHrPuw=; b=WYWN0hcrqf8mZeeFsfJuhQvffJ XaiqYQsw7i1t8QTqxA4NdrdOqtdvvIFU60QCZm0awtZGXQFDV0d0zGN0HIIeIltPILFYMz65X02h2 ErWRPtbjnbFHC/+VDl814DduqfYyqV6arElyKsQm0goG9geJQUobj6ZyhIx0UDba2G94DgFrQLiA0 PrtV5X9xifS8oDtzqM0Max5HMHtnldFLbKpwzF0Q4wUN+XSCZI+YmFkXgNRRSfOEa4kUTQ81J3RE4 1PG5CvWTI9xHTfNR7NfWo6KVCyYoV9D0JNXr1rC9c7aACpdm2B2G0QrTr5jTlcOEXFuBGIeARjmgx ECi9MQ9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0N7r-00000005hNT-2uEQ; Mon, 14 Oct 2024 15:36:51 +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 1t0MN9-00000005Xs6-2mYI for linux-arm-kernel@lists.infradead.org; Mon, 14 Oct 2024 14:48:37 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49EEmNYg073584; Mon, 14 Oct 2024 09:48:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1728917303; bh=znEZdV5RFjeuadvOkq16bKno3bWgUr4vZvk1wAHrPuw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Yw4Yjxea4h7VvJSuccaRjLPeelhxhBuh1lR0x2x6HwaDPNQUUqjy8d3pAdaCZGbVZ h+LYl4Y0KPR6g+8NW2+IzxBAdbqvBMVRtp1oi9Y3rt+/1/5rmoa+k43EMbi9Ls7zNM mAAH6GYJXhAKZhSATz9CLzjjlLc7pqkf02KqNBnI= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49EEmNEu020540; Mon, 14 Oct 2024 09:48:23 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 14 Oct 2024 09:48:23 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.26) 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; Mon, 14 Oct 2024 09:48:23 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49EEmMm6009566; Mon, 14 Oct 2024 09:48:23 -0500 From: Andrew Davis To: Jassi Brar , Arnd Bergmann , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , Andrew Davis Subject: [PATCH 1/2] mailbox: ti-msgmgr: Remove use of of_match_ptr() helper Date: Mon, 14 Oct 2024 09:48:20 -0500 Message-ID: <20241014144821.15094-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241014144821.15094-1-afd@ti.com> References: <20241014144821.15094-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-20241014_074835_847986_41A7F366 X-CRM114-Status: GOOD ( 14.91 ) 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 --- 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 Mon Oct 14 14:48: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: 13835261 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 3A68FD1812B for ; Mon, 14 Oct 2024 15:37:08 +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=n+mQz45U63prTSBkxvGOSZbgBqQAc7HgtbtCPe5BOiA=; b=Hp94JZe4d5d5u5vGbcjqrTQ25X yECW0n49MP9cHmtKVSpDcVBReLLUboi/IxNYznj1R5V0UhqAgG/dooePW9dmduNn9mlgDTu0U/QGg bzTl7MwVdw1kJrJ6+xa7/q7g/nh7a4YmWZtC7ZicuR977WNf+tb9WHW3Qq9lJCADZa0JDXFwYafVK gHtHuj5oPtIgpgZNjZ+jgTSwyqTdiC2fPi4t3PykQVRhnropI3LiFpS/gjJWFNp1gLkWw6l4AOGJC du7qYz7znZU+Cfig68VJ9SHLT+76y/ELHDYiFIyNCVpVnie9OJn8MUX9agkyJOZrzPSuu4klWLBqE gTp5iQow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0N7v-00000005hQZ-3zKU; Mon, 14 Oct 2024 15:36:55 +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 1t0MN9-00000005Xs5-2qFQ for linux-arm-kernel@lists.infradead.org; Mon, 14 Oct 2024 14:48:38 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49EEmOaF073588; Mon, 14 Oct 2024 09:48:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1728917304; bh=n+mQz45U63prTSBkxvGOSZbgBqQAc7HgtbtCPe5BOiA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r9LhYd9rbc6XLaIkI2f0tGCaErOyj1ZaaoV8JZdL6iAmnkm+HhyjLsjYAy8Sh2XRi deZQoarEn31YkYrBxhG0/lhbyz5l95J1vfGqNR8xo680G1x0TVzNFQig7MsjF9Grtt GRnMjv0sBPz1ACvP47hXo7jvnL9DQHsFJytidKHo= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49EEmOcY009330 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Oct 2024 09:48:24 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 14 Oct 2024 09:48:23 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 14 Oct 2024 09:48:23 -0500 Received: from fllvsmtp8.itg.ti.com ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49EEmMm7009566; Mon, 14 Oct 2024 09:48:23 -0500 From: Andrew Davis To: Jassi Brar , Arnd Bergmann , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , Andrew Davis Subject: [PATCH 2/2] mailbox: ti-msgmgr: Allow building under COMPILE_TEST Date: Mon, 14 Oct 2024 09:48:21 -0500 Message-ID: <20241014144821.15094-3-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241014144821.15094-1-afd@ti.com> References: <20241014144821.15094-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-20241014_074835_857925_D762CD0D X-CRM114-Status: GOOD ( 11.46 ) 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 --- 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