Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2652783rdb; Mon, 5 Feb 2024 13:12:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAsTx85O0J2EjTw6BuBfaEwG7wrBcc8VOI4aN67CidBJDQ4JPjmNF/qL7ZK6ctbsVPm/Fl X-Received: by 2002:a05:6402:782:b0:55f:fad8:4635 with SMTP id d2-20020a056402078200b0055ffad84635mr324553edy.27.1707167566283; Mon, 05 Feb 2024 13:12:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707167566; cv=pass; d=google.com; s=arc-20160816; b=Nd7h7DKvYleRPSGkrhaoeLeQwQVqGvbOpljHkJuuQJBZUtd91lYM0+PBi5oXpj/PCQ VJklyw2Sx/871u6yFsYKcjOJkjqAiNx00N+kGduHrerYpTdZqOIc3mc3tX9YoTUo1FuL w7JiBQwLOGYu1T3Z4Vs/vNoJ5RlsWxtuOJnQfI+/ahGePfSr+WtD7Mu/I/ht+HirVBNK XiEltsD+qeOLWQ2LYT9+7c/OC6w4tzFeAh3dzALzuryR78q+kNsuK2vD/za3SFAn7gHs 0JgPcQLQbJjxWSctT7JFSdvon9GFAtEwOOShT3v3C7U2iec51Tk/fUGCnj5IvjxB6cue cmPw== ARC-Message-Signature: i=2; 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=PrGCnRBdGSKAx/WDRNMHMjoAK0HnVKuvJfeTENudgFc=; fh=hyE/q0sx8nHsjPZd4zJJqJsSrmNH5YyeQksyeC/XNAQ=; b=VF8GEJ4z2qMcQLTg6xXIQ0/I3YKHC6AbwUb/jGb3ueDWWSBhFpR1No+BWLldYBcEoI HcBgRl7XqZ0qFEtS/fq8b1MU2LSP/+ZsOFA0Rp5CsMTPxVOT0jZy4YUTilgZriZTXJhg XCY/jO49CMpnR9p0M+aM5ENnyKHM8aHQvAa5dxZJJ48JkdfKIdIKuOs4p+uS+ClUemcv wmlQipbI/sp2zNRY4NoD+Un2Mp1p7YqagcYrf1JM6k8fmE81GHisy4MvqujJopbfSbRp 1IVJ537yBGooIRPgii2ozWMj5O0kdNqLNL6CT0ZbYzwALdoVsEc4o7zsYNOHXu6jhjsa vFnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ut4hxglr; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53799-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; AJvYcCUuuDCglxoDVU8C7tfszeIGth513HK4e0QvytQGFhrgdMsXsih4MS9YukUucVRXqKTdRJrkvoFdMREf5HLj6aSclKKpOzyd8BDJEz5NYQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q16-20020aa7d450000000b0056011a770f1si280779edr.363.2024.02.05.13.12.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ut4hxglr; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-53799-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53799-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 DDFD01F29563 for ; Mon, 5 Feb 2024 21:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1979C4F616; Mon, 5 Feb 2024 19:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ut4hxglr" 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 367534CB45 for ; Mon, 5 Feb 2024 19:08:00 +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=1707160081; cv=none; b=POrMaz0Dixl4pLCTVY9vH32x3FUH0zB7Kpg9nDwxAN5kSSeD+P6Wxz0wiZewCQ26ROpUvmTzZrqWWZumTy2PuigqjKsIxefbiaYkgjkyVAcUNyJuCswhUEzSvUBGIwQgcs2OtLjLhHT1vTOrsiEdHBeJbZvkw1AcUw8DzgHL3RA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707160081; c=relaxed/simple; bh=ff6AWunrC1YTnVwC7+tydmavyjoH0bOlb1l2ITWKXgo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VgSfEMoCMINmzTI8qGkV7EkWelNwE3ZgiQzTMfv8gDx+Lgw6em91SofyYBE9n6arwGBE8PPVoiDEe7RXI8vD3oEKxT0r+64owI707G5wY/Nc6PMbl0aE23M9SYn13xlZ7jgFSbeneDWVDEGQbvb0xfU+hNo5PTAPOd3rWKyejk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ut4hxglr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DA93C433C7; Mon, 5 Feb 2024 19:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707160080; bh=ff6AWunrC1YTnVwC7+tydmavyjoH0bOlb1l2ITWKXgo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ut4hxglroao+CExPCW5Q/mf/c8Jq7/YBQpk+symifSSsW/FV6gPOIGJffBMJB7cgV KnMTuIP0R38cZleq91e6UYcdpvazaJs6fexAaPKr+AyCfr2CwvMXHlBxQ9bzfZVr5k +7lYka2DjfpG1tiAy9qOpCizAmyu/dELXaj2l/gE= Date: Mon, 5 Feb 2024 19:07:58 +0000 From: Greg Kroah-Hartman To: Vaibhav Gupta Cc: "Ricardo B. Marliere" , Jens Taprogge , industrypack-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipack: make ipack_bus_type const Message-ID: <2024020552-pox-designer-1861@gregkh> References: <20240204-bus_cleanup-ipack-v1-1-aef5e8f84d01@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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 05, 2024 at 03:41:52PM +0100, Vaibhav Gupta wrote: > On Sun, Feb 04, 2024 at 05:00:13PM -0300, Ricardo B. Marliere wrote: > > Now that the driver core can properly handle constant struct bus_type, > > move the ipack_bus_type variable to be a constant structure as well, > > placing it into read-only memory which can not be modified at runtime. > > > > Suggested-by: Greg Kroah-Hartman > > Signed-off-by: Ricardo B. Marliere > > --- > > drivers/ipack/ipack.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/ipack/ipack.c b/drivers/ipack/ipack.c > > index b1471ba016a5..866bf48d803b 100644 > > --- a/drivers/ipack/ipack.c > > +++ b/drivers/ipack/ipack.c > > @@ -187,7 +187,7 @@ static struct attribute *ipack_attrs[] = { > > }; > > ATTRIBUTE_GROUPS(ipack); > > > > -static struct bus_type ipack_bus_type = { > > +static const struct bus_type ipack_bus_type = { > > .name = "ipack", > > .probe = ipack_bus_probe, > > .match = ipack_bus_match, > > > > --- > > base-commit: 41b9fb381a486360b2daaec0c7480f8e3ff72bc7 > > change-id: 20240204-bus_cleanup-ipack-7e502021db1f > > > > Best regards, > > -- > > Ricardo B. Marliere > > > > Hello Ricardo, > > Thank you for your patch. > > Acked-by: Vaibhav Gupta > > Greg, would you please add it to your misc tree. Will do, thanks! greg k-h