Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2930284rdb; Tue, 6 Feb 2024 01:58:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFumtJJHF9n4jPW4dgVmBvxcR9fC8IwgxGzr4VFuqT/1suQzbbDuaVTiiq6WWQw2G+P3XZt X-Received: by 2002:a17:906:3b93:b0:a36:86be:aa76 with SMTP id u19-20020a1709063b9300b00a3686beaa76mr2196981ejf.15.1707213534713; Tue, 06 Feb 2024 01:58:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707213534; cv=pass; d=google.com; s=arc-20160816; b=CqU/OR2jhWsmNBWaOsCcERXsSh8hCC2GQjvfcPn2bJ7u+ofGnGEcbaCHqJfrgdgHjy 0O7XPIxQWmbePV/xM6fQHTkMSCa9AGqtn41+gBx5HxD+1x4hILw1A2lmXkTpHf0HUjCk ye0TmwNHCQen9wRlqDnBNcm2fB4aHudPZG1jmlJ3tfvOE5VKcn9BTeJWpE0kYbr+Omlc +bud95iY4X5AbLMwBhZew+NZeu9GX1GCnJ8d3WEvw7gU0kjDJh01SiAt4epH8oUt0ds0 7Fkw+3VpH4zRDRgVysjRnoh8KoE5JveGB0E40sX+fui6tYyY5J93L7Z+BKVx0X+M91Ya mFKg== 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=F9dbUUxMOgh2nM0RvfBIm4ZqHWLNcHCSvbTJxtSarxk=; fh=TRkRSYoDPBv6MMaVQptFDy+g8DJ+U8SpXFvPeaoNdKE=; b=cTaogXDAwxGu8TX6NbKU8XOupzOEjauixDda1M5IYaFqd7CV+4lb5QVRA0yLoSa5Oe dPzGLOyuRz4zOtushRYvQzoU4rfxAwWb0iPiPEmH7pFB0W38fGxZd6a8oqiBxXI1msKw vA2ji8Zz5IYqMIQK9t48UEmuCe5Vxlot6Gchn53jgSblEC8rSBNZHoB1VdOxgA/oymou hS87dGsB8VKjDjrNqE/ejDADHIOGJaW2w/QqV/AwkSaiy8Uc5IYeSrV9p7O//6oNIm+A kRO3HrNSlpNT3OEY4+Cg8tTHod1YsN2eMZ8kWYnROc7IuVhRcosPRVBQPkKRYkgMeB6N hn/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kkyj0Nmt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54627-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; AJvYcCVFWtt9hq9s7obKG2O0pjEwC5tJeadKF9atiQmZlW93o6F/EV13EUsVpMopwpBBRPVSJfQpz2rXSlHTddSWFUpw0twVxhGnmKwi9zOLqw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s13-20020a170906354d00b00a382f95e8cdsi392976eja.616.2024.02.06.01.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:58:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54627-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=@kernel.org header.s=k20201202 header.b=Kkyj0Nmt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54627-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54627-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 76F9C1F24301 for ; Tue, 6 Feb 2024 09:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADF9C12D777; Tue, 6 Feb 2024 09:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kkyj0Nmt" 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 D660212D75F; Tue, 6 Feb 2024 09:58:45 +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=1707213525; cv=none; b=jxAYmqVeoecSkL3iq9msKeywUqfWZ8+OE18K0DA3PcVjWuRNMvumThP3O2KLea+yagOej//3xzhGrDbZTToU8WdSxenAF+1BMSdesdpS3FLw0fvRPGFo7E3OaO40g38jz0PA3rEjXTAU2MRJfo3a6TIK4KHDBK7TxamyuCD1N/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707213525; c=relaxed/simple; bh=KIw9pkwtzkhaYD3K7hUNGz3stRQS87xMY9nZNhbOoZI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jdmoW5nNo8x92jQO/OnVybcWyeOuRSM3w3Mn2bfEMDCaIvJWGUasj74Yxkim/UiloPOaPOVqzAyr+ZdpxnXuKwzoe6Inb8oxqWOuOZGBiLkPPXz9UoiBr/YUbLwVLDhTqgKeSckZVi/UYlVTUzLxP+07aP9WctigrWC5PyqAY2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kkyj0Nmt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB6CDC433F1; Tue, 6 Feb 2024 09:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707213525; bh=KIw9pkwtzkhaYD3K7hUNGz3stRQS87xMY9nZNhbOoZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kkyj0Nmtn5Vq9L1QSAB8+ysOyWl8xHDC/o6ySNtFlntKlNnSKHzlR/ekfHAbnlQ4D Y2GkK3MqW//zdj9DGqyGVd4SJp2INPWmQW+Om9xgb3291nR5D2w6KHbt4xTXRMAYCA BtSEolJQ6BGHl6EvvLR+t8Ni6WfBquO6jBOsTaGUx+kCAAr7WT8/WWThrCh4zdAdcE +OwIqwlI0KxT7cSZesx5AKouDp5lx8EVsrDv0U+AG8gNWSsjFJgFXqon3aiQuuipRv MQYowdIRiwhHlxm0hsGlnmbNP5/EhsFApmavZNr/aQeGbt97v/gFjMio4Z97+DwvP8 msOrTreFrUX/w== Date: Tue, 6 Feb 2024 10:58:38 +0100 From: Niklas Cassel To: "Ricardo B. Marliere" Cc: Damien Le Moal , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] ata: pata_parport: make pata_parport_bus_type const Message-ID: References: <20240204-bus_cleanup-ata-v1-1-2bdc1fadf356@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: <20240204-bus_cleanup-ata-v1-1-2bdc1fadf356@marliere.net> On Sun, Feb 04, 2024 at 12:23:29PM -0300, Ricardo B. Marliere wrote: > Now that the driver core can properly handle constant struct bus_type, > move the pata_parport_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 > --- > drivers/ata/pata_parport/pata_parport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ata/pata_parport/pata_parport.c b/drivers/ata/pata_parport/pata_parport.c > index a7adfdcb5e27..9a2cb9ca9d1d 100644 > --- a/drivers/ata/pata_parport/pata_parport.c > +++ b/drivers/ata/pata_parport/pata_parport.c > @@ -464,7 +464,7 @@ static void pata_parport_bus_release(struct device *dev) > /* nothing to do here but required to avoid warning on device removal */ > } > > -static struct bus_type pata_parport_bus_type = { > +static const struct bus_type pata_parport_bus_type = { > .name = DRV_NAME, > }; > > > --- > base-commit: c8474c7273ac3bad718c33118aa82efb7b374f6e > change-id: 20240204-bus_cleanup-ata-bd1625fdab09 > > Best regards, > -- > Ricardo B. Marliere > Applied: https://git.kernel.org/pub/scm/linux/kernel/git/libata/linux.git/log/?h=for-6.9