From patchwork Sat Feb 3 19:02:00 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: 196354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp41957dyb; Sat, 3 Feb 2024 11:02:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeUPpTspFvfYwa5U93oZGT/m2kSofO4ga1BXjQ9eWOEokTPYnYbT9LOwvIDXk58kvXwU7q X-Received: by 2002:aa7:8504:0:b0:6e0:3512:500a with SMTP id v4-20020aa78504000000b006e03512500amr655723pfn.9.1706986948646; Sat, 03 Feb 2024 11:02:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706986948; cv=pass; d=google.com; s=arc-20160816; b=aX5sDlrA/BthDIFyh9CBEEK40XEm0lQvAHOXWN1lqzMtdz+gz1J6wV4UOE33yLjkbi Wd1hJNKbgAKGTmJTmtz2ZuPNjUIa05N4M55dKecdAW9UxBnOyZk3b2KAXpg1KeOE33zN kYMVcUCSkU6mE9yksR8/S9kNfHxv5A55uYpsLQ7hfiYtU3FCIlk7vBZOcP3B3Q86nnt8 esXq/ZIS1r62kYeBEOPuFKG6OSUK1ypwjC6+OnRuN6AofyCbv7EgYMWUnW5KL4V1ddnc z8RAeNDEajgYIKunkW7Qc3f8UdEJGxdWr2FO55Tloa5Hd6brmyVOq94moJJmwpxfU8dw WOQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=K6pzRccXqHiPScs411UN1Vn42G0kB1tV+D79pDRrw+8=; fh=mLeqEdbn9JbNC47YpddCr30rfj00U27h3e89WQricLQ=; b=jmWWar1c8ykKxydrQ4hZnBVghICj6ClRh1T0EbSC6OvobosFslvMgKE4KJ2J9i3rkb T7x92H2GmzHoJuYwwsWhE5lgOsJ03bhrfXJdJcWjQJDOe3/iah6lgdHBQLY88/lwOIEx wQYMWUebHgW7ktE40yv8KPgkDGuIOUfY7ufajv2KYqVZwr4IP95UTMR6m1wBjwqh9kzM 3RtOgIXhjLcBRZDUpGJ7r/YaeICgKv92VhAwYZ54iMWI3P/cincd2cjqw7TGDUeVIbLS iC4xQosh+U776unhGihDuYU4b/M2NS2SpQkP2MFtpaKpQMFYG7aFlV7mMytND6m2Ficl qv/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=c1a5sTkF; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51250-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWR1D/8TfeSSWGECWwqiUcaBxLEHS/NWHIFhNv14iC96NUf+SKxBwgFNOkN6VzqOUsiWS1gqNfUnze4910qc+aEnFLoTg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s2-20020a056a0008c200b006dde3164d50si3674520pfu.69.2024.02.03.11.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:02:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=c1a5sTkF; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51250-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51250-ouuuleilei=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 77725B23BC4 for ; Sat, 3 Feb 2024 19:02:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CD3F60250; Sat, 3 Feb 2024 19:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="c1a5sTkF" Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 2CDC05FDB9; Sat, 3 Feb 2024 19:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986905; cv=none; b=lM2x80zXeIaxBCGQby0z0bKgkZNyB3n0R3eG2t45vg8fw3/sGlIAhNM0zmGZagv4UrEQg5AwViAxK05wJt4Eb15H84+kmBBpZobHGfEPpgdRBriT7Ffatwr4ISvdF4mdM7tisBa3+RHjcc++Kr7JrAYNHLrhX4xLCfKi38YWGrg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986905; c=relaxed/simple; bh=o4HUoGdcsUJOmCXT/I7jQBFT0zSuxvv3O5ivx8MH4k8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oS4X32boZAlVM6kDOx34SnO7/6sCOn+KSX9Gks/gVRMtlWSyNc5dFr31WBp1ibOMbnXB19EEwDIhtTEWU1bi0nj2LiJtA6ul+GVUBpOM6bW0lkb8CMaKeXtqw8nMFlLtbeJ8qcv1eVppnA8NUbIw1pykDKTIdrDQEIQqMZH45ok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=c1a5sTkF reason="key not found in DNS"; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-290da27f597so2224884a91.2; Sat, 03 Feb 2024 11:01:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706986903; x=1707591703; h=cc:to:in-reply-to:references: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=K6pzRccXqHiPScs411UN1Vn42G0kB1tV+D79pDRrw+8=; b=RHfekPCO515B3do6eVgrdL6BSLTswOxktQDn9462cX7crqScJqzJGqGqQ39VAtwxnO TF2iU4Abb61ytjs3L+qflGO+NyCj4RNRuXkC0wkxKaEH4CUFl0PCkV9Kq45bekbyXH2l y+voxQOzJ6nNoAXCXPVRaVo1mkbWl6A8K/2efgPiuoS3RxdsS2CskDE5nDdBpRvy7b+2 LOSQkowSAnWnEgDxpNQCHAx2Oe4xOWEa/Xy090lupIoj+huG4G3LioUnlKISTFBXvqEL GzAKvUquR/T9lRu4D3akfKq+Rale7AnqVbpllSZAnwjiLuGRpUiVyKzSK90FRmO17NFa eFAw== X-Gm-Message-State: AOJu0YyM7Sd8aGbCplJ+S3dcJYu8EWSX6KFysze3pYu4lOiSFQvIR59j tkDf7+o7UNuTDgGaKmwOIYXBN1Q1GaJvxmQABQh1gEnlSb9uGugI X-Received: by 2002:a17:90a:1307:b0:296:235b:ac61 with SMTP id h7-20020a17090a130700b00296235bac61mr7603948pja.32.1706986903473; Sat, 03 Feb 2024 11:01:43 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVmH3dAqz2KwHi4fQDIo0hBz1CVbO5dDUdzQzQghoeaTsbB6VQp58Vc8Lvg3h/FtVbyiD7e/ih16tzls6yjm9OKKyo3WgjXwLOW1uFlSmAXVAbz4sq+n+LDdwe/mDoOFdqmJIbaEa9niQ== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id d24-20020a17090ac25800b002966870cbbasm1477690pjx.12.2024.02.03.11.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:01:43 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706986901; 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: in-reply-to:in-reply-to:references:references; bh=K6pzRccXqHiPScs411UN1Vn42G0kB1tV+D79pDRrw+8=; b=c1a5sTkF+ooNMWxgB4F3L8dxKeo2ac9TAfwOSIlPeGG4GgivzbRA5bzUQEi1sx/Bc8j8+d odYuCqutrsnWi6B/TQPK8Ewz+RXS59cLXbh7jDImZmdEt7cGVxEGAyHHdphdroVhoD3p73 C1hl345tbmMWh77OxW9McJxXt6mDzjsdmXVm8h8NcGbR09Z1GixXPc/XwkQoib4kBB5a9x dCk9lZKkturi167xbzeTGAxTQQsE2kqujBWA3hrvOnRDmtk04uSqO6yjpHY1SdVqkZG89h AE52pfWQuQxPcSr3WFbilrz5X04fe2tDg5iGzdNR4dEL1w4/f1uujY6Md91j+w== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 16:02:00 -0300 Subject: [PATCH 1/3] mmc: core: make mmc_rpmb_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-mmc-v1-1-ad054dce8dc3@marliere.net> References: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> In-Reply-To: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=920; i=ricardo@marliere.net; h=from:subject:message-id; bh=o4HUoGdcsUJOmCXT/I7jQBFT0zSuxvv3O5ivx8MH4k8=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvo2trk1VrKcTAOWlzNrMqmne+oTtBU8zuIxlB HwTjvuwipGJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6NrQAKCRDJC4p8Y4ZY pkfdD/4vLQQWvPNzefu7QZuxYUKf/gbZ6A5CiI9nSeQK9ITPt2Vuijq4mgVunl7WFOmEuGDeitM lLzlWvrNRIHJez+PYKGnr59ZeHPv8GjepsU+pVooHC0vLF2jFwElxzlSXHzv1YegIrN7grqf6vV mpPGj8njukdPYa+GTFYsA+O93QJlqfxHdCmT4FWPHuCyFQYlrmvJNB9KZFNw1ohQaHGdM60CbEJ 0p9vqz/e2wfr2YHniRQX4MsDs4Ju/cESN+vz/h9xAAsjCdTPJ3fsDJbXIFkQuP9HPmhkohvn0Yu AJSfp+TWDMuheiHFwtq43dsbrUPnjOE73CSt+yW+bWqtQkQeNQUPtK7X+erZOPMMJtE4n+npOnw MGe2TE6U4/Ei4Ud1B8Wgne9tK8yOFBdXY5/Uu7BqXe5JOQl49SYklHBqNcfyddzIIPDnGJ06tjX 99G1JKNFKNgqsTLLJTfsfEBoXYuyTm6evvrsXON9vd0SlhXsa2Rdz9AmMyAPSlDizRUZ/s9Rtav hMCrPKewD6jxPg+Jn0h7KxdaX7GUFuDOizJpFEukpKbUXkg6bTtQa3eACFzjjk2XPTtU2GjfKfk sObfZS70rBvnVfxwibs9zUBONrkGIzSNI6iFr2WwckuZhazl8A6ATcBz3pC8IWrpvcX6C+fqGdM EOxLW4Zn6QgsPYg== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789905546640484299 X-GMAIL-MSGID: 1789905546640484299 Now that the driver core can properly handle constant struct bus_type, move the mmc_rpmb_bus_type 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 --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index a9b60b91e32f..bd165cef2bbc 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -144,7 +144,7 @@ struct mmc_blk_data { static dev_t mmc_rpmb_devt; /* Bus type for RPMB character devices */ -static struct bus_type mmc_rpmb_bus_type = { +static const struct bus_type mmc_rpmb_bus_type = { .name = "mmc_rpmb", }; From patchwork Sat Feb 3 19:02:01 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: 196355 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp41999dyb; Sat, 3 Feb 2024 11:02:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv9y0RVghO+nhsuFIcuX5C1TkidMS42Cu32iYJ8yAFzrTwTJ0g78GTkjVvhyQ/mAKECfQw X-Received: by 2002:a17:906:e218:b0:a37:57a0:fc36 with SMTP id gf24-20020a170906e21800b00a3757a0fc36mr1323770ejb.35.1706986954751; Sat, 03 Feb 2024 11:02:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706986954; cv=pass; d=google.com; s=arc-20160816; b=TLEKlaUi9rn8OShl8NVKDvLxKEuhekCbH9xbT/8hIX6oNWFa3ctDBF1Q/Yk6vfhb+w MErDR4cMMipkf130TeBtid+ImcWQLAJOYUt36JTt2EO2Ki0sVg69g9VjZxnruqQ02cKo G+FqpJjVT5IsIynOEMTYod9BDHMtclMAGMoyoMe3CGBuEvZxLYRLx0QcBuireAZ1Nfv5 26Q93GZZkeeZ7bNxH65InyhCryWwU9P4092tye52ETLdgCWv2lF5t8JS9p4S0BRKaSYi HNMcEVr5/n7ZtZuLKNXLnNkmp/3DQmNxs16yG/3+iWGz/i+NhJs1llcax4FLdOBjIc1h 7ZHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=c2AKOQevl1N41k8ApLr55V7zjjXXyZJ48XGNeR/AbJI=; fh=KjVYlzsA+rl0BxCONSO/zjSiICA1AGnNfFpK527dxH8=; b=J1CxKJmdYS50Xi+wyAcdVo0PRwsM0eQlQ+XjH2bW4R6L+w9djFWzVDyVyBFgkIBUp0 rmiLw4miAk69U+/uPkFRijWoV0mnB5OWS2OZ+8DH0IZG31dCKeYBo1qt/YlO0FeL+NWi O6PldW76QeFJfMXh+solk049liIUQGvHVgl2GirF9xXEWN3zRYdpgXL40C/VcOyloVu2 SRIaalJYrRwH7UasNTmCpiETRCPJPGY35lTvxljJuZOTtiyau9A/n1Iji4O36Q4Nt0cn 7FrT7RUyHEVdyDte197dV0XYHAThxxSJyAf+9ZpyGbzkbcu3paUuQP1VjRhXrOYZynhd bprg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="B3kb/poq"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51251-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWTh64mtozPUuLllvPvJhLUd3MxKtvOrbPE5uA8vpKxpvyeNEixbwT1caYXj+TqtKE5CaIbdukx9s8B7kiWeEEIcD2N3g== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gz7-20020a170906f2c700b00a37015e604csi1860671ejb.960.2024.02.03.11.02.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="B3kb/poq"; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51251-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51251-ouuuleilei=gmail.com@vger.kernel.org" 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 5D3901F2217D for ; Sat, 3 Feb 2024 19:02:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC325605BB; Sat, 3 Feb 2024 19:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="B3kb/poq" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 7D9C85FF0C; Sat, 3 Feb 2024 19:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986908; cv=none; b=jUxHWxbZXn09iTEHdNro0p4p6RKaOWHTj8fldcONBn4q9dWtKb838UOc2JP/mtV95G2BlukHC5wSX6HKIE8e43Xp5isATKzlhJzSeV6/sQXnb3IH4WE6stzMfV6bsMqo0wFXtZ7l6FuLvZRHdlXM0SXlHffpB8kpVLzLeOBCRd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986908; c=relaxed/simple; bh=dOwfgYrXlo3IrjMLgIsGne9qeQQBcyEQjRcsdVLCyrI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ireEnqRyk5osuwHha8rLIjUVplEbBSq6jLLinuRh90IGihyEbcWyGVcb1Duzxmf5mEEAfCHq5iH2KOfgEz1kGaDuHI/9L0t7mfKB+ptbXwfmu7r81Fv7CLXMdFZ0b6fDmKMGMsHhkKUop3fk1C7MtBizMARDqvZb769mDv0aqIA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=B3kb/poq reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5ce9555d42eso2810889a12.2; Sat, 03 Feb 2024 11:01:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706986906; x=1707591706; h=cc:to:in-reply-to:references: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=c2AKOQevl1N41k8ApLr55V7zjjXXyZJ48XGNeR/AbJI=; b=IHREbeEiFg3iGxbYnSnWIZKRtksHduuXTEs0EtEW/bsBG3+3jqPavwmqpqO3ZEw11G 3T8nqeMgmmDonKowD+LO6XIdNP3x87/dJ2rNCN5DMiQv5op/xJWeKaFqfL4DDFyJkPp8 E3pZit6NE7K5sFNuHAKfIPtXa28WwvxGzOAmYTPffQxQKUTuBIPjqPZpAJsD7KvIakvO qvsE8kW2/LJrVVCblpt6X3kGUlbe92m5h8IYMHXYEPk1N28BMs4AbGc8CrgUNCB9tg8Y SZfeHO4NiGd3ZobxwFmK1ocxHRoFCdPcsib9Re2Z493+DggfH7uQ9LqDGTkGsoSutmz2 fYXQ== X-Gm-Message-State: AOJu0Yw1EfO2q0z6gp4JOqbKgGaeL2XCpukmbQGkXAegrLBX7D+guvyY pZmg6yCocBRd9DvfiMVUf2rnyLeKVbWDwFrKh9AiVqrF8DG9Bax6Y84iBdJ8P4Zraw== X-Received: by 2002:a05:6a20:da85:b0:19e:4f07:16c3 with SMTP id iy5-20020a056a20da8500b0019e4f0716c3mr5577424pzb.55.1706986905706; Sat, 03 Feb 2024 11:01:45 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXiOwMms3e9V79IHHasbUvJ06jh4gyGSRMmaLdHFFKj28w8oYDUG5vVJP2tm3561n+/ESejTyCqvKRwpdrXhNq3rfPkx6cPK7Eh3NHSD+MwarZ68sRaunr32/6Zk+ur/oOFN20oUAA1FQ== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id m13-20020a63ed4d000000b005cf9e59477esm4019381pgk.26.2024.02.03.11.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:01:45 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706986904; 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: in-reply-to:in-reply-to:references:references; bh=c2AKOQevl1N41k8ApLr55V7zjjXXyZJ48XGNeR/AbJI=; b=B3kb/poqQ70RbLlKrHlakpVMzjB9a4PWoQGNJnw/4d9WsW+jkRr//Hy6KpXkykt7DH9Fu3 zr9BSs3qn19FeATyTV7is81LUBhCSd2d6HQ4uKRSOBQ8BEsL/H3y8Rf639+gCmllMSQiPD pWYQJyDJZv/KirDyxIu43gUqiQDBVuWZfC1OD6eav75pwAhWxyaZjVm2lzuaJcFrXjolZ8 vKKwPpzPPhbboeRX0pW8FaZ5sfC5WgDutnp/tESc2AyjNR/SkuoA0J+VX6WSFaWHt6dcJ8 liEPZHXAmmaXy6PSqCkETQ62NAtayUaaymQ3VUWG8uoUGTE/895fJ5pquMbRTw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 16:02:01 -0300 Subject: [PATCH 2/3] mmc: core: make mmc_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-mmc-v1-2-ad054dce8dc3@marliere.net> References: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> In-Reply-To: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=965; i=ricardo@marliere.net; h=from:subject:message-id; bh=dOwfgYrXlo3IrjMLgIsGne9qeQQBcyEQjRcsdVLCyrI=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvo2tHfHV+1WceALNXrC7ivuDQe0IBg0maM2NO HsHG9wdjrWJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6NrQAKCRDJC4p8Y4ZY pm9dEACx4/TS04/hpykZN2HZS3gYXGvHARBv6e0kiTs9w2jw70Lmg+CIG8oCkJ54cbV8fmc2TzV 6F+TKsUqwvqODmi9a/Mq/60MmWEa6ZoxrUFckbASvSdPUzWjq6+itaYmq5+GRvJ/4bhgCaSZDGi viTw1RHNBb6g6/j/OB0N73uxxosjL/9ewr9Ms25W/JezL0AeVwcFo1Y/zvSd1zkwXvdmHUrBav6 aYirR8Aw0LQwT3xxHh9FEl0HCJ+EXVG0WJ8kyYat+HWc1D06VlbDctEl0ejkffKdjnToUac99/0 9dPRgMxn/yPhcmE09PSxpZ5fX5YLT9fpqzvsz9UjcBh/OzuejrO2ove9hBrtFS6KPJyA0604yd3 NqCT427hcZrRAzXwm5KejopnWqICs6HZCzJHr4kiSrGGhFD1pH6qfL+Tds52o9qzmcWpbhatDPf BA152rsjTY5it36HEKk5xD1ZEXxUtsGeqJyfHHLqyFW3GztNpv6kFKMJHZbBNL4XguS+ogDfYkv YDQGpaRHfed7cRp+IndAFR/NCBprFUH162fIXDIfxHuGhYDSwptXVUpmMjU0gPhlpENbNMqpnyJ F7N/BWAmhAVZ2xnJWcjSOgxTfexf0i1zGcVtzBAq0YoquvcEpN7CSAyPeWkREC2Y6fu/0aXNgF4 XPnROoa3+82GVMQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789905552978729990 X-GMAIL-MSGID: 1789905552978729990 Now that the driver core can properly handle constant struct bus_type, move the mmc_bus_type 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 --- drivers/mmc/core/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index 0af96548e7da..48daeafdff7a 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c @@ -214,7 +214,7 @@ static const struct dev_pm_ops mmc_bus_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(mmc_bus_suspend, mmc_bus_resume) }; -static struct bus_type mmc_bus_type = { +static const struct bus_type mmc_bus_type = { .name = "mmc", .dev_groups = mmc_dev_groups, .uevent = mmc_bus_uevent, From patchwork Sat Feb 3 19:02:02 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: 196356 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp42148dyb; Sat, 3 Feb 2024 11:02:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsflIeMQ9ybYI4g6afFu2Kk3zU0Rz5bfkHgb7XvKR0SgBClbbKIKz/UvevWgwNTOhDNS7x X-Received: by 2002:a05:6870:218f:b0:219:4331:88f1 with SMTP id l15-20020a056870218f00b00219433188f1mr3203148oae.48.1706986971199; Sat, 03 Feb 2024 11:02:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706986971; cv=pass; d=google.com; s=arc-20160816; b=mYmVxqD53bEB3/yJ3m6yAkZjdI/ALToIh0xoTL8Rrjc96rHChQsj6Bso7R6vbR5b0x 9xSzKzH7ppkRHAdyJc/edav1r4LbnzKciUkoA6Vm4VX8cmHolW7/4cmIAIHHvpt1MsXu grmGSOqa6mLWM0/DXvZeiEcTzWVoWTXeWBm0HHQVrTsKwNJ+ce7hfTY+3x7KQ0NiFc4N HUOvyETrwhyFBt7wMGh3XEVkvWD7XdY9rZ549kXsdqLxCwR5pKsWEr0ZUBpoKib74IkI o+lmvO1r7VERjf2cuZoTJjp2PkYYWfHVwDne1yLtudRgWQ7xk6Vy3FfCTfyKuEOn9HdA W19g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=lvUYUdcKAB7i1BmNOiCXEGj+jeIkzeweygwcC2BIi2w=; fh=JW0813pqYLw2zmjAhkZS3jLHAI8H3l1b4S+CjjiK52w=; b=K+Q65figeBCUzC9wVvAoPXOetzabtcfhppB/pjjM7OfsT5aYIqSB2VkdoWnTowr3vS oO/u7r1CG9DojTCLSeCg2EL57HkBaqGLwgFf3N97dkVa1mqk44rydsIDpLcmJaxcfrFO SxubpCN+dwCaPQoutI8M/A8KShcTDEhvNA1sd43Tf9yFUti0r6jj1JOxC47gHVppP9c9 h590tXXrdPim0o6bov1F+7Unzzqg8AyTfmlIQCLRSDAIRKHWB6gf0tgnnk1LPbCjWlIB /qqF7zdOf21sc9eSrLzsWdHvkVs8jCLZxHztN8KfheSfdzQp3E2y7ler2BjfkVi3DNG1 QBOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=aqvKt7Ro; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51252-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51252-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX1vsDK90YmDEM1zh/zsAIsCzkFMXe2XatLFrL87w4TQJgw98PydknJCVQM7I50ZJfaV8mYKCbzpVkjmT4Y67WLvL5Ibw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g4-20020ac85804000000b0042a99009af6si5024483qtg.222.2024.02.03.11.02.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:02:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51252-ouuuleilei=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=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=aqvKt7Ro; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51252-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51252-ouuuleilei=gmail.com@vger.kernel.org" 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 00DA81C214C4 for ; Sat, 3 Feb 2024 19:02:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33CB45FF06; Sat, 3 Feb 2024 19:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="aqvKt7Ro" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 A397E604C1; Sat, 3 Feb 2024 19:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986911; cv=none; b=DQmwJGbyxZgfFijt5YE0c6RRyYBALikyD4bTElJc99SqVNW8PkzvAfOqnrbhE4GaZ4eQBnazyJP4HLpzlRxgV8eSsEgip9wneDCh71ii35XEyr3f/XJ63w24fzyaED/QEESZPpZlTPpvBhLP5/gquAtlUmd3rHsZ6pYU+vtqOlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706986911; c=relaxed/simple; bh=pc1HhvzRk6bVkjI2bt/w+4XjgJvrHjEzJv9iDLQZGSw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DH2H1lwNGZkyuWxuhF9Z3tFmXfWq5AN4ss9OacYPiezoi4uSz/BKRX34wYjWAMPofFBfoQDpKiI+35Mobpiml31b1o06SLEtUaFtxqBU5/XOxVFp/Ty8ZdZgXNbxAWOPEX49JCFgLStnfeBxCx/Oofbdxf6bU3EiJ0Qheqab1IM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=aqvKt7Ro reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5d4a1e66750so2558228a12.0; Sat, 03 Feb 2024 11:01:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706986909; x=1707591709; h=cc:to:in-reply-to:references: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=lvUYUdcKAB7i1BmNOiCXEGj+jeIkzeweygwcC2BIi2w=; b=g4WFmspezzk6mdW2PQwqJoIn4uU7Lde+2LSq0XTPvQLezZxfMHHcmmcSmkmgiE/Tiv 6brdA5ldxnHQd12RykARR5XqYWkuc1KoWtUE77rUQxoepuOKvtpTXN4cqqVPz9Q+drfZ BfmWS49Mdo5xpy9/F0iyx1h9y4Nq6R193dwY2XqOO2guWFOgvBSsk4z7OoiuFhyv44Rb Nl3s9S/84RQDfRUYxNwf3ITpyo7sRAjr8QUZUi2JC7kykex1wCQuF60idVSnKcxBU8J+ 9N10cCCQqT36YVmYnuMMSaQR8h4yHkFGPqRHVXy3oUtHNXjO4rLQcffHGhEuS9jMKDfo l4Fg== X-Gm-Message-State: AOJu0Yw24TX2fOBed7pKaO31J8EJsR7+wafr/cRKSRmAKgUtNuE3+iHB YNyg3csqlsSf4j8cKHHOoiB4cvN1ZMINqQXEQmEQMGVJUaGqLba/ X-Received: by 2002:a05:6a20:2002:b0:19e:2d04:d775 with SMTP id w2-20020a056a20200200b0019e2d04d775mr9936452pzw.50.1706986908925; Sat, 03 Feb 2024 11:01:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCW4OTlsi1HyxI3PLI7hQ+X9ZXZx6uyR0sm1KT0qfR9TMHnwID9ksYus/q05JbFlc61xtZsMaVgPs7NIUSAEMrx1u/7gRk5vSQJISVTp1xGyLQf9/Ioe1nM9WyMoeqFS0IeOTaUd4o0Pfw== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id g8-20020a056a0023c800b006ddb0b0ff0dsm3709285pfc.34.2024.02.03.11.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:01:48 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1706986907; 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: in-reply-to:in-reply-to:references:references; bh=lvUYUdcKAB7i1BmNOiCXEGj+jeIkzeweygwcC2BIi2w=; b=aqvKt7RoHdlFIDUfTUnOallSYG/3P2+qO50BqcqkfiD1c2ARIKo/2dMvSSJPpHauKPfM47 l00Nbxn7a2T/5oOJxQGlfCh725eXbA8Lt5FGU9Der1TadqTe4yC1E+HYfhwjc3WQxkSAH0 ukZwsNGyP5O7Iifq4lUFD7F69rstUzruPP//e5LQkca2jQvbRqx+/SeT1SLDCjJfMvR3li /BiHiMvPQSE7UzhYwf3IHVkUdGG/RzWftOwvIp9zkMITL9eFQXSvH6CQY5jbhbWcDlGuYN fyLwX+KsyVTgEBv1+hP+Jhb3xBZ0wQSArtCE6MJ9QOTPbAfl5vGgF/aHHUmihw== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 03 Feb 2024 16:02:02 -0300 Subject: [PATCH 3/3] mmc: core: make sdio_bus_type const Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240203-bus_cleanup-mmc-v1-3-ad054dce8dc3@marliere.net> References: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> In-Reply-To: <20240203-bus_cleanup-mmc-v1-0-ad054dce8dc3@marliere.net> To: Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=940; i=ricardo@marliere.net; h=from:subject:message-id; bh=pc1HhvzRk6bVkjI2bt/w+4XjgJvrHjEzJv9iDLQZGSw=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlvo2tB3tOqyMU8SsV7StMoRxOveA3ODo7JEhBY VGjCWVRelKJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb6NrQAKCRDJC4p8Y4ZY poNsD/sE40XxGtnSVrN1fTksGb11kBzPb0q5thJjgKRkoJR1+2B0nSvBQZdIzlDLXFOAZZIuGzB JefNzg82LHgZBKdx6XGmPbLwLijrxwynzHlr9630XXj2xKKbzKEZzvwpHQrT9Feu5hdAX9Uu50V ZO7/FzgwST0nlhK4InUJVLEDDpJgHVEUQXaHzh785QG7DPGgX8ZFetFaPyPkbdMOUVd26gGnEri qR5/qsOYEj01Sh79b1RTEtil8wW18o4o7yRUIpqkiAGZBnwixJiAdT+VdWtWRB313JF9aGbJDnM vS9vJVwzPQxGJgcvaMi82QbLUZeY/dNxgs2h/Zns2HuyEaNpnqSAm/OGa2NVjBbJKekILCHo3y+ atRPMpi3mq5zTaTg2itt98V9CewMk8NDXK97mwuwROcgOrPt1BUUDErtdelCC38fejueFdBgCYt tAHVq0kb1p2oVvgZfq8HTToQh2shgSOkAabDvo7/+o9FD06yz8U9nEUFL9tIY2pSf7QcbfemgVv vhVJmggSEqctgtHRx+fd8okTggZIdYqFdNsh1KrSKmfM4Gtic2LRuvsyGDuwqZheuSBPttu8MzU np1xerv4HdXOMzdyMAcJDZrGVKmG5ftZr/FNA8xFxbMa5STZr/rxlSR4v8UxJ1HKQ9X1Qj9/Io/ IioD916PDiEBX6w== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789905570755713546 X-GMAIL-MSGID: 1789905570755713546 Now that the driver core can properly handle constant struct bus_type, move the sdio_bus_type 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 --- drivers/mmc/core/sdio_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 47a48e902a24..71d885fbc228 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -244,7 +244,7 @@ static const struct dev_pm_ops sdio_bus_pm_ops = { ) }; -static struct bus_type sdio_bus_type = { +static const struct bus_type sdio_bus_type = { .name = "sdio", .dev_groups = sdio_dev_groups, .match = sdio_bus_match,