Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1798981rdb; Sun, 4 Feb 2024 01:40:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQlteLe8p0UXcI6xesBGAlmMWDwIWjQDx1B9m81xn78r4LoA9fYbHuAD60J4ceQd6LmLbk X-Received: by 2002:ac8:5c10:0:b0:42b:fc96:b92a with SMTP id i16-20020ac85c10000000b0042bfc96b92amr3720984qti.62.1707039619259; Sun, 04 Feb 2024 01:40:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707039619; cv=pass; d=google.com; s=arc-20160816; b=DZOimL8ucTAsvG+ve5YmVt2v3cv3edoX1MUGfrNhZCwta82EcwWInyxrAUz1pSsjQj d/cCi/Z08ni62KNoYFU/+CZLtVFEJkuKEayhgizZ6yOHtRkyC3zGQHxhoEDYePLGDx3g QIliXhURfBMnSinhS/R4ayAHV/jopbvcILNu0xcY9ymYVnN/avdEH9h5wg1Avc83ShDH El3Q43OQzqfWif8jHmTO66J3c7osmoVlH9qR15c/HdMCtJBYyLGPUeLQzy0eTgvEZ7Cr 8nDC+iT0JUihSSv8eOfbh46UlNRly4qEEH/luEkO3X5capUPgoCspQyN8TUpbUME7vH0 NHQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=NU3Rr1j1QYHhSBEkHcOFto/OdiFeIcgCEP+CpIukt0o=; fh=FNfQEhmWhjQig+XFtwzp7fYi8vwc7xOeyL7Y0UwisMo=; b=b68ci1COYdWcBlwCj3RkxNpz40TOBapQu5lABahDSskwZO8q8iFOj59BaXP8oWuZpr I4xnet/rgK9b4aiLU7/xkw3z6momQ0qed5o0Q4ASb8fd1jKG9xeMtAwfsFG9Kk/ImpYI 9qz2d48ZcaRtJpuHsQ7SRs0Mr2SOEUIRtE/HfPodKVzXJ33WHFW4VzDgGN0NpJ+VZ41E hMeSE5jZo+LCptAt1DGMSOwo8bf/ZbRflwD8RqFha/tDWgo0N5CbWQhfD9vZhf2pFeK1 b5gZJ/VvP5oBFlNip4ICmLRGYxqODjmEb1JUImzC8OEMpoXGS1tUGeVwkFajGRJCshaY S2zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-51561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl X-Forwarded-Encrypted: i=1; AJvYcCXfSwVvGOoCcTs+z0yx1PgOCMClmstdcnxhHj6bTwlHqGfXedglwBAH9CquGmPVHpJbx81cb4RSC0FX0koZKWy76uORDI8Ut/CtudmZSg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l15-20020a05622a050f00b0042a9a7b9861si5987891qtx.369.2024.02.04.01.40.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 01:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51561-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 (google.com: domain of linux-kernel+bounces-51561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl 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 8C82A1C215C9 for ; Sun, 4 Feb 2024 09:40:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB75118C3A; Sun, 4 Feb 2024 09:39:58 +0000 (UTC) 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 32D7118AF4; Sun, 4 Feb 2024 09:39:57 +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=1707039598; cv=none; b=Zsg7jVCESv7128wpSoKkNSUj2B3ms0LzSk1bXks3xF/CnJ2U0eZY4kRlqk6rSeEhgcAgAVmPUxk/2k9usal1yUYWPLPC62OoH8xUpH2GRFIgSxUOjlby3MIxZyCs0fV4VXLa0iDqtwrlHB/tTBuJmocJFMDa/71o9wmQw3BWUyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707039598; c=relaxed/simple; bh=PdA1mnfSW14Bg2XhjSaEUQ9BkxujDuI3oGTdddVhwso=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=V4CpzbmIpsPI0qtMGV9Rvm3/tFsWppyVTQz6v2ulDjmtfoqEA3zjY+PJvSpWVtWKysJoXNwSazG3/VtVuQEiXtuUQNqvBr+cnprsw8lSnrPItE4S5+kc4zUKJAJKw9CT7JRHg99v4R7LF4gMXx3EKBmivdLM5Sx5elXP4g9fYlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 316F7C433C7; Sun, 4 Feb 2024 09:39:55 +0000 (UTC) Message-ID: Date: Sun, 4 Feb 2024 10:39:53 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] media: cec: make cec_bus_type const Content-Language: en-US, nl To: Laurent Pinchart , "Ricardo B. Marliere" Cc: Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240203-bus_cleanup-media-v1-0-33e8feeab912@marliere.net> <20240203-bus_cleanup-media-v1-1-33e8feeab912@marliere.net> <20240204084740.GF3094@pendragon.ideasonboard.com> From: Hans Verkuil In-Reply-To: <20240204084740.GF3094@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/02/2024 09:47, Laurent Pinchart wrote: > Hi Ricardo, > > Thank you for the patch. > > On Sat, Feb 03, 2024 at 12:31:26PM -0300, Ricardo B. Marliere wrote: >> Now that the driver core can properly handle constant struct bus_type, >> move the cec_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 > > Reviewed-by: Laurent Pinchart > > Hans, I assume you'll pick this patch. Could you also pick 2/2 from the > series ? Of course! Hans > >> --- >> drivers/media/cec/core/cec-core.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/cec/core/cec-core.c b/drivers/media/cec/core/cec-core.c >> index 7e153c5cad04..5a54db839e5d 100644 >> --- a/drivers/media/cec/core/cec-core.c >> +++ b/drivers/media/cec/core/cec-core.c >> @@ -93,7 +93,7 @@ static void cec_devnode_release(struct device *cd) >> cec_delete_adapter(to_cec_adapter(devnode)); >> } >> >> -static struct bus_type cec_bus_type = { >> +static const struct bus_type cec_bus_type = { >> .name = CEC_NAME, >> }; >> >