Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2675828lqt; Mon, 22 Apr 2024 19:41:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKp+MCdHaizRSPlgvjl3x2LyOxJJAGX0sBOg5c86mGcRh3HvjoJt2q3WIT1r2xNSzxfbbUIi0jBNjYdgQE9Xq2gtLyYhZ9rXED9skqNw== X-Google-Smtp-Source: AGHT+IH1jNZZTSrH5tjS4/dkrLsr/PSRgntVDL12E+BlQKUuOfWA+vwsyTDVRCMkOZpwKG1PBJ7D X-Received: by 2002:a05:6808:418d:b0:3c5:fc44:643d with SMTP id dj13-20020a056808418d00b003c5fc44643dmr12684129oib.54.1713840114489; Mon, 22 Apr 2024 19:41:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713840114; cv=pass; d=google.com; s=arc-20160816; b=vU9D9gGCIdMbKANYY3zmZD9D/VXmDPOXGqOl8fziRDBr0zMeM9UIiedV8mC7U8zdex 0+3yWbCf1I/q8qKCibrAf2LgOEiyoTtwmFaYfMojtsnRJeAh+158aNsZ9/pxXICSBRUO jP7KzTKBywHGK1yafoYWl2M/wV3esuqAWNrx/7OjYrVVaivEBB+Sj9Yn4zqDir/0K5gu LUDKqB3trpSoJY+Jgy0fYvZ8TVVjYK/sJQkf8fkXHkym8pcPlbwlx/Br5Y32gyiE/W9t GTo1lTh6CbLx13gbFJ5xD/TItfpnp+aq9beANW10v9dP5Vb82Ya82fz1XdCH159Wgt0g ZpcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=5DRcdnLCZVLXK+lPsMvNnVksA+Qaql3JC1DO/oRFgkc=; fh=CzGi4unZEjtW21yU4BRQxgOh89ih65UUeC7r2JMOKH4=; b=nR3qpRQQj9K3vyBGKXkBZd+xwRP78Dz5XR5LhcqLBppvQZ7qR2z5tFtk96XQM8tREN HIpzewfWG3WIz1h8jTUffti8DxhtxgLoIyXVwGB702s8ZBYQdW8k22UJe0E0UqqNUjnu b1By7oGFr6D6GJl09/8RJpR3XCu297xPCZEkydKwU7boEOGc3dNZMQgYN8YNiHNOzNj3 0ZLAoFpUqGHJTo9LG11gE84RPdlffFtXJ87R60zMcyKgWXFmxA49ERJR1y5NwUWNVaQj 5r9+ezjEWzPsJVwpt1BAxolhQY7ZwAMr03XfefJ9NURj3hI5iN0DPXxI5QAxv7R2FygK vbeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-154431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154431-linux.lists.archive=gmail.com@vger.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 i184-20020a6387c1000000b005f80094c5bfsi6652419pge.651.2024.04.22.19.41.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 19:41:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154431-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; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-154431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154431-linux.lists.archive=gmail.com@vger.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 1CB03283DC1 for ; Tue, 23 Apr 2024 02:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84A5718032; Tue, 23 Apr 2024 02:41:47 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 DE015E574 for ; Tue, 23 Apr 2024 02:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713840107; cv=none; b=abre2z8novOCmRd1OuDySsiR1ocVjwCo400r3TcOmRtwZ8U35nrexFEGaHnaW7tAQGAGoFZMktJmkBGEsmnameX/hUTbTzp3MBXw7Cl79lKeZpaUMVhoZlCHuQcj8fMB6zB0DEpYece/Gj4bAL6Nb9VJ1FIa7to2t8BmhV4N58I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713840107; c=relaxed/simple; bh=fKs0jIXa3gnFBSsBMylG2iyXyslYb90wPx+biLJKdZU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NYPCtvZFNrSZupIPK+YmUo4wCSWet0M2ito4eg1HajsU4qOWlTbaMe6vRyH4SouciVZsLWfedfQjro5x79xn/SIPfj5nwbLlCQ1CXHXabIkhWWR4QXaILXLa02pykwMNCGhwSnxDcDjm6cVh9oCPp/SjuXT6G219MmAzh4gmNT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 014bff9c011b11ef9305a59a3cc225df-20240423 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:3a5cc699-663c-4e05-b581-0cc67a517d84,IP:20, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:1,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:16 X-CID-INFO: VERSION:1.1.37,REQID:3a5cc699-663c-4e05-b581-0cc67a517d84,IP:20,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:1,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:16 X-CID-META: VersionHash:6f543d0,CLOUDID:a9e36e9d920fcd1a80fba757d9883cc3,BulkI D:240423104139GMGK0LEM,BulkQuantity:0,Recheck:0,SF:19|43|74|66|38|24|72|10 2,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC: nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 014bff9c011b11ef9305a59a3cc225df-20240423 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA) with ESMTP id 1491849440; Tue, 23 Apr 2024 10:41:36 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id A770EE000EB9; Tue, 23 Apr 2024 10:41:36 +0800 (CST) X-ns-mid: postfix-66271FE0-474456508 Received: from kernel.. (unknown [10.42.12.206]) by mail.kylinos.cn (NSMail) with ESMTPA id E1444E000EB9; Tue, 23 Apr 2024 10:41:34 +0800 (CST) From: Kunwu Chan To: tomas.winkler@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org, kunwu.chan@hotmail.com Cc: linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] mei: bus: constify the struct mei_cl_bus_type usage Date: Tue, 23 Apr 2024 10:41:33 +0800 Message-Id: <20240423024133.1890455-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Now that the driver core can properly handle constant struct bus_type, move the mei_cl_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Signed-off-by: Kunwu Chan --- drivers/misc/mei/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index f9bcff197615..99393f610cdf 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -1327,7 +1327,7 @@ static int mei_cl_device_uevent(const struct device= *dev, struct kobj_uevent_env return 0; } =20 -static struct bus_type mei_cl_bus_type =3D { +static const struct bus_type mei_cl_bus_type =3D { .name =3D "mei", .dev_groups =3D mei_cldev_groups, .match =3D mei_cl_device_match, --=20 2.40.1