Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp341520rdd; Tue, 9 Jan 2024 06:03:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHggVHkLrZA/pZJA8zEjm1ENKAOczmfsVg9CbH4yMZ7I1TL4Y7dIFM/7vlQGoo4M89VVRx3 X-Received: by 2002:a17:902:fc50:b0:1d4:60b1:27af with SMTP id me16-20020a170902fc5000b001d460b127afmr3803374plb.97.1704808988008; Tue, 09 Jan 2024 06:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704808987; cv=none; d=google.com; s=arc-20160816; b=YeNXZ2/Y2gw2fXPNO8EgPQlJS0e8/nlMGew07hM6sJdHDgZOSswJNFokVMz/hJhsvS d1LKhryeELzQwQSYycQV3al5Xe4McJCOWHsSDr9i5mxGuHbmt5wG1Hrf6Ntx4xCzVHr9 E9AKwS+Vcho3YZN2Lgd6x3wVksGio6p3W/rOjgxJnw47ciKfpp7nGrCa9fVgNADSSD0L y7j0MzSqfNI4nKoo0c6QC7aM+KAVbSdy7lKj/oUs91x1zATrLa+EmybERHormKk9vBRa oP4FGzLfdM/ubDieIt/91TMILSeNGAiKONq2jYDZ6Yxk2o2tfET/47SFoOaBcU6NK1L/ v28w== ARC-Message-Signature: i=1; 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=O4g/qLgJTtLnx4Mwhlep4ev2Jw4DB5X4OpGt8/1y0G4=; fh=6AzjRJD7dtAsbEQzMbVZLo0zs+Pw5KE6Jutcpg8VZF4=; b=IZw4rFIpkCamTi/rtiDfPtV+R8QPmjlCt9sv0TjA4B5mAwlJQqBnLMPjyz+ypU/+Qi oysxFF2dV3CwyrJr7IEurn7uF1bM1R+uLaHNQ1hl8GqjmSJV9LkfiOCIz9OUkQe8NpwF msmg8Cwx9TnH9GeH4M7HXAbBDbFI9nhSaW5xehcFfK+vNjFAaWQUylSHwbMYFccyELd1 5ufKE3Rgo+1ekCEB0mbHLDFotaaIcEoup9OacmVJnG9hpxqJraryogy4rgDB6kQaLGeG 3Ly321NoCPtggF5j/XA6/+INoTB1YoLAh6smKdbQr4pkL9q4P0lxecQwElrcWoOPeG8A AEhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u8-20020a170902b28800b001d38d9dee98si1525998plr.573.2024.01.09.06.03.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 06:03:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20935-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 33C7C286AFF for ; Tue, 9 Jan 2024 14:01:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CC2A3987C; Tue, 9 Jan 2024 14:01:32 +0000 (UTC) Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (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 9648439843; Tue, 9 Jan 2024 14:01:30 +0000 (UTC) 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-oo1-f41.google.com with SMTP id 006d021491bc7-594363b4783so80722eaf.1; Tue, 09 Jan 2024 06:01:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704808890; x=1705413690; 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=O4g/qLgJTtLnx4Mwhlep4ev2Jw4DB5X4OpGt8/1y0G4=; b=Q2KVGp2ZpH3ifHw23PFc1Y4+DALCkcG9sa7WdizcV8t+l0HWQSBXx4ESLpyb9v2tNT zLt8sixGGTDO8rUpBJjb0mz4Y5MoCnxOW2bN9AOML+x3j3ktLqKpR1tzoXYyQTsGhhnN xFDHB/Sf3iHD2WSpPOaVIa4bKWGQZarN1hUDgFZIzVEEZUPVulBhJs7zmMXpM6BI4824 ra2w6tsUiR5CSGEHM1BmtSyq1YLKNV70vwrYut+7Owcn056WXbBcHuK1qpwXO0c2Mwxm MUvBps1BtN7xTHoaaz9MHhU7VPbS8bjD/rIo4AKupgGvfX17bU6T1y5dpiF+8xdr5wsM /xBA== X-Gm-Message-State: AOJu0YxCJ+lV626DPNhsviksnrFhunQaBfzSAfejBT/oZDWKUG12a24d 4sizai12bXx7H4c29sHlZp74W6P4laBEsHcq2Ws= X-Received: by 2002:a05:6820:d0a:b0:598:8d98:286d with SMTP id ej10-20020a0568200d0a00b005988d98286dmr325959oob.0.1704808889513; Tue, 09 Jan 2024 06:01:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <2024010520-joyfully-cosigner-c2a9@gregkh> In-Reply-To: <2024010520-joyfully-cosigner-c2a9@gregkh> From: "Rafael J. Wysocki" Date: Tue, 9 Jan 2024 15:01:17 +0100 Message-ID: Subject: Re: [PATCH] PNP: make pnp_bus_type const To: Greg Kroah-Hartman Cc: rafael.j.wysocki@intel.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 5, 2024 at 1:51=E2=80=AFPM Greg Kroah-Hartman wrote: > > Now that the driver core can properly handle constant struct bus_type, > move the pnp_bus_type variable to be a constant structure as well, > placing it into read-only memory which can not be modified at runtime. > > Cc: "Rafael J. Wysocki" > Cc: linux-acpi@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman > --- > drivers/pnp/driver.c | 2 +- > include/linux/pnp.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pnp/driver.c b/drivers/pnp/driver.c > index 46c534f6b1c9..0a5d0d8befa8 100644 > --- a/drivers/pnp/driver.c > +++ b/drivers/pnp/driver.c > @@ -256,7 +256,7 @@ static const struct dev_pm_ops pnp_bus_dev_pm_ops =3D= { > .restore =3D pnp_bus_resume, > }; > > -struct bus_type pnp_bus_type =3D { > +const struct bus_type pnp_bus_type =3D { > .name =3D "pnp", > .match =3D pnp_bus_match, > .probe =3D pnp_device_probe, > diff --git a/include/linux/pnp.h b/include/linux/pnp.h > index 267fb8a4fb6e..ddbe7c3ca4ce 100644 > --- a/include/linux/pnp.h > +++ b/include/linux/pnp.h > @@ -435,7 +435,7 @@ struct pnp_protocol { > #define protocol_for_each_dev(protocol, dev) \ > list_for_each_entry(dev, &(protocol)->devices, protocol_list) > > -extern struct bus_type pnp_bus_type; > +extern const struct bus_type pnp_bus_type; > > #if defined(CONFIG_PNP) > > -- Applied as 6.8-rc1 material, thanks!