Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp96791rdb; Tue, 19 Dec 2023 10:18:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoc4Lhq4HaVjBE5fmjjlAX2D1Y5rbRMzC8gTkSqk2FvKxlTxwNVmpN3+R4HSf8yC2Q4XR9 X-Received: by 2002:a05:6214:12de:b0:67a:9a94:449a with SMTP id s30-20020a05621412de00b0067a9a94449amr11871281qvv.54.1703009903352; Tue, 19 Dec 2023 10:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703009903; cv=none; d=google.com; s=arc-20160816; b=SfWwfukrpFyX1n+iUeQ2DLVygq0al1xictw0VA4RWMSOwyu9wVXOxD4b5sNQ099FNI SaOJSs8bsUbI3R6OudnzJ2gHXdDULR7JMgIU04cwUelrjZ3Q0cJ5C0kIAh9oM11iNQc7 yoplJxHl9/yRIEaYnn2L/xLS11DmKe3PFdiZZoaeLcLbXXdZxbL0rcU/FXoiB0A328JO 43oE5PoVNPiFxQ0sH7WbjdT7sIjfLZkYGWEAvNLr9cmt0qWn/50iAsQaUsLNUIhUj7Nr IrxpD7qzwqUyT2LDt/T1Olf12QkT8FQKoFUZGXJNk9+0Lmwh3MV1P41zRBvmy+O4sG9b oC+A== 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=9RlT7jsVA7wKd5e+Di4liIOS0qqxYQWCY07srUN5sRk=; fh=lBppvVNXpt+Bm0GlZq1LQi3KfTCi5wAptk3ha3JVGGA=; b=G9NFGHlLmmN4LL7IdSW3m/tqqyeJ4WaNhElLmW3MXkFEGjbYtJJiDQ3E+EIrh2FVzH YXRwVJUdmbR29aEB7yzmrzcvgV66TT9pf3qqVTlak4uRoTVcEfKMKQbBcBA8+k4q0k6R fECr4zrLc4r3n39AGXcoetp2nEoFASJynv2tzxHI3mPUdqzo670SL6x4/M4qrErAWOK7 l5O4559xPgAjYrDZrqkOrTJAFTB4UDgGyo9fIyTnMwxOnxohsKrJG3bGhq3XdiDwC3be wLInbBDAHzJ7fBUjRvCNyUr3ew3A4vNktuZS8ZTHK8IWqA/3DyaZZY4ku2+tZobA6EVp G83A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fMcxRgA0; spf=pass (google.com: domain of linux-kernel+bounces-5796-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i19-20020a0cab53000000b0067f3c470bd1si5822349qvb.404.2023.12.19.10.18.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 10:18:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5796-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fMcxRgA0; spf=pass (google.com: domain of linux-kernel+bounces-5796-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5796-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1EA831C251C3 for ; Tue, 19 Dec 2023 18:18:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E5903D0C1; Tue, 19 Dec 2023 18:13:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fMcxRgA0" 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 62C4A3D0A2 for ; Tue, 19 Dec 2023 18:13:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8319FC433C8; Tue, 19 Dec 2023 18:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703009585; bh=LPaEVsI1WdhCKCTN3sP4iLdz4YB74R0k2T+UOI2ugCk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fMcxRgA0wqBB/v32dxHnl8xDSGNkzjSK0llDH98uVSm7uXZHKuZv+fv99fRGEs3zs UvyToxzClXvMSx1ALgfrhKXI15to4JixvrGoZHqnx4HKnOOVj5vfw4mbB5EFPo1OgT Kf2N9hyuZkIRCgTWEZB2h+Zy089AF0Vfz+wihEEs= Date: Tue, 19 Dec 2023 19:13:03 +0100 From: Greg Kroah-Hartman To: "Ertman, David M" Cc: "rafael@kernel.org" , "linux-kernel@vger.kernel.org" , "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 Message-ID: <2023121943-slather-collide-f61c@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 Tue, Dec 19, 2023 at 06:02:33PM +0000, Ertman, David M wrote: > > -----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 > > > > 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 +- > > drivers/base/soc.c | 2 +- > > 6 files changed, 6 insertions(+), 6 deletions(-) > > > > 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); > > } > > > > -static struct bus_type auxiliary_bus_type = { > > +static const struct bus_type auxiliary_bus_type = { > > .name = "auxiliary", > > .probe = auxiliary_bus_probe, > > .remove = 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 So, is that an "Acked-by:" type response? We need something standard for our tools to pick up... thanks, greg k-h