From patchwork Sun Feb 11 15:41:49 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: 13552505 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 C2EC3C4829A for ; Sun, 11 Feb 2024 15:42: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: 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=0TiSRtiWakLT3nf148g+XkRCEQ0mDp+d+6pHe3pmhzk=; b=0KtrGZXr88UDFY +tRTUKtKzc9e1ctVZh+//CZA9ZKOdbiqmwb+ZyV1ne0YVqg1BlGZADKp1yQHk8ca2lxp8vtplVpQY XHeFvV8t3KiWtPSaX2Z5kfVSNrXkzBcwbis0O3iKPPASiruj1okBny46Vb623dq4oJ2Xy2w9bF+sF vMK4yb0cmUt8e846jUVhv8C6smSpRLTk7Tv07W3n9Kkovm1lSH8r6fSdCAn6oirrunIlCOAVhXGAe SWtY51Ff6aWA7clDldHewge8/d8OIoEWQzh1ceK4zMmtb7ORyqvYWxCoGATARkauyZ9w01SCSRPov Ssxn9es17FVbCKAzlHag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZBxv-00000002w9y-33oz; Sun, 11 Feb 2024 15:41:59 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZBxs-00000002w9Y-2wJh for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 15:41:57 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6e04eceebb5so1760836b3a.1 for ; Sun, 11 Feb 2024 07:41:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707666115; x=1708270915; 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=+4L4+gcHoxDmNXs1iw4HULiXJzu/BhYCTjokD3pcZhY=; b=wtPI0dCq8ETlwa54fNubtldU1Yxes35jH2VLq5dOSC1hS/ys3R24lIBDS/ez3H00Jv ap66vfkNmirr0mrjgL/z8pm6Uhu/pyGpQV/6Dp5WFUgbFZ4IYWRUx+L4HEySz2SdqsP8 OjDsX0bUSajK0nWjQBUXw+XPYbXH4VESsm63mTMb/yOvVN01d3QTIDaWXfaHbsa/SzQC Bput5bb1YA0EZg81ev2EHwVRLv3/pFioO3EI1jQwvogrvQYl6BPSa/IuAi7/06IVRJL9 x0DOXX2kjDLK6BHDvK7+NTV0ltyXUKFnfk9IkVm8FXBhS+r//347FZ/7yaRTRWmqmBE1 g/Yw== X-Gm-Message-State: AOJu0YzHZTOA5eE2gMkPiBFtiVWQ+F1RtphA8QAfsHa7FS+XiFGihFvy Li2JjWt0MGvY/ltZXiuVMVApVaIC/7h1fOuPMgiUnkXGDsaNIk68 X-Google-Smtp-Source: AGHT+IH/skl7LeBk0kUtSSgss1XeeOhXWh3155C4mLb4RbEYKlXsy0KsUe7gPMOOu3cipZDWfI/Qzw== X-Received: by 2002:a05:6a00:b84:b0:6e0:e235:e2ca with SMTP id g4-20020a056a000b8400b006e0e235e2camr297795pfj.9.1707666115098; Sun, 11 Feb 2024 07:41:55 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXPruGfE8CLfFljgs5W+asgm3IGFvyzrXX/H9F78snfRnJLxjllOUz84+stXXEbiX+GiwzvR4GzlujUVzd1eRQT3m1I5rTqI56bFlxiOqAlI7Moh3HEvxl29E+UhSOKaFBbMVbb68sp2jDQtcghuDNq0mNCe1vFekVgmXgxMD708OW/6jeAOcnzMR0TfTI0SRuxBWSbunkPaGz2OJhJkfO8sIhb1R3s9f9RbWWd1MlCWhpXPGBuvV3OZqNT Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id b124-20020a633482000000b005dc491ccdcesm5252180pga.14.2024.02.11.07.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:41:54 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707666113; 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=+4L4+gcHoxDmNXs1iw4HULiXJzu/BhYCTjokD3pcZhY=; b=Q1RPoPMyURV04UdEXNEA4wkoZTywC722zNvCTL5jBYg3TXLWiw2X8DdTm6k1c6MG7QqlM5 +rPGl9/ZGz0AYmVOHifGjeP/PsW2mdXDNn3T499a+jyhL9iYn3sPTBRTymCB+ZPZqUpGR6 9/AMcZ9/YY08/C36pavYvjIzW6Y3JNkc9c1Zd3wd02LIVmpubLwuJi4Cv4HNbASrpcnnyR SGgmuu0FeiA53m5mab+oe/tFXxUrsH+G/mEJbI151NfmmDzoLwG3+Ai7cNXVFQWunQMt+g vCL0lxcO6563YAuxMjOkCc4ifVXNpfJLuRCaIoMnDzocVxs/a6iN7qYl2Pojeg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 11 Feb 2024 12:41:49 -0300 Subject: [PATCH] ARM: s3c64xx: make s3c6410_subsys const MIME-Version: 1.0 Message-Id: <20240211-bus_cleanup-arm-v1-1-5c0102bda0bd@marliere.net> X-B4-Tracking: v=1; b=H4sIALzqyGUC/x3MQQqAIBBA0avIrBNUDKKrRMSkUw2UhWIE4d2Tl m/x/wuJIlOCXrwQ6ebEZ6jQjQC3YVhJsq8Go4xVRms55zS5nTDkS2I8pEe1mLZVDm0HtboiLfz 8x2Es5QOD0hznYQAAAA== To: Krzysztof Kozlowski , Alim Akhtar , Russell King 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=1555; i=ricardo@marliere.net; h=from:subject:message-id; bh=kNVAB9tNqNyjOxNbAj1tkRNyJhfocPuoy973+DF2Ouw=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlyOrmDpPt4LSED8/f9JCDaJxp1tgoxk2x5PCc4 438HbLm+7WJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZcjq5gAKCRDJC4p8Y4ZY plXUD/9wSTKxrsAlaTbe4n7Fo2Cqx0pS3sboEClp06Djyem2ktNQEr6/z/hHa3dgpDe4QhcmWKO C/LEafa9SPB/O/TCjIvbxZC1RCLfvPmO7aLtvQSrnj4WuTNxuY3eme0gxcerWVdiX5/hAdTJECn fB+9S2vcJ6q1oCs3MHts9Ld/OhmbxQnoxWR3irG15F829u45f5R/31t1iILeL9Em+NNnCgQ85Yv Gvv7pvE6PG+ySRDVOgVWvMGNszfRzigMAchs9SZqwBOsLDRZY7WdvNDG3zmukfeprDrfHlrqkrS bNYzy1C3ST+7v36p+AlmV3U/tl+MP3t6uAunttyPOHYVPgpX6//pdp3TdxU8+ruAQDZgYG4ziJo gC6VoAMUJNqYHOiPnBbetKV/gTKY2rw6VMthHLngTLUPRMf50M4uyzpZssQyH5TasnBPjm+8kKe P+/PsH3uG7Aa+rXFPHj8UiOI2EolqTaWsQA3L3KfzKCvXlAmjuqrZ/7V2U+r1R55O8FalV6hNQI jSJHZpC1Fid2PbTfLFy6IH5pDm8cs82IMYfyq6ZR4ecEk6MhlR0weJ6J2V9AzrYzkLfOrDmIWG4 O3B2mgz3/NLNIbELq/JCoVZF8FQl1xCqVd5I+U0YAHkdB5lPuF3R0ztGToJnHi/PKtVRj/xOVFM OX3+cNetsXUMoAQ== 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-20240211_074156_773836_9C06F599 X-CRM114-Status: GOOD ( 13.17 ) 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 s3c6410_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 --- arch/arm/mach-s3c/cpu.h | 2 +- arch/arm/mach-s3c/s3c6410.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- base-commit: fee3a71dc8d26629e5d87e20cff08763f522633f change-id: 20240211-bus_cleanup-arm-da0f2550ca48 Best regards, diff --git a/arch/arm/mach-s3c/cpu.h b/arch/arm/mach-s3c/cpu.h index d0adc9b40e25..a0187606b999 100644 --- a/arch/arm/mach-s3c/cpu.h +++ b/arch/arm/mach-s3c/cpu.h @@ -76,6 +76,6 @@ extern void s3c24xx_init_uartdevs(char *name, struct s3c24xx_uart_resources *res, struct s3c2410_uartcfg *cfg, int no); -extern struct bus_type s3c6410_subsys; +extern const struct bus_type s3c6410_subsys; #endif diff --git a/arch/arm/mach-s3c/s3c6410.c b/arch/arm/mach-s3c/s3c6410.c index e79f18d0ca81..a29276a4fde5 100644 --- a/arch/arm/mach-s3c/s3c6410.c +++ b/arch/arm/mach-s3c/s3c6410.c @@ -57,7 +57,7 @@ void __init s3c6410_init_irq(void) s3c64xx_init_irq(~0 & ~(1 << 7), ~0); } -struct bus_type s3c6410_subsys = { +const struct bus_type s3c6410_subsys = { .name = "s3c6410-core", .dev_name = "s3c6410-core", };