Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp88354rdb; Tue, 19 Dec 2023 10:05:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGiX1XmaK4qMmoLNRkI53Dijeb4YPYF7kp0DvlOUkE084YZjwZ4W+qsErx8TdsGUTV7Pjn X-Received: by 2002:a17:90a:1308:b0:28b:4cdd:450e with SMTP id h8-20020a17090a130800b0028b4cdd450emr1885376pja.56.1703009133201; Tue, 19 Dec 2023 10:05:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703009133; cv=pass; d=google.com; s=arc-20160816; b=TGQY40sJXkOr5Z5x/09opkHqLULquD673VuNsZZ3/jOM1WE3+DSjXejAxSio84Ct1V 3O5/cKO1PqDjr2oc9yja2spFs9aLl6o2PUCwH9lMi7NyKN1uQx8uiZxoFKkh/kcLvKvD nxPDr8PQgM7p3VzTTXkyrcpqoe5Rl6+1XOepoCudY42D7xkWovKRUaRPMie3Hqko5pM+ FmgaEEvnNYv3ipINqIsfmbrMqSv/KBAyb/FdOV8Bm6CPfrl+2lZMSte+MXcnsjdIsFZi 22Dzjzr5kzd9U21e0NQ/sUjeMTiYgK4AUih7D/7Hn8K5jo6ExXdzhrr2kyBuo7XB5TGl 2ksQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=HBrqNVVZW6ulBFD7auHdFxPR9Np1lhtveELrDiI4hE4=; fh=/YmIZAAOkc0RXqnwHUeDqKH111yIXe7GzPzNExjwpJk=; b=ak7SxdWgnUHWdbaTs2GQ31genmtc5sPpSlcUNqWwW2TG/YzM1J9x4Tclc9pCUNp1Ki QJc0AC+L7H4GycLHawu/Ay68A5J5yfhxyCSenOlEGRw7QyF6NbP7Xwn49lMzAEvFCV3/ 2y/ZmfsQppkQkspmbqh4a6CdehB/yQLp8XT0XG8HyFpfY+BV8fD3fWxXw97HJJINZtZu 1CV9PthdvubtkYZ/BCtlXPxacJn6bYZwnkX7JGoyjeTidHTUwWP/E/UNa8l2jrfrUui+ RCTDcN1aM6KhwhwtAhSMBnjJaTyk89gSPo/MAJ5xdBgiSvNQdYVD6M9z1HHi2/Fj4Vjx dggA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LYCA+72H; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-5762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h23-20020a17090ac39700b0028b98995a59si1572241pjt.110.2023.12.19.10.05.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 10:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LYCA+72H; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-5762-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 477A02868B1 for ; Tue, 19 Dec 2023 18:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 213253D0AB; Tue, 19 Dec 2023 18:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LYCA+72H" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7723D3D0A3 for ; Tue, 19 Dec 2023 18:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703009035; x=1734545035; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=py2ZssG/xklV48QzBtIP/6/PqFkoef9jd36vPiMxVl0=; b=LYCA+72Hxukkkv1dH+qqcouqwakfro316h+mjBueVHfbAJdaXM233Qq4 BZXn88D1bPiTmM69dFV5KjGf/00uitbEMV5aLnNQp8juUzdCXSpZ8R639 cQyoDsoRxaIgL7fj7V+ClCm9X2A2tUiuEsDosU/M0ZISCIaFLuVeOI5Ry Axg8CHOvRxq0jGFHI69o4I5MAheO7cr46hKE+hsKIMenZCv9CaHSDfYlR NNo9HABKeCt46Xl9wbiU//Tr3EKqussKy7VPbbdOYXqDJdvyP+MwdQw2h 2iNCLVcSutHdMV+fdjvKkInix+VmdozG++Vu2Dyem6Ifn+NlsMzZsb46m A==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="380682411" X-IronPort-AV: E=Sophos;i="6.04,289,1695711600"; d="scan'208";a="380682411" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 10:03:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="804978252" X-IronPort-AV: E=Sophos;i="6.04,289,1695711600"; d="scan'208";a="804978252" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Dec 2023 10:02:37 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 19 Dec 2023 10:02:37 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 19 Dec 2023 10:02:37 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 19 Dec 2023 10:02:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K9widJCoF5HtxKZuRHYpGvaxSaCVIuZSsncXqWXcBLVxjD1wqNSNe4u6e+GjyAUlA4vGWeEMh7Bk0Y80WVbCtvamzOFOdLlkABhBCtdtFL162+WGE9jyI8MzKu0kL7k+j5w7eaf2P+Rxdyb8UNiaAYU0t2fXP6dBgRq3izwfESxYdi950Fdajojy0MvR8w3XXy8R3AeKm2HFu7H84y53TwSRWApKIwjR1PQCDQi++iyFxWr67LExoHZuiJe238S6SoTL3LmdYlLUKJerM7mg72+mR66k5d3AuFJ10ETwDnpm7M8e+IZMVPLnkJAcvNco49nBJFPFDTQMisDpTE+6CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HBrqNVVZW6ulBFD7auHdFxPR9Np1lhtveELrDiI4hE4=; b=jipej+VnVjtVf0Mce/rAJV/DuDSaG0ZcI+QZJsWte0DOsiGpVsA5TYvUxyt5PzThaYFWZz2LUZIp+VhnpbvQKh2qVpmROBZA1WchHeuTi8fSTRWMfaIDayC9PfHYz3U8aaBx9y1GWXiQH1OxHQSDcX0JZ5ziWWum3+v4E5O6YXEFtQAqvuEoQVGuhWqLotOmdFmOBylmBvPQFD9KvbviWgI7qQ0UcfFkzXK1mHgQU24kTC8IiT3L7XLm0EjAWc0ONyYTgJs0CgGfMO0126D32vdryeBtqruMLaHY+UH+GkRuIX8vYFWS4TriJOnLUJV13hUWNFnJloJYDyKZABbT0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW5PR11MB5811.namprd11.prod.outlook.com (2603:10b6:303:198::18) by LV2PR11MB6000.namprd11.prod.outlook.com (2603:10b6:408:17c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Tue, 19 Dec 2023 18:02:34 +0000 Received: from MW5PR11MB5811.namprd11.prod.outlook.com ([fe80::f6f9:943e:b38e:70de]) by MW5PR11MB5811.namprd11.prod.outlook.com ([fe80::f6f9:943e:b38e:70de%4]) with mapi id 15.20.7091.034; Tue, 19 Dec 2023 18:02:34 +0000 From: "Ertman, David M" To: Greg Kroah-Hartman , "rafael@kernel.org" , "linux-kernel@vger.kernel.org" CC: "Weiny, Ira" , William Breathitt Gray , David Hildenbrand , "Oscar Salvador" , Kevin Hilman , Ulf Hansson , "Brown, Len" Subject: RE: [PATCH] driver core: mark remaining local bus_type variables as const Thread-Topic: [PATCH] driver core: mark remaining local bus_type variables as const Thread-Index: AQHaMpEHnG+TLmy1q0aP6ABzV9Z91bCw5b+Q Date: Tue, 19 Dec 2023 18:02:33 +0000 Message-ID: References: <2023121908-paver-follow-cc21@gregkh> In-Reply-To: <2023121908-paver-follow-cc21@gregkh> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW5PR11MB5811:EE_|LV2PR11MB6000:EE_ x-ms-office365-filtering-correlation-id: a0d707c4-f766-4176-565b-08dc00bcad3b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: q7pX43jaF6CPGmXykjSRT5iGF9xYQhWB2MVbSqEiYu7zbNO671Bdeb/DzfPF9FyVAaeOSGUloOYq+S9S5Na2J7ADYi67G5l94EEERpAypgRwsgSalO9gcm4jTKa046K3IFIokFShPD9x0uCfef64ca7FLOvPyzwrwCUsmrQfwiPfORYWcgg1uwyf+4YPFF3/cmlh4+DHpVBmYFINBSoT+arrp+M7V65gjTEICVd6XFPwazlVl4GO40kSV5RSO6V9vhebn6TZAyihONBbDwrhhOpao10I09wAcY/2Q0LhHjYkeZKCd1pzxdAlOTkBPZ0u7KzIULS0TL4SkVbwdojAfsWuHnOgLILCSAtgpG2tuv3zloEwHv3PkTI8ugoiOvgP2AHJFdTMOXHYkVro6c57QBy/KZSyDzNJoFBR9YHA9cBdC22pdpp80nYEW6laxNINLErCyT4lcpt6bzfosgnL+Bdf44GqpNp9R7/q0BTC2kTDM92qeSkLOeRyiMXW+qPq8VQKcwcvJvBfx008gfvi759YwSiGN2nrF8l6DJY8ezIBW4uGWk1c2ALyEv618Ry8ycd6NNSdalYSre47rlVUf8UK3zfz1f3hLeGNs54RhTA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR11MB5811.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(136003)(396003)(346002)(39860400002)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(122000001)(86362001)(55016003)(2906002)(52536014)(71200400001)(4326008)(8936002)(8676002)(110136005)(66946007)(64756008)(66476007)(66446008)(5660300002)(66556008)(54906003)(316002)(38100700002)(76116006)(33656002)(82960400001)(478600001)(9686003)(107886003)(41300700001)(53546011)(38070700009)(26005)(83380400001)(6506007)(7696005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g2dN37qotdC6dqlwybN79TCu9hRin3ivKXuBTyGeT5CYHmqT6nxrMCwjBKjF?= =?us-ascii?Q?wDrIC1hnazpPBki4VOd4eAbn/5GucLTDEzdMmqq7QbUQ57qT62o8IPDo3h5H?= =?us-ascii?Q?7G+unIr4uIedHLiZAYI8vgVvBwuoWFgL0TOjNLJHOQNrJc7SjMSFJKNbDu3G?= =?us-ascii?Q?0bUqWQXdd5E0JUdz/Hm3FlgrKaG0XjR36z6uXiejnbPWJ/zGUEvfrLnjHDNg?= =?us-ascii?Q?OFyVrrvWXxUxiwMMKfwspWKItFmJfwHxSNFKj1WY7RuU1ql5GRAsZ679cpZc?= =?us-ascii?Q?fIQIjm4eSZi1hjkxFMjiNHZddsfhTiLckgSUIN/+NjK+fARx53+qVYTxyuYl?= =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2yKrzh46eNMB0Y?= =?us-ascii?Q?KQbnt3XNbvVfFsI1PTMYwtEeAAFReAIZp1JY64sO37F81HZMUJtmoFbcSWel?= =?us-ascii?Q?ylYuUeIYIj/Awg7lPgd7IBdjrh/C6zTShc+6KG6biEF0/IARMmXqagUyu+zC?= =?us-ascii?Q?iVTJrore3iBcpNm3+UfDZPM2Im9sl/ZmK0d7BHhavTlYKzVp0mk8zvjno5R2?= =?us-ascii?Q?pN9CZ3RErw6+mcDxHfOvXbAAdZ4ZIIpLcUuhbHn3FZGwsHCUoD5ChM1EcBWp?= =?us-ascii?Q?/ZXYytRJrDoOTcE5lp3J0/9Yer//t3u2Hz7r74VZ1WJzsdB/jnH/oAcEUu+d?= =?us-ascii?Q?LLNPtHr7N1lJy2W5VguZMvzzz7kS3a/CJKjRjT90?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5811.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0d707c4-f766-4176-565b-08dc00bcad3b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Dec 2023 18:02:33.9892 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PQYueaq/OrUnmFGJPJJwIhVYXfLnoT37Q88NpuyJuhL+s+uEW+J9QE4+j4dyMul76MwvANyByO5V4gzvzOlVshfsIW31lvYwz4MkXyLhY0I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR11MB6000 X-OriginatorOrg: intel.com > -----Original Message----- > From: Greg Kroah-Hartman > Sent: Tuesday, December 19, 2023 7:35 AM > To: rafael@kernel.org; linux-kernel@vger.kernel.org > Cc: Greg Kroah-Hartman ; Ertman, David M > ; Weiny, Ira ; William > Breathitt Gray ; David Hildenbrand > ; Oscar Salvador ; Kevin Hilman > ; Ulf Hansson ; Brown, Len > > Subject: [PATCH] driver core: mark remaining local bus_type variables as > const >=20 > Now that the driver core can properly handle constant struct bus_type, > change the local driver core bus_type variables to be a constant > structure as well, placing them into read-only memory which can not be > modified at runtime. >=20 > Cc: Dave Ertman > Cc: Ira Weiny > Cc: "Rafael J. Wysocki" > Cc: William Breathitt Gray > Cc: David Hildenbrand > Cc: Oscar Salvador > Cc: Kevin Hilman > Cc: Ulf Hansson > Cc: Len Brown > Signed-off-by: Greg Kroah-Hartman > --- > drivers/base/auxiliary.c | 2 +- > drivers/base/isa.c | 2 +- > drivers/base/memory.c | 2 +- > drivers/base/node.c | 2 +- > drivers/base/power/domain.c | 2 +- > drivers/base/soc.c | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/base/auxiliary.c b/drivers/base/auxiliary.c > index 4d4c2c8d26c4..d3a2c40c2f12 100644 > --- a/drivers/base/auxiliary.c > +++ b/drivers/base/auxiliary.c > @@ -244,7 +244,7 @@ static void auxiliary_bus_shutdown(struct device > *dev) > auxdrv->shutdown(auxdev); > } >=20 > -static struct bus_type auxiliary_bus_type =3D { > +static const struct bus_type auxiliary_bus_type =3D { > .name =3D "auxiliary", > .probe =3D auxiliary_bus_probe, > .remove =3D auxiliary_bus_remove, > diff --git a/drivers/base/isa.c b/drivers/base/isa.c > index 675ad3139224..e23d0b49a793 100644 > --- a/drivers/base/isa.c > +++ b/drivers/base/isa.c LGTM - ACK DaveE