Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2038010rdb; Sun, 4 Feb 2024 11:59:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHTN8Twtp56+3NWe4bl1YpJPnGjQBg96DKO916yXOle3IHmOrBr8HPRQAZak9EcBxd2y2Y X-Received: by 2002:a05:622a:1a1f:b0:42c:b61:ad27 with SMTP id f31-20020a05622a1a1f00b0042c0b61ad27mr6277237qtb.44.1707076796284; Sun, 04 Feb 2024 11:59:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707076796; cv=pass; d=google.com; s=arc-20160816; b=siig3AXPuBbWEqxkq+gFivzsxPlLK83JA/UWyRQQ9X3YlAfmQL97lqs7WkjLubESvB vPJzzC602bU2ystPwSv4saHCotnhkmiNbAXP5UqwZSMwB0E6+OwAGitNS1Knz+FAQ9hF +VmdYb9LCyYiG/cbNTYBV4+Fz0bkOEXuwIy6ZfcEez0YCWwPiOVeLrocYmFQ0zKBBTUF wncaWM+62Fi9S/kJe4XlMjgmBAcNN4Vd3MVkGU7nPn1DzS60XNAHVRuxdU1g7/IqXOj1 ukjoLtamSYfYJvDv28jpBMzy7hQr/e+KFu2thftjuyWT510wsGWJ/mbrIXhiN6cPl2IJ JXzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :dkim-signature:from; bh=K8BTH4uSJK5VLlyRZp4zK2rdV7F6EDvysDCPB0/W6F8=; fh=fTyf7K+aiCq46D9JxnGY66FKcahccj4qsxHzMr3Tuoo=; b=x8yzprnlBGhapKwSjV5QBRW6jEe/pt8y1u1F/NQaLRufVKP0LBuRN8t6qS7sW1IkEs 7UWVSUkEFN4DvfZ+4YtxCCWJC5FsfaolsAi+CqH3XZe9GOc6np1pQo8YzridznHxj9Ac hJlUMBFjaQKnCUley37GBnI5PooGL8Fxab9Dqyo7G6h50lFpPZUJrcp4TYhv8QB7r9Qp JuNcrGTSCrnESoAbWgk7ohxkS7wM35jp1klaxFGx2quJdODIFhG8iJjAchv6bBWPW0XX T1ChsZ5oEr8+7cNCXojgW3xZEJmBKY3hD0/5xrARvnO9vNWbh8rrJoTGyF0eIU4Koqn1 To4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=B5zKljTb; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51866-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXkVwpUrIwLaUI4JpCqH1uvLl18MdHN3zV6q31hdym4+/oEi9QFS/DJlN0J1QzxTCnr0vzhX9kKi5zwJQK3Q6HP/U+X1yobd/WVv8KWxQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s17-20020a05622a019100b0042c0b236fdfsi4806429qtw.298.2024.02.04.11.59.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 11:59:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b=B5zKljTb; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-51866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51866-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 104FA1C21296 for ; Sun, 4 Feb 2024 19:59:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5624925564; Sun, 4 Feb 2024 19:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=marliere.net header.i=@marliere.net header.b="B5zKljTb" Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 0F7E425542 for ; Sun, 4 Feb 2024 19:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707076789; cv=none; b=iIhWLld8RxqcnLUDyK3R3EPxJj1zfTIdbZK8ODg+7YFJbUMiKSLIcWT1whja0G7ij0rCQ+Y/vIoDRoPAp9jneXFPgsxZWaAYggALsvFXsfuFBfm1w64F058a+0alh4dN4XBnfvndRIo52n4XvRGNKWOeNjPwcOY3xEk7DfkUsy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707076789; c=relaxed/simple; bh=kiJZm4wcXa1B+I5trmXEIwmSwZMiWeOAqzJ4LvYhcHA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=eg1zYy1yXash/cSEG+yliYQNQJxWVZv+/TTg6IyQ8tOOW7+GYdMc+ajibCmPCdbCSNCgOOXn0VABqszqrVuHNVSQmGtA41wUlFhgxT3UhxV/ylKKTdrhiPI21kVR3gLbuaBqD7xFk2SGN2pAMxEv38qeULCro0lgLAHZoVIVuUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=fail (0-bit key) header.d=marliere.net header.i=@marliere.net header.b=B5zKljTb reason="key not found in DNS"; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5d4a1e66750so2914666a12.0 for ; Sun, 04 Feb 2024 11:59:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707076787; x=1707681587; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:dkim-signature:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=K8BTH4uSJK5VLlyRZp4zK2rdV7F6EDvysDCPB0/W6F8=; b=YeE9jgMWyz5FT8DF+BytqIAOtFhQ/MgX1RSyHhGJg/ZF4GglExZZWY6ljZyG93TWzn FnK2PJDpj6HyJqr5+JNzThPiLCZ8DXQHni6xY2cd1nbLugxG1K7gvOogrbgipEaIWvk0 NUrlv6DXxFuZy7IZFvD8jgFHVU+qTyj1ag5yC+F5f02CQjWmIphUH4BrZo6QJO4hG4JY iTmEybESxbRVBKGsG+OQcw+OqxQcmYtVl0p74YfvJiBQglBSzPXBh7qL7eJxM3Xoq7Sl +nwQA8O2Ob6LRBXTV6HkOiEtQIGlrUPN8xYAbIMEfrGp3cNNy35GziGraNL+dd70awuF yG7g== X-Gm-Message-State: AOJu0Yzmrt3K7hKDLTQAjfO5om5KElgF+SpMEj9s8siIoZWobX1mIm/W 2kIMVH/rVaQ/COjv/eTvhJc4jHWbN3ZByLTwqGz6h+7i7yGVbpGm X-Received: by 2002:a05:6a20:9f4e:b0:19e:3a9f:f925 with SMTP id ml14-20020a056a209f4e00b0019e3a9ff925mr12258679pzb.14.1707076787267; Sun, 04 Feb 2024 11:59:47 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV9DXBuCEsYM69/54OIWpGogSc3OiEmq+wKJ8seEr2VcT3lx0sYo4kUB1OzE9yerX6YrAg0WE6w4XHOMRLsgwwfJNYXLbApIMUUhsYQ1Seh9TaqOr1UXXSojuGXBDHO/+3i7sw7UhBzQU9U7s+GHYScj3OBmM+Mgf2xRZKX/ZJDGg2uzrI= Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id j13-20020a170902c3cd00b001d9a422e0c0sm1340567plj.20.2024.02.04.11.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 11:59:46 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1707076785; 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: content-transfer-encoding:content-transfer-encoding; bh=K8BTH4uSJK5VLlyRZp4zK2rdV7F6EDvysDCPB0/W6F8=; b=B5zKljTbZF2EZB3O4wjQTtkTaMss+5/vc503yu0sRf7uMw2uXJeR8BAc/kOqzutAAykQ0v 8n1F7ExiO09AwW9cwel6PTjgfYmYByJWIQv9QdicAHNdJJBnV2k5m5wkJ8kuKCaSoISabL 6vmYpegiKfwkoMMkEIaz3QY7OEcS91Oc4PWgPIyIliwMKB9AWZ8vsLlIf2RsfC7tKLjjOF HQejNwElMeT/bgNsjdfdCLAL1d3KlVxhlw7U7jEL4qU4BDvCYnxFOKBhwpOcOXrlU8rNsP 7wX6LVasUhbH4D5EDE4nAMHhaxEyFQHrmSauVrUw+DGchgWlOy6paNDfiypGyg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 04 Feb 2024 17:00:13 -0300 Subject: [PATCH] ipack: make ipack_bus_type const 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240204-bus_cleanup-ipack-v1-1-aef5e8f84d01@marliere.net> X-B4-Tracking: v=1; b=H4sIAMzsv2UC/x2MWwqAIBAArxL7naBiBF0lInystRQmShGId0/6H IaZAhkTYYapK5DwoUxXaCD6Duyuw4aMXGOQXCouuWLmzqs9UYc7MoraHmzEoRkpnBEeWhcTenr /57zU+gHEPjmeYwAAAA== To: Vaibhav Gupta , Jens Taprogge , Greg Kroah-Hartman Cc: industrypack-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1047; i=ricardo@marliere.net; h=from:subject:message-id; bh=kiJZm4wcXa1B+I5trmXEIwmSwZMiWeOAqzJ4LvYhcHA=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlv+zPU3u2VSdljkQv1wkG1xVdFooTEbCkut9gw QrGXMxbjiGJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZb/szwAKCRDJC4p8Y4ZY pqrQD/9plIEwfL5aEv+ZyBjh6nQwoXcClbBkiXrdoFuN2ZfCzqBG0qaNmO0EWbawtI9tJel8O1Z NJOyDAPVq3gDquiU+RLCVWPpFFt3QNz+XcS8eMifKCYnOCaFdueKFyAIdaoqu0F5Veux0W5QbMb +3XYKtajyROvKeiLjC5RLwqx4gXShbibRgEqf7p/BGyI5RSofF2puL3fhPm1rK5W0F12bhssB9G f8GSofOo/6SMfORoZNujfUAAu8fHgHe4mNaI3tpiTekNC3ZjkxmHLm7OR/9pflFohm1G4WrSzNe GV2HmcT5WimTwbX05s75trowCw1afG2lkBDcFD/7JYsRw2B/Vu3IcT/++Umcwqmsn5PhtbDP7Ps me47hG2eLOQ0aLvIZhSgnRtnEpAMXIccQlTCn+YwIIPUXyPak8Bj0rniBHZOgDwkTYy+E4AOuMa nitWaRVjl4V65KXZ+l+/QhmOf2Qn+9K7Z1e/Ji9crVNCFxDobpubAjm7EVqtpkvekiXRnScO5hm PyZ4DtOCUM8VjDLy5xmBrwpDp/cmDeVLTGHi3PVvXTV96DnbgegyxNoDwXEolpCV0YlxS7mloJn 6ZZLBMxRdTnAdD1IAVial2npqeCMQH5Ee+fdPM2wRnDMH2UCTVrpDqzqDGhXrnX3O9XdE64GHBL Lt2Mf7WvnS375MA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 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