Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2541858rdb; Mon, 5 Feb 2024 09:33:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjEOLB41Xs6j7J8K44h9ChQsZvweN/PnZfWxjXdAbrdqKItXnOPNDldhDjQDZ52FsMAv8n X-Received: by 2002:a05:6808:1301:b0:3be:3093:2c7c with SMTP id y1-20020a056808130100b003be30932c7cmr443289oiv.40.1707154433356; Mon, 05 Feb 2024 09:33:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707154433; cv=pass; d=google.com; s=arc-20160816; b=OHqPjjmJWnUenUmL9TahlqDHzQ61XFPvXpVAMmECtTmyCyEaTTkSdmAp8DdPw3lOL0 0wwYKMZW9EU/3fstiGAtZ2V7m8bpRy2cGhTRW+2pIHvnTONpJM7yNfUlUWTYmxVY9lMb KrR8gKeNVd/Bd8Lx00EZt7Rv2eHLSW7u1yTOouTHIM2huHkcPNbCBxnFMlUm6Ees4hxe gX0BoTG+6ncjvk/kdoyjGgKuYlYUK3DTzfiQthzyDOw1iMEd36A+iBlN4L55G0bfsIBm uiydrU76ywkX/FqGGpazUvSOEkW0p9/7OQlwwq6qaOiJFIqBpRP2u8NkAyRKUIt1V7GG EFbQ== 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:dkim-signature:date; bh=ElUJ3bFANKcGSpc8Ks9F6N98y85nfwFifeRegxpzAFA=; fh=onQx/6Bhpy5XsNa98C25EoEi6YC3RU2wwpL8GHwD2us=; b=tXGiZap+xld+yMvTFgKTV/NboEoff3J1pStg0JFmM6UMM2JwEvMsbKXkae50iKjtmf qx5TrWguB+TvfEZXXNUkiIl9YAqQrTIv5WnQLExBxnwziPsY+459LAYimNztweX8dKWu +Olladl58J7G/lZQFn2YI66Dk8zTJDdo9bqDf4nEOUmiHGBSzKoLi9W+K1HMihRbAmdw YgeKyxYxQ/DxpiX2nrnW5JJ6l6He/5AAFjIidSV+5HtWxZWB+Y0VZiMhdLbqSxlh1bPZ ZhxzKz7pGjEuijSg1MXZpknlfKf/1ex3lKduXd4O9zKMkDkf0R9rwnXMzFtYoWF3zHEp xJUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b="O/hSThXo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-53111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=1; AJvYcCXB+e04fmDadQ8NBLaY7VPiOGPQ0DPfIE1cFAqlQnoTNZy0TJCz2xQ3lOamxy6iMxKqPXVBSYIXB7vPw/Gw5/b0i+hguWqUmmOlOYWZ4g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d4-20020a05622a100400b0042a4a23643bsi304060qte.794.2024.02.05.09.33.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:33:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b="O/hSThXo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-53111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net 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 1DF571C213CC for ; Mon, 5 Feb 2024 17:33:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2023544C7E; Mon, 5 Feb 2024 17:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="O/hSThXo" Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 AAEF744C67; Mon, 5 Feb 2024 17:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707154425; cv=none; b=jt4Hwc+2k1+/HrNgpQ3//WYJQA3TVjBPYGEzQ0LUBVPg5KYFsGl1wICirKXoNtt18N5v+vM2OR8NigxbeEw67UHexski/JtLBxZbFO2JjbY/Te26H2V1E80ltijfsfOlERHojOQe8r3kvORSIvlAbjjIOtvPhABjz2FPBP+pOZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707154425; c=relaxed/simple; bh=6KbzWkkF1SDEdyAjsG6dXdz3BrQZmGWLPdcrJqk38Pg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FRFg3f3bC5GMRT+7R9eQgu4ksGidBd8O6QgKRF/tGo5OTM38xyGpJid8cQEDGPEoXHpdFmZkcx46vdYaqF/pPJP5Ufs76ToT5ictbMcYVUX0Nr0Cj42GHk5OPVdc9+sP0kWevEgTw0ugl6zI2H8JqJD+AilE3sl3UVECzpjwigI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=O/hSThXo; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-5cfd95130c6so3159163a12.1; Mon, 05 Feb 2024 09:33:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707154423; x=1707759223; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:dkim-signature:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ElUJ3bFANKcGSpc8Ks9F6N98y85nfwFifeRegxpzAFA=; b=M74dp5yANnEGISbT0+pg8gYnp/Hv42SrPs4im0krsS+6s1DZuPbVB5q8zTPZ4RmTfz mPSddhDx1AD48NFq0qwnMMvQdgSkqK7hpSLt7VTiTtws1Dwxm0NTtuJpbWDXgHZ3fTn9 qejwApA09PTdSQM7OO9Zek/WcMNY+tu/U/VB3CkGxRb23UWbMIVVfqQgp+hrKySHaf1i ObdxBIsxyoXQwFMm3CTUas9DdvbpNnL4dYzISksKqk/4lkV1hOMa9kDb6btN904R0NKC tdEJk4ANGIXHvLPIOZFvc7Q/wO0GJ/UF4z3CWz5PHfLd6GRoXgHCzca76IuuYu33dfrz 0cIA== X-Gm-Message-State: AOJu0Yzk/Y6SioF8H4CeGezRkJoId7oShwjrtHrUS4do4PxE+MRco1DM Da5lyO67LGWNmvVgcwEGYSr+UaBfFN1cQzC/ogbDrbCFFOUr/4NU X-Received: by 2002:a17:903:40c1:b0:1d9:3843:3f07 with SMTP id t1-20020a17090340c100b001d938433f07mr223495pld.61.1707154422854; Mon, 05 Feb 2024 09:33:42 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWnNMQnvG5mDgs0H3SN6PW5gUa00uEW+JZOiih/iG7WgRLvJv6uEuVbdmRlQX7v0Yw+TxkzH4qUisncO9HWV8Jayxt9/eNEoAxHfA9M69EWcxqn5CTOZyJ0RXcgIAGApyVFyYd9MjlWq593++VjGEnkHxchzlyn5M0H9ypKVfscNRfYeNy3zFZPFNiQ1I01iBivsENHQMlaTvZhbf3smtEpM3RAH1K+rC7/tA0BIITd9Pe1gNyDiFLGHAtQz2lQcKbOo6pd24y0 Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id e18-20020aa79812000000b006e046a325a4sm103109pfl.7.2024.02.05.09.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:33:42 -0800 (PST) Date: Mon, 5 Feb 2024 14:34:12 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707154421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ElUJ3bFANKcGSpc8Ks9F6N98y85nfwFifeRegxpzAFA=; b=O/hSThXogFDYMXAusvstp+yAm5cg8I09Hef199UMvk9dxtn4ZnNOanop4H9lYaOuCEtjnO fLgTpoFP+jrOyYYkPE+CrJyE7XevvpFh3IrG4O+26NXmNxj8Ccht1Y6NlfWK7YzyV7LAaZ teIg4AOksSYLGrMvo3VbsGh1ZcCVvahS4FCm0nPk67h2S8+zFVPOGswHojHMWmhgyEFmy9 4uj+X0/DohbUW+7kH2EMZe/Vpy/SKXYUfIORkA6s+Ue/b6OpIyKyqbsRFDvYw2jw6U79HW /khwGkZTOW1CDe1y7DLAJ8ZmHqAVebrGVxXpIRhS29gGjfM9W/6oVz0b5xe/1g== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net From: "Ricardo B. Marliere" To: Michael Kelley Cc: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman Subject: Re: [PATCH] hv: vmbus: make hv_bus const Message-ID: References: <20240204-bus_cleanup-hv-v1-1-521bd4140673@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: Hi Michael, On 5 Feb 16:40, Michael Kelley wrote: > From: Ricardo B. Marliere Sent: Sunday, February 4, 2024 8:38 AM > > > > NIT: For consistency, we try to use "Drivers: hv: vmbus:" as the prefix on the > Subject line for patches to vmbus_drv.c. Thanks for the feedback, I'll keep that in mind in the future. I looked into a few commits using `git blame` and 'hv: ' seemed to be sufficient. All the best, - Ricardo. > > Otherwise, > > Reviewed-by: Michael Kelley > > > Now that the driver core can properly handle constant struct bus_type, > > move the hv_bus 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 > > --- > > drivers/hv/vmbus_drv.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > > index edbb38f6956b..c4e6d9f1b510 100644 > > --- a/drivers/hv/vmbus_drv.c > > +++ b/drivers/hv/vmbus_drv.c > > @@ -988,7 +988,7 @@ static const struct dev_pm_ops vmbus_pm = { > > }; > > > > /* The one and only one */ > > -static struct bus_type hv_bus = { > > +static const struct bus_type hv_bus = { > > .name = "vmbus", > > .match = vmbus_match, > > .shutdown = vmbus_shutdown, > > > > --- > > base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 > > change-id: 20240204-bus_cleanup-hv-2ca8a4603ebc > > > > Best regards, > > -- > > Ricardo B. Marliere > > >