Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2018253rdb; Sun, 11 Feb 2024 07:42:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVo9f6VotjcsuohlkiFUXqlx7kIw/oeWFoaSHw1AjwYtv/hv77J8rMXOe1ZVeb/fkORESoAfK4HQYXMMN57MSOiyvcY1FtVBSGYpOIHkQ== X-Google-Smtp-Source: AGHT+IFWGXelVZ4wNFlMl89Eh7AeeVnJbLrggNv8AGRR3fh+EWGEtSjrJlcwZBUt/V6c9q4Q2ZTu X-Received: by 2002:a05:620a:ce3:b0:783:b98a:80d with SMTP id c3-20020a05620a0ce300b00783b98a080dmr3730665qkj.63.1707666124555; Sun, 11 Feb 2024 07:42:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707666124; cv=pass; d=google.com; s=arc-20160816; b=KTF87lX8pl1/TdppwN0SJuNUr7r/LoHMYcc0yGwXkG2/p0C0wpDzEiJQJRea+kK3pQ JC0l3wtU7Z5ViDIIOKc6CofiAzGYh1nhcRk9zBUISqNRcQysddVbN4eVJ3D9E2kR26lC tN8e9ZbXbZvxw09kp00bkFC4qVIqGGIUBTPVSmoVLJA+7fbPGGzaSRXDfB9QUG7Jt7HS o9VIgOEKWNiUHt4l+lwJNgzDpBFUJiedEyHeAuwOkZalAEKulUH8CdjV4BnmS18N20yL VA6COYKXrFLGffHV3WBPys4BMe4ikqmLyUxnoYgIgBDQZwP/ALGqGNJ5zlDjzaXg0FEp Mn0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=+4L4+gcHoxDmNXs1iw4HULiXJzu/BhYCTjokD3pcZhY=; fh=V/gZMKKuhXcxcX4Q/MpESaBLG2Jl9K+iKDuqiJZUSC8=; b=Z8chrBi++61IeoAqT4LyEkqITZ/Dc34zP7xHo/cWmE2yfEd/Ky4IT/6/e9qkJVmkoS gFu2ubUZRMItq+9XKyt27/NlQIRPbtQOSKMl7puVsRpkufSV6za/x7ZWpGdWEqPZisdi /T7UMrjBSI1BNx8NfXn/l2jJJJw655toNDuITeLvLEySqjcRfAb5I2zz3hxYd+dxQ+7q XyqFe+gAjUGYWyB+ctnuSu+iKZi6mBkI+xsjLwNi3YxV0RTpOKiZdKu7QhDzhVD/9tLg SLQVTzp8sxf3MhjyZC+bde392nDh/UnW+6YtKYJQhChWm/P5q/3WHP2MwLPP2+VO2634 EbVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=Q1RPoPMy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-60841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=2; AJvYcCXqpzgrzxkXszPBcunDx2bEKtVlzb/exzCdG2yvBRvZSGoYG22jgfjlnTc4F7Xw3VFW4+6euy3DeTm396eroARgQCOAWKN/BdccMIJRiw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h12-20020a37c44c000000b007859e49411bsi4092741qkm.456.2024.02.11.07.42.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=Q1RPoPMy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-60841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 435A31C20D20 for ; Sun, 11 Feb 2024 15:42:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C8785B68F; Sun, 11 Feb 2024 15:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="Q1RPoPMy" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEF745B67B; Sun, 11 Feb 2024 15:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666117; cv=none; b=IeGO3SDBWFQnL1aZix5hC3ijhNSpRrnWHiwYdb03WVVNRvMYA28UO2wZkMcboDoCvrngQVelp/t44FX2NvYuWFiToN/ZIBr5vekUiAk3ZHIPLPfNWoXe4tyvFLExeeJXTqaa4NUiyR8Kpvg7eTzln/QAqC/QD/R0Tfw48z3okgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666117; c=relaxed/simple; bh=kNVAB9tNqNyjOxNbAj1tkRNyJhfocPuoy973+DF2Ouw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=hBZn04trN3UQf8+FZlwb+cLU3cj9D9gqz8BOrML/i29tMGLePfRettjwdtWzBXknlWM89aQPJ2S6GbPtfomnk6ZGCDpXal0WELxJBabUprS8nRs4NMG9vc8N4zWBkpaCaAvl9JJdwKkBzHA32RaNKV1peqvHf8yrioKZVZ19bE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=Q1RPoPMy; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e06d2180b0so1991776b3a.0; 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=dy3ET0AhHsOS0i7KJWwHV9+EfB4xdvHGkWSdYpLTxkxE51VuqzIixO6f4kM+nLwRQ1 nxvYGk0Mn4mOrjak0j39I+MPfAZpHpHqFwjB399AGHWKc5nSfmM5jbXs01xfW4T9Lmvm jC3YZHkLL1if0TC2Bexz+4wNzp0MxZvP/7iLXlNOvfVYkrRLKRVM+10zpurqyjQ5Ss3p 6mlv8C/IaAKae8Uv109Kp1XhaLJe/1obZn4qhmol30guW4m9sQCKKG1ElvKJEhO6y6AM k1uYdj5KqAZxQcad5gut1gR82HH+f9f/6dY4PoerxHfqfzUbeEeL6YtOhLv+xShBpKom 2taA== X-Forwarded-Encrypted: i=1; AJvYcCVW84M15V9EHwksf8ZscHls9XG5BylV3Ql9nK2jCklWptUdNvXRUDrh5U/YbOT/3AG8yTJIiGNOUAg7CEQC4lpUCleQWECYPPlZZX2xjniUUT/AXByR2gQMu9o213zBz5clk9rL5lH7IOuX1rMhsAo= X-Gm-Message-State: AOJu0YzxMD60QzovLNQI+2XviI/LCBZq4O230SjLJHrN4l0E4QJHAIFB hfE/FDVGUPjn7bRjTgKOVbxBJzEGTZvZ0Tkt5zG+k5REt9mxW7mJ 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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(-) 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", }; --- base-commit: fee3a71dc8d26629e5d87e20cff08763f522633f change-id: 20240211-bus_cleanup-arm-da0f2550ca48 Best regards, -- Ricardo B. Marliere