From mboxrd@z Thu Jan 1 00:00:00 1970 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) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TmpmCPp9" 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