From patchwork Sun Feb 11 15:57:09 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: 199598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2276480dyd; Sun, 11 Feb 2024 23:16:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjVax6tPvCDPcEzEMtLFRb4ad1tCsoBcZTIac4d15+dtoygymh1IFZS8U9RTy6OXu4rhCxnBz3Opl4ljcDN9NWcJfp+g== X-Google-Smtp-Source: AGHT+IH9nK6Ii59pNejeO0O+UgbRuDy90obMFVvSBWOCXrG30HgonJi9GINrS3OrZoVNxntq3zry X-Received: by 2002:a05:6402:12d4:b0:561:2588:fd5c with SMTP id k20-20020a05640212d400b005612588fd5cmr3630837edx.29.1707722180840; Sun, 11 Feb 2024 23:16:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707722180; cv=pass; d=google.com; s=arc-20160816; b=iwHWDgGUTcEFZDdWu+jxML/LCkgK6xi9CRu4YnxGRVZwSoqzg66GsS8nBdPanqdDlk q/ehxYcIVZGaQsGnNfB8SIG+CrK5HxqwPzc6GR51fvED9c0KHW5C+B9NNeA4cOTl4p+3 P62VjDIHlWwrZ0lQa2/RsYyD9kI2wGRYhgec7cHANS1nlUOtCqUxQtvYSiPpjEUjtVfH f2SLchcyLs7Fn67eyht99nSHDy0BQThUg0vldw2HjZj6gBjnG84Z7Us25lW3Lhf1wk6q lhS+7/qFMwEa5utndAsQXAuykqUq8y+/SRdPBxqoRwUEzeTmMLr/f9tRDW4/bU5jOm9r TOVg== 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=911kXH4ufHtqEqUf7Y7+h9ODYaLzmiao4LnKiF6mOcg=; fh=/Rsa+eQ2Hx/9UbPqzHWuDXFodR8+NpCSasTRVr6P53E=; b=L/LTHMtkxtpJJM/o9uv5zzaJb4OsciR8jcFoQYGIxxhUgePAW57DwuhbwD6YRTxRXi yahqdRQnYggyjG5O39V6VHxes/XeJjyHHgE6Xt7IEZJ0YOTBL3Cl0xIftiundY/1+CRE NLazQvRHPk1a41iEW+H7FlJtWvVaXMTPvJ4YnnvZ1GRTSjS0x52DBZBQxiJMjh7M5ppc HVf6TFdOP6Dx/p/OugtjyJAvsWP2zGPQNhWNj6JuYb/7RKD59ndxVlpeNbM/fISROpmY NquJDDKQFFw4RYBnqeUpXmJ0fMhof56g9xUKEjyxfcQqEwBxgfkdmdVB4SzB8v+vdukG CIAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=WGr4kqiA; 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-60854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60854-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=2; AJvYcCWhvwHsgQQ+gaXydDD4ts7OI+/ZpQEqmZCMGh3Adnp1CcXXeX+MNLlnttJpFGg4aIW2sz5VCEghgyWgzBPuIWoZ3nj2gA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i19-20020aa7c713000000b00561a61e68e0si956775edq.482.2024.02.11.23.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 23:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=WGr4kqiA; 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-60854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60854-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id D5C6A1F2389B for ; Sun, 11 Feb 2024 15:56:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB1645C5F5; Sun, 11 Feb 2024 15:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="WGr4kqiA" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 98E4A5B5D3; Sun, 11 Feb 2024 15:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666998; cv=none; b=aXqWR0eHzuT85tkoHQgxazMRQDg5seElezOvx1c/G5ej8nV/vAWqoJA7EGeS8fGrDlBuHhrM94fKbofb6N3bMJCCGCzqCED32321N3l4CwLeMyagJMVOu6g3/KEoPwe5a6lm2T43dOh24nXXe+11JcI0WsYHTUPN+NAk11k3jKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666998; c=relaxed/simple; bh=JL7wM1V7zi48q2tm3KhTIyENAubtfNi2N8isyzcuzH8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=bvxWNIFK5unVzHA/YWgZaALZK88G9ZdXJUTB98bBGOwelgwEfqTHvgshVi0VkrzlkwSs4qyKefiU1iN9mHSaKeTSBRTF5ypjFlg3SDIcLl9TRlWuK+vZjpHD11nbHBk+nC01P+s7cTLjnWIeMMxOrwivIOZXoLDmgcLjF2qG6QQ= 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=WGr4kqiA; arc=none smtp.client-ip=209.85.214.180 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-pl1-f180.google.com with SMTP id d9443c01a7336-1d958e0d73dso16689785ad.1; Sun, 11 Feb 2024 07:56:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707666996; x=1708271796; 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=911kXH4ufHtqEqUf7Y7+h9ODYaLzmiao4LnKiF6mOcg=; b=XgrAeHON5A8bsYqYXEcgnQTr4uekmtsOzHzmUwKJJQRFDRUOfr5U9A67EDpKiLIvJ2 5hCtHZtB58Tyjp9upbjiO5sucLYf1RimHrIgeKCvC5Sr+wGABgHK9dmwNutrHxUOVkD1 Hr8h+cTSHHe8sPmTrDgm1weGy+uvelrob0vdOMuTk9bvhYzcXdz2Lt8piCkAb/TZm8qa DMBarIwbusfmwP2US+j/yGDT3a7QimV9YtES1IB6dsZuozo0/IPf8iwJEM6t+Xj0N/gn yGr+nSB8npD+erXKeZYak/sDX2oPwiBtSWIk/9UIQUL+R29WZNZzxlTpfScpE1eTPo+V ph4g== X-Forwarded-Encrypted: i=1; AJvYcCUAuQ4IGo7mu2oldx2hNATD1hk6e0bH4yVR4E3Y5VXh9lT+8O1QVjJqaxwVl5h9DzVJBT0Y+s+T/DCIJnLz2bdqxeOnSoWCbJtJhFUUNMRzL/7DuX48pAQqmDRRzOLv5/tJ8dGtLNpcpqqR3xVMqok= X-Gm-Message-State: AOJu0YyTGk6VwuxD2jAd99+RbvYvskiewBXyBxdJO8X8BIG58rFYOVdY Ga8Yyn2l2Wv8HcTMYzMISaGnoP8pfTVv9F3X/+yR9PJ3gCBD+xiO X-Received: by 2002:a17:902:d3cd:b0:1d9:65e6:4af7 with SMTP id w13-20020a170902d3cd00b001d965e64af7mr5077571plb.30.1707666995850; Sun, 11 Feb 2024 07:56:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXvZ0cfdSs7HN0afcmxNPCzh8FFNpAkX0vG5Pa9ByrNyckv/49cDVCA3E3/2E76Jrk4FRYfox8ASYMQXIXuPR2AlGwiPLQVZK1xgfyl2rxjnocsIaIuLV1/W6Rv+s9sq0iBBW8xAJaauJZwz8gh9XbbJzgb0EesA2amSS8ufht7tpi+G6BXCm/p7b7aE2xDk0hojFbrEUYfIxLf+2X64lkxEWG0b+mY99J2/7Ixwjb1cHAlCJxhaLRfsmjl Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id q11-20020a17090311cb00b001da2fdd4cdesm382064plh.36.2024.02.11.07.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:56:35 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707666993; 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=911kXH4ufHtqEqUf7Y7+h9ODYaLzmiao4LnKiF6mOcg=; b=WGr4kqiAxicDTFPSP4TLYKFD6G5W+om/ZVQ9Aim8XUK4x2gZf0y9EpMGGdTykvKvLg2Dqc tR+V/WAXzMsaKnHdqmD4GsKeSWTrHExhXDCSQOqu7LPctlcyPAXkqVJv5MbHS1Sefgsqzq YBbip/C9JBqbfSxHb3qrV0vUaGdwj1cn0U//o25gUQrVZkkLH+3c9hHlgtP8G7DGYwfycY fah+8PS24SUjBvUaIj6wFyTKLf/pw39M3pxDiYLSgUQGg1c8JYP0zthfgMnQ3mimsVuczn zzOEbtAk2V96GhW3moNxIYKCzNak/vmcBZ5/xdVhmgkPEAKmXLOz2A+FXF6+Jg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 11 Feb 2024 12:57:09 -0300 Subject: [PATCH v2] 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 Message-Id: <20240211-bus_cleanup-arm-v2-1-3de9e8af7cbd@marliere.net> X-B4-Tracking: v=1; b=H4sIAFTuyGUC/3WNywqDMBBFf0Vm3ZQkGChd9T+KSB5jHdAoEw0tk n9v6r7Lc+Cee0BCJkxwbw5gzJRoiRX0pQE/2vhCQaEyaKlbqZUSbk+9n9DGfRWWZxGsHLQx0tv 2BnW1Mg70PovPrvJIaVv4cx5k9bP/W1kJJYyXSmpXuy48ZssTIeM14gZdKeULNyN8urEAAAA= 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=1816; i=ricardo@marliere.net; h=from:subject:message-id; bh=JL7wM1V7zi48q2tm3KhTIyENAubtfNi2N8isyzcuzH8=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlyO5XnZHv5b2f8/C1CrZ/CQ/xR5XfxSFsC6ctQ DRLdfRIhjCJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZcjuVwAKCRDJC4p8Y4ZY psC5EACIcACY8NFjRlUc+Ac83fBdxJGOdlb4wcheBAf+p6myyYifsA1cK/sh6PDznQaB5tYB8Od T+SiTn7VSWTxIehbTArgxR+C1CrQWqZbyPe4IsMBX9g7jlkJS97dw78CWVlUz2JqCVP6C9j6MkM hPFvLs5GIPlYlbOyjNvHsX3iLC3QRr+dODlJKoWIIz5Z30cOOzRItASOrbq5ZyCrTI6bTlPlEin OKWy3pCk+5eArCBvti6IpVR4W4IDCWhHTkJ/qRlbZZnj0mFv1Cip0maAiSp57dFk7JQjy3NWJG9 eyqWLc+OXg5DW3qq9S6k/gGfzq0SNk9l4YHKvx+q3vz4cUZcG/QGiHx5stvjgWA6ZRgzer2bEdb 9zC4oTxLBBkBpEGea7oB0M2mIm/xbP+7QGJCJu/5sVFdt35Mzrbf1a6sOft8QzRwIUty5eS2moo stY7GHNHpqzHmQMpxM8JK8lm0P4LSm671h7dzutQ5Myn6QiXrBEEB7pubn/aCyZyggiMc02aZ1J 9wrX7jQtkGO1fcPPMrA9W8ZS4AXi6Ln8ygdEewchcXc5fh6vn6PgXoemj3A6abgNs2xE75WIwhb EcqAEwAk1eCdlXmzuAChU1bHHeEANUA/MVIMmnryTmJGK+XfMgAnMj2Gz0AHOlEzsxo37ceWdpQ 2AnV+/HcYNaxZug== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790617723594085626 X-GMAIL-MSGID: 1790676493631138385 Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), 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 --- Changes in v2: - Instead of "Now", defined a specific commit in the changelog. - Link to v1: https://lore.kernel.org/r/20240211-bus_cleanup-arm-v1-1-5c0102bda0bd@marliere.net --- 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", };