Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2947989rdb; Tue, 6 Feb 2024 02:38:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRu1Q7sdzy6tvF3biqOGY0fJ2S3fGyAsAGjBNF3FrjWJpGeonndLYVL04SHnx/UjriBZxS X-Received: by 2002:a05:622a:203:b0:42c:21e1:ea2b with SMTP id b3-20020a05622a020300b0042c21e1ea2bmr2525572qtx.13.1707215915656; Tue, 06 Feb 2024 02:38:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707215915; cv=pass; d=google.com; s=arc-20160816; b=rbbFUlVm/p9kGOM0Y3igBxUqIHqe6kuhhil/a1g3in3LDDCk9PFaGdhY9YjnoDHUQN Sm3l4ZRRYnYE4yaamK0ii/b5q+DfC9C8luWjjR2d+uBeaJC5HGJ8OkN7YX2e/udU0ZiY YqTf9Q2yhJX9kET4xUv0Uvfr14ZbPgyCIAry5EVxWyjZ5++ATY4VHPgjvbPrkbwTYnz9 jm43oQ2uoqJOHf7ATlUroHXtgG4jSmdDvB/Io8ieuZKKZ1Tjw+4WUXcvkwIE4XxfRtIn r+OaDKeJwLuSnS9ml/lJJoDXgUaL3miuZlHFaJjfJuB7H1pEy2vuW2ZsySR8bDzNBpSV 2eag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=vYqglejBEbIWhsWJJRgary59v9AvUT3cInJMjawD7nc=; fh=d2wDXr0R4baUCNLQOXJ2D6kySVRS9ER8/W8vy7NNnLQ=; b=pE/FoyvV4/vSk6IC6sG9YN4DtjjgLAr7UkGRam19R1+pRAfM9mhMR9aGMvyEEFbZ2e zkP9SMFrHH+td+VrBuCthQ0bEfN5kYMSsc2pKpv2fK3PX5OhMZmqDB+qYUhwRYmouWY2 XeZBwlbYR+q2ztJ/Rjav6GoF/Akvb6w/kb/NYSGLic8WrtSkKbvbWHCL8lUpbWlYhAym Naj4vh+N/90R5dQ66Encsmby4hsKNIn116drEQtWe0oXLmgbWEDJK2mxg4WUdZLWPAKP uZP04gwH0H7SO7hDAvULkxeCQ9jTsiwYwdVO17MaAP+IhkISAFKRCxj60QOqEn2FbALg m7QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-54702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVCddElnCCrkMsMyF31kI2pBK3Sj2rLHyGTfyTk5ylpWoNwWwnDqwD28GJYJT5wZaAjDLzeSwGTVIC3hiy6C9172XvYMJzMkTx1lmnAAg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q4-20020a05622a030400b0042c1ca83f25si2057287qtw.89.2024.02.06.02.38.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 02:38:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-54702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 40F501C24034 for ; Tue, 6 Feb 2024 10:38:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6304433D1; Tue, 6 Feb 2024 10:37:41 +0000 (UTC) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99B1818EB2 for ; Tue, 6 Feb 2024 10:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707215860; cv=none; b=PRjN1ZTuJScAoWnuActMq/JwSesqoPDr4ujImBdZg0cQLawrP2tJ3LNbwB8tGgeextLTTaSsg2MMbyjb+X9nIGH1uGi8FTl02Hot1ZFYXFcDWADfvc3sdizMpi/FlzAIdcTkSSj4STWARxhk9X1kFmbJC/u9abeXzmSpkSb/rCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707215860; c=relaxed/simple; bh=vYqglejBEbIWhsWJJRgary59v9AvUT3cInJMjawD7nc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hsoHYIMnVIKkSzIeDpQb/yVihYFRccyAX8EOvRzCJHzAQDvhKVpkiUFuK4o+GEjQfCOs3cvT96J9Og7Md7vSxqOj2gNAnjKDZ22kXedqWhKeaip/5cTDHxlL87sdvl8hR2o5cOzfKnUbaLl+DyTyGB6R0GUd9H+dEQvKk5rJhLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-290d59df3f0so4423371a91.2 for ; Tue, 06 Feb 2024 02:37:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707215859; x=1707820659; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vYqglejBEbIWhsWJJRgary59v9AvUT3cInJMjawD7nc=; b=ln3WvuxCzIHXlGV0SC+y/A9DEwPkeh2dpaTTcmasZN5VENljWO27dxipTQmgthjX7l xboQihjdxcS/JY5jTfo/AHnms6nRpobtt+J/bHcfBgF0PGfB/Mkw34q0HbgeVNvQAE7S G85zvqEavAvhuUZZsjZ/ycDfWksXRy0YJyrJvWDOee1Dsg3r+thg9Pf0Bej6WBvkA/1T BaegtVyQkGu/enXCXaY/pDWrLFp+ykb9ottZHLYeUNVODy6FLIqQtqk4o6BpIUVP1VGc 3q1tvkscIDRf/P5+4umRoMdW9MG92bppdEtH7AyVSZN4n5WDe9ncugDS7DZupTvdBALV 6spQ== X-Gm-Message-State: AOJu0YwsAZ8PcHrV8dRsoZoErQXBB3/mVOh2Q0keXvztALkVjR4e0RgQ y4pnkLdKEhSgfROkOcPndHZd8QPWbQk7tDf7mX2kRivpinEtI3sEV6oo+drpXGRYqQ== X-Received: by 2002:a17:90a:ea07:b0:296:2d0f:bba8 with SMTP id w7-20020a17090aea0700b002962d0fbba8mr2183021pjy.43.1707215858910; Tue, 06 Feb 2024 02:37:38 -0800 (PST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com. [209.85.210.180]) by smtp.gmail.com with ESMTPSA id cm17-20020a17090afa1100b00296885dcef7sm1178917pjb.16.2024.02.06.02.37.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 02:37:38 -0800 (PST) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6da202aa138so3431155b3a.2 for ; Tue, 06 Feb 2024 02:37:38 -0800 (PST) X-Received: by 2002:aa7:868f:0:b0:6e0:3ef3:db3c with SMTP id d15-20020aa7868f000000b006e03ef3db3cmr2091250pfo.29.1707215858019; Tue, 06 Feb 2024 02:37:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240204-bus_cleanup-mcb-v1-1-d84b2ef51a0b@marliere.net> In-Reply-To: <20240204-bus_cleanup-mcb-v1-1-d84b2ef51a0b@marliere.net> From: Johannes Thumshirn Date: Tue, 6 Feb 2024 11:37:26 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mcb: make mcb_bus_type const To: "Ricardo B. Marliere" Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 4, 2024 at 9:02=E2=80=AFPM Ricardo B. Marliere wrote: > > Now that the driver core can properly handle constant struct bus_type, > move the mcb_bus_type variable to be a constant structure as well, > placing it into read-only memory which can not be modified at runtime. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Looks good, Reviewed-by: Johannes Thumshirn