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 62ECF4878F for ; Mon, 5 Feb 2024 19:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707159769; cv=none; b=aEm1HpmRzTloZQbNGofxbfTMzDX6YABBMUePWSI82H0oixC8g32tvoVa24jb0aK0/74M4Xtw6R3fEidizXAZXsBffm3KaXA/HaD31ONuL1c/sxgDBgs4seZ3UO3DLvYYAhHZpwK3p522UzRGyXeaFz4dBzZl9t9iWSGBni3bHLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707159769; c=relaxed/simple; bh=ES8p9LauLrAHUMV4ASKY0YXyfJqfS78JihNa/CG3BrA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=okvVZDV6a17NW3wrT1Qj8vp468tglW/VvVbWZUljCq160XcHgnlqt+mE4WoCDtJuyK7Q/RwXk3Ls+1e6GA2SPvENkVlgKoPZfke9dnyySrdgy8VPWCrXv7YUKOQ+qgPLAgm4wjHUiA/WITxUuZ/Bw5RszFerGEEbKG4npYBZZsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Sf0nVuS9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Sf0nVuS9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A1C3C43390; Mon, 5 Feb 2024 19:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707159769; bh=ES8p9LauLrAHUMV4ASKY0YXyfJqfS78JihNa/CG3BrA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sf0nVuS91ZlXnVPWww6veKR2vNWH38li5Vs0eXOoSzRTNpMbhRSZPog9TRaZDvrUx 15whauAIQOqnTGZSmypWxh2zM+UeuBOyzrxCAGnoEm2TCUktBUtx7OHNqnYlQoB52X zqgD83Zc2MlE9pINKE7XUhgBQECykINXJUvpIDI0= Date: Mon, 5 Feb 2024 04:45:41 -0800 From: Greg Kroah-Hartman To: "Ricardo B. Marliere" Cc: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org, Thomas =?iso-8859-1?Q?Wei=DFschuh?= Subject: Re: [PATCH] const_structs.checkpatch: add bus_type Message-ID: <2024020554-brilliant-slug-1d12@gregkh> References: <20240204-bus_cleanup-checkpatch-v1-1-8d51dcecda20@marliere.net> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240204-bus_cleanup-checkpatch-v1-1-8d51dcecda20@marliere.net> On Sun, Feb 04, 2024 at 07:39:57PM -0300, Ricardo B. Marliere wrote: > Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type > a const *"), the driver core can properly handle constant struct > bus_type. Make sure that new usages of the struct already enter the tree > as const. > > Suggested-by: Thomas Weißschuh > Signed-off-by: Ricardo B. Marliere Note, there are a handful of in-kernel instances where this will not work, but it's not worth special-casing them, they will be obvious when attempts to change them happen. Reviewed-by: Greg Kroah-Hartman