From patchwork Sun Feb 4 14:46:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 13544700 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 674B4C48286 for ; Sun, 4 Feb 2024 14:46:31 +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:Cc:To:Message-Id:MIME-Version:Subject: Date: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=jA+WaDKvJqbcY4LwSGd/CLeEAH548S523ZH7izKzPEM=; b=Q4kFGCDQxexHln Gm78DmVBxD320w4kOlPYTZAHxJTIiKEtSuiAOK/qQEXctJ8kGbbVjDK0fxflSsAvXNL2m9zmaPSS1 t9olIUM6/8JR0hTC+PaQI5MDaWB4QUNBPerwIL90Sn93VOExDqFQRNZBunSDui3Kh57S9UtVUpFUf 3f2Xn9En6IDUI2dTBLKFiRMtfhZKuoAKoBSV0TGuph1i3O5+w/aW7a1HhNtDhQBVEip/le+kKYVwY sQWQvqVJuAj8+jUVkfoLXUqYZcsfWDS+wZvgVLwmHpHEpQ8FwH4lieeyATAro96EbtjBc+y1V5LBw o+AyILzfymBdaWBPUjFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWdl5-00000000z0h-3PDN; Sun, 04 Feb 2024 14:46:11 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rWdl3-00000000z0F-0UDJ for linux-arm-kernel@lists.infradead.org; Sun, 04 Feb 2024 14:46:10 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d8aadc624dso26982995ad.0 for ; Sun, 04 Feb 2024 06:46:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707057968; x=1707662768; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LxUHnqUEPBSaX51F80aw+Y1xnfr/HMwfRHXCkVCiw9c=; b=h8iOWVu5IrurJfGqs7gZRP8O594vYzqcb2EPmllNgKxGR4eKQuloKqWcyXv8nVOac9 slJBu4yvnd50/EQkLtmopWSID9rqnGB0ksH+zdH9n8kdknvm5F3m58N41dIAJMN5UFaR sAsbKpeMk64Aw8YaBfy/By7Ck75okBoyYf/L8i0jxl9qkaY0UTfiDWexEdqa+AO1g1WI t9I2SlNGnmQ6Hn1j/aPkEDW+QVmHnZCPZoc72XX72NMWZD5jS4sn6KztO7HFCTrKQoqs 5OoXOdx9YrGAtI23hFpLjauB5NmKiDO5AhGvRpuDb9v4whtT3nmJBTrEObqgdDfqZn8p HCyA== X-Gm-Message-State: AOJu0YyiZV7CM1/ZaawI5tE8M2BHTmOZy6lKM1uZQD0aRAfm9wsPDUuh 01oSoYH10//mzkXWuHdvY/4Qc3HKjwQcw3uNNhKDdjK9pAwxzpjJ X-Google-Smtp-Source: AGHT+IGrN35WwWpYwA6OESCT5Z92IvT0vnKTv1mTmLvxqim49d4BcPjrIvL+3J/3C2yVEI5tVYAO4A== X-Received: by 2002:a17:902:d507:b0:1d9:b3d7:fc44 with SMTP id b7-20020a170902d50700b001d9b3d7fc44mr608214plg.22.1707057968102; Sun, 04 Feb 2024 06:46:08 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW4PvKWxfPp7ft2WZBUrXD4BRE//gsp70J/CIEzrCI6OFphBI909zD3GjphHjgyF7BZEhYuZUM5HBWrj0KCgKwQ7/LuRNh88k3pVgqW2ga4bCqbHe+00m2mrh8VLLObxpaEeRiNnW1y1gnnRTeYvGf8Rg0oRu3CwNCo/nQQY8NojQEXZeBy4Fte27mWXHMedHPQ7tg+GdWr/pG8Iiab/g1EStIkP/zPs+wU6amKMhN0v3ApXu904/HPqyIkwcmtizW5jmG/ Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id jz6-20020a170903430600b001d9af77893esm544875plb.58.2024.02.04.06.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 06:46:07 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707057966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LxUHnqUEPBSaX51F80aw+Y1xnfr/HMwfRHXCkVCiw9c=; b=EU//pie39SpE58nNs8n1tU61aO+mH++EMkffUZu8sIURu3/RejTO5i716ZMRuBe7p2BdjE 3aTbv8PNIMoivL7by1mhmrO8r5WMc0ylCTaOzijDYYxOMySV1Ak7zDXDhsrSjKuMJk+PJx Rqxmz1Sb3HeV4Lp1rmDBORgAKXpqBQxRuglWu938dsUQQHyzlh0Hkf+uVl+KVDaa5edCPn ppDYfGj9FYOyi8mtRxyzsrRSNFoQlsO9kJMc+ViCY0pygnO/U80GEdUIA5Xvfg04dso8om Mnd4MBnnzZ87er3A4I7H/C4CJUB0SgbXI2TvlgMiYJ4hB6LkuyBeSetstaBDdA== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 11:46:21 -0300 Subject: [PATCH] arm: s3c64xx: make s3c64xx_subsys const MIME-Version: 1.0 Message-Id: <20240204-bus_cleanup-arm-v1-1-41d651dd8411@marliere.net> X-B4-Tracking: v=1; b=H4sIADyjv2UC/x3MQQqAIBBA0avErBPMpKirRITZVANl4WAE4t2Tl m/xfwRGT8jQFxE8PsR0uYyqLMDuxm0oaMkGJZWWSmoxB57sgcaFWxh/irqrWqmxaXC1kKvb40r vfxzGlD4q7CcnYQAAAA== To: Russell King , Krzysztof Kozlowski , Alim Akhtar Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1088; i=ricardo@marliere.net; h=from:subject:message-id; bh=TWVQeUtiEPT92Q9WFLCYcqlWO1GeqNeUCsVF+Eq2Hw0=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv6NL04YUdv87nqZBycEDz7SB3sDXKzwFaVZO0 I7aNzihEzuJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb+jSwAKCRDJC4p8Y4ZY psuQEACMM0dV32IBqOoFJrhbusS34rxjU7sJeq1mUvbeIFw1cem3UMh/tShfAtM6DfOOuSFJPrE YXfdbuvizEYHOZPuvrwbiXvP+dB79Doa0ynBIt/u3ulznesssgfyIKeBQev4hkVs0wUl2EyHad+ HYXsiLji8wA51mcWTzmiFOY+PksQwXI4FeqiDOPJ60OMRogy1n0NaaNAuRa6a1phjzt1Hw8VXpg DnX7gIqlE85iyTGcIHsWXaFMhAKlFNHT0XzPHd0t5+A6vHdR4+wDdF2E1MK/NaTEQddPfHRL7/D c5QEedkaORIx6fdmUdPFAia4JHdgIjMJ/g3/580nxkXxkl596pwIrKnsw29EovKkGCSs7zcImZu vJ/shKPU3+a/cAOrwLt+g9g5roZpsugvNEjqSvalAxSj7GcMM3hYwyRFM/9W1MA+AailMbj1a+m NR0iYEp+p/j09dlomssFPZx+svySwVSRmwx497kABPJkN24a3Zgd+1xmxZpNvI6F2xHcZJMLfOL 3jUlcKSp4kPrHRYrlerNPZVZorV+z2eYGE/uAygiHW/EbmZyR9tU+L1Le++vTcjNlCq7TbR4fZT KA0QTdBuPUcOvX1x/aCnvCKruUfv3+CdWtDgPwIVKPo98oS0GTJdbleCEsRhH/A52OhiY/QSqMT yHxuyAJzDHQKfIQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240204_064609_199521_F24D8560 X-CRM114-Status: GOOD ( 12.78 ) 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 Now that the driver core can properly handle constant struct bus_type, move the s3c64xx_subsys variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere Reviewed-by: Greg Kroah-Hartman --- arch/arm/mach-s3c/s3c64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 8f5b7dbc644d6217a2fd35cb82594b215818eb16 change-id: 20240204-bus_cleanup-arm-391704e66efc Best regards, diff --git a/arch/arm/mach-s3c/s3c64xx.c b/arch/arm/mach-s3c/s3c64xx.c index 9f9717874d67..6c70ea7f2931 100644 --- a/arch/arm/mach-s3c/s3c64xx.c +++ b/arch/arm/mach-s3c/s3c64xx.c @@ -149,7 +149,7 @@ static struct map_desc s3c_iodesc[] __initdata = { }, }; -static struct bus_type s3c64xx_subsys = { +static const struct bus_type s3c64xx_subsys = { .name = "s3c64xx-core", .dev_name = "s3c64xx-core", };