Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7234297rdb; Wed, 3 Jan 2024 08:47:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHmx4dbNTrUITxyjZ3pxG54Aopm9Yi49lo9r9DLupY6Mdij7doEeKFRj0N1r46mwJRq88v X-Received: by 2002:ac2:518f:0:b0:50e:7b4e:f7e8 with SMTP id u15-20020ac2518f000000b0050e7b4ef7e8mr6257121lfi.6.1704300455498; Wed, 03 Jan 2024 08:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704300455; cv=none; d=google.com; s=arc-20160816; b=clCgYE2jHAJHoOThbIAcSWSI7yIgacfDCXQCv+4epPc23PYXHiz/GEl2hEooXr+ZiZ N83H+Jm6+6ndSDdpYd3qaPVomwGaEoN//R4sXce2L/NY8cBOdkAPwsjfEQAOYPngb8a4 yTta+PDqvNi+c0+mPiTnqfcGt6G+EZ5J5/X0emvXwX2s0w0dQhg6Ca4PNrlRrMzG3b31 nVuuE/BwykSmXdgiv5Jbli8CO0EcdveP9U8G3Qb+eAa7036W1kZk3gQN20664MBfRh3f NRFvrDCsrfrKWwPYoT4c6PS4U5ZFKrka/xPTrdX0zZ1Y0d23i8GpnqspcLAkf/WLdI4W 2ejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/yWsOxl1KQZuD8VgSzkslKNqEovN294F+7/Ah26fQRw=; fh=QLnn+v5hIhpEpV4jLQjzhyfNenKVnkry7JAZQeVvt7M=; b=OkosEQix8gMQXtKlm2hxIHIhr+WGnIipmaw03Yfv6Y8JyKKEmEsJVukbyf9DFvaMas mCeG1jhVVN2BzdpGgY3M2z4R/PVD9R214lW2FIqsfR5XmVlprFb3wQ3iwhEYeyZ4Zpfx JIQf+Fee2CfuX2N+J3RiU2UbxAPKBlnpUI8QT+OrIEpm1XmHSDohKqfaODWw/rZQk3Bw kYObVbB91SNBRbY5/uLpz4IV/LWXjWHSin95ouRuUvTsiHPLLC+WYZWLsR5Jv3tZNvpS wfUr8OT6mlSfrZ+IHz5PhZCPrbOmU65Zbf1/JJ82uXig1QzYsNmBD6YJ2tCOjxSdaV3s 0f3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TmpmCPp9; spf=pass (google.com: domain of linux-kernel+bounces-15765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c20-20020a05640227d400b005540564e1efsi12419052ede.24.2024.01.03.08.47.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 08:47:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15765-linux.lists.archive=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=pass header.i=@linuxfoundation.org header.s=korg header.b=TmpmCPp9; spf=pass (google.com: domain of linux-kernel+bounces-15765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 D34141F2152B for ; Wed, 3 Jan 2024 16:47:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6C5F1C2A1; Wed, 3 Jan 2024 16:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TmpmCPp9" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 23CE91C298 for ; Wed, 3 Jan 2024 16:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DEE0C433C8; Wed, 3 Jan 2024 16:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704300437; bh=FxemScwI7xnZdUR9mF2HQbQBMyHFgOgTAfg8JVFalmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TmpmCPp9uzG91/0742R8V1RlrZrvIDnwQnqmQmvPhuDe5FiPt16p1xqm9xK56LOqZ nA6yfK1NNhh4WdIi7I686smrXMhN3XmTdjJk8Qt+QEA7Au4P3OPVlJfFRrjLIbuvtJ ssRx7Mm1dq6X4id8ho0Uw7fCnPp6B6C29aG0D8ik= Date: Wed, 3 Jan 2024 17:47:10 +0100 From: Greg Kroah-Hartman To: Ulf Hansson Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, Dave Ertman , Ira Weiny , William Breathitt Gray , David Hildenbrand , Oscar Salvador , Kevin Hilman , Len Brown Subject: Re: [PATCH] driver core: mark remaining local bus_type variables as const Message-ID: <2024010357-oblivious-manger-d480@gregkh> References: <2023121908-paver-follow-cc21@gregkh> 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=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 03, 2024 at 02:24:05PM +0100, Ulf Hansson wrote: > On Tue, 19 Dec 2023 at 16:35, Greg Kroah-Hartman > wrote: > > > > 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. > > > > 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 +- > > This above file has moved to drivers/pmdomain/core.c and I am carrying > that patch in my pmdomain tree. If you have the time to send a > separate patch for it, I can pick it up. This is already in my tree and in linux-next, so all should be good. thanks, greg k-h