Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2589870rdb; Mon, 5 Feb 2024 11:04:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHalLtSmcVKftkuVgd0ae99UXXaQQ78vqcvxSZ5qhALZz0cGxti1J6pBFVPZ75/rs4hkRxL X-Received: by 2002:a2e:920d:0:b0:2d0:af09:e3d7 with SMTP id k13-20020a2e920d000000b002d0af09e3d7mr429650ljg.41.1707159866667; Mon, 05 Feb 2024 11:04:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707159866; cv=pass; d=google.com; s=arc-20160816; b=g12u9OpBYh7PVPGmxRHQpnuO5qSl1B3It+TT6N2/aJn1aEZcZhre1TegvE+g5d2ewj uq/eNNDf1jEdGCK2sft2M2SSLzQpC3yeyQoBWwPLWMOrcSwvD2SB+IKONSh69xheounz poUJdhXjS8eNBh3EWTB9tsdL1eW3KZnPkQP1c4tH8e3dIQuuZ7HA61db5znDeFj4x8jO JmzH6La1c18C/U30yxzhi2Knh3s71KdPsd7H1kikWYh+UI+xxxSQFt3sdSK3ft+Dz2e9 biDmxxfFEYpGff0AbIwDdXTfZD33ZqOgdSwtzOSXWDwxG3IPsub9bxCniJ2wnhoHL5QC 4KXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UeB3oXvpOoiD5dXHF/n8YDsNSScXM2Qk3Owo5Owy3Jc=; fh=5lXV57jL0xRMzJXT3tw39tUwtl080F8Y90L1tDHUSIw=; b=XgxhX4BNsFte/wvbCBKqWjerQmI7kQotya3dL9m3oGT0Br5tQm62UkoXlVs8Mf5ak1 cyR3zKa5esfJ2pz8lPwZ6xk6F7m9Ywn8s4gfvHIOQroHQtdZYJCMcOoIV52FZOMMn1Ab GUrsnWaAxNbORGWU0TUKC6LBUKbJdxVmo+Gt5WSwHNIjmWGK5gDHl9bBlpXSfWmcRrXY 0JVDYUr4zoxZLqeUcQBLSy0qI2/UXcp1vqh+3Xpacnr2Lbwak6urZSrw10nnF8E+WnMo n23RLtokiI2U3hYtnCmjz0ciNnAxCjmGwcXBg9wKJQJCvvFjQO9TMAhzcHQvh+apLqiR 97KA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sf0nVuS9; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCUtDMVcrylmkmcduWuRWLCxZqzE6iCu0KMnJGOnyxX9Yk+HETsjIAR2D5Nwjf6umYALClxOCDASHcGclUkqZNOJ5mC2EzLf/k05XtQgmA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g13-20020aa7c58d000000b0056004638319si178820edq.102.2024.02.05.11.04.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 11:04:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sf0nVuS9; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53279-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53279-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 491481F20938 for ; Mon, 5 Feb 2024 19:04:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8399F487BA; Mon, 5 Feb 2024 19:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Sf0nVuS9" 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 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