Message ID | 167698819179.387.6141249909545840649.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp29699wrd; Tue, 21 Feb 2023 06:12:15 -0800 (PST) X-Google-Smtp-Source: AK7set+5Uz8L6j/BXTqVyizZnoMlifSVSu8m22DqJ+XwAhZOxDr8zb/IzMIFbaMVrmWNXkjLx+z0 X-Received: by 2002:a05:6a00:1786:b0:5a9:d0e6:6a85 with SMTP id s6-20020a056a00178600b005a9d0e66a85mr5524705pfg.7.1676988735243; Tue, 21 Feb 2023 06:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676988735; cv=none; d=google.com; s=arc-20160816; b=r91xdUIcGH8dy2YGK3u23WV+Fm56DJAcSxrO43wsV3Ii5y/qaKxWXC9ksRSX2+oz26 VX73uwNSTUCyKyxYHzom6LfChyvZrnq7Wg+gohFFYz/Zen4yGEPeq5VolAOlYzqp0Ecg MWCHX161udba7Msp6rcEZMqp2OZo1VincFF6YDwlDCMVFylX+txyX2hFILAUqY+rSmk3 Gylh4C2FhWhlVddtoMnAvxBIGbO2oY1ZGRFdBY+XQTnKRKkiZQ2W9fsbSURmwkQCYqVY URwFwEIGe8tuDsKKzMfZHzU28r26cCXmM/jYupubFlVkQ1C7ceLN7ppfMe1QOqwnVsUq 6eeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=UMnIRuFdhYzLuCZJ0NnS3LeyrPS5DkHSs+EhmjHTZuY=; b=qh5nFHpLg9q0/wiY/y4cTIf2e2JTPdHWpt69IIHEGHAFxDlNAvL6km2lLLNsT/USn9 siSKxjxVSB7fy7bOaSXNH4Mna5yL4yOMMSqUxikb/+L0s1gEHi/yac74TRiLQZgaNIC5 wWNV7USu3Q1myM4AeJi7MKwRaLNCswbcZ1ACZiIc0tGf30hXrcWr+3JgqF8Rb1AHlOZU g0IHvWAiq6hsUO6JwW/LdqCQsJS2p2jThvEbX8srXjXFvOJ0HGDvoftahoTFnw1p3nru MxtAldywEhzONif8A0btZ0YqVG+N3YVORkRX6GldEPTMwAmmUhhl2wCPAfxvjI78UrWH dM/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fP1p12QJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a056a00099700b005a8f32ae11bsi20335030pfg.11.2023.02.21.06.12.01; Tue, 21 Feb 2023 06:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fP1p12QJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234246AbjBUODQ (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Tue, 21 Feb 2023 09:03:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234187AbjBUODO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Feb 2023 09:03:14 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA0040FE; Tue, 21 Feb 2023 06:03:13 -0800 (PST) Date: Tue, 21 Feb 2023 14:03:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1676988192; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=UMnIRuFdhYzLuCZJ0NnS3LeyrPS5DkHSs+EhmjHTZuY=; b=fP1p12QJehd1VP58RW9lWFh5MMchsXM7XdLFkZQtbDhRSzkoddCFPAxb+zmCwEDUGeiYqJ c0uy1uFBgfCzXUW+XmwmOXsl0HglsSoV4ZI/IiGhA9YfrWqXVr4Zmj/OgFQ7fm3z9FYEy/ OKwAN97dSyMnyLnQZogyxr4ogFlj04APhAfAcss/xkqAwP+NTQqP/GJOzM0uwCrG7M5xdl 1w0TbjiWsQnMjldsAXnh0Ufr+IZLw+xa4LPQ+uZEBWPKGYLZb4ch+vgbxHuTFNkLF6YVzM h3iZHbQJ2HSH7av9t5ornTpkx5BcYu9SoT0Bl5PJmeN0cieo4c+1uDi47kMn6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676988192; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=UMnIRuFdhYzLuCZJ0NnS3LeyrPS5DkHSs+EhmjHTZuY=; b=p3tAXzAJX5QhYFIYu2RAa0aYxNgqJIiwpXr+no9JjT1M9T8tCnKeayfPQgk5et4W4lt80Q KwLQd4SV6XGytjDg== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] genirq/irqdesc: Make kobj_type structures constant Cc: linux@weissschuh.net, Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20230217-kobj_type-irq-v1-1-fedfacaf8cdb@weissschuh.net> References: <20230217-kobj_type-irq-v1-1-fedfacaf8cdb@weissschuh.net> MIME-Version: 1.0 Message-ID: <167698819179.387.6141249909545840649.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758450139999807632?= X-GMAIL-MSGID: =?utf-8?q?1758450139999807632?= |
Series |
[tip:,irq/urgent] genirq/irqdesc: Make kobj_type structures constant
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 21, 2023, 2:03 p.m. UTC
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: ce7980ae9080f72f08d50355c4d9084d57aece63 Gitweb: https://git.kernel.org/tip/ce7980ae9080f72f08d50355c4d9084d57aece63 Author: Thomas Weißschuh <linux@weissschuh.net> AuthorDate: Fri, 17 Feb 2023 03:16:25 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Tue, 21 Feb 2023 15:00:09 +01:00 genirq/irqdesc: Make kobj_type structures constant Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") the driver core allows the usage of const struct kobj_type. Take advantage of this to constify the structure definitions which prevents modification at runtime. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20230217-kobj_type-irq-v1-1-fedfacaf8cdb@weissschuh.net --- kernel/irq/irqdesc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index fd09962..240e145 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -277,7 +277,7 @@ static struct attribute *irq_attrs[] = { }; ATTRIBUTE_GROUPS(irq); -static struct kobj_type irq_kobj_type = { +static const struct kobj_type irq_kobj_type = { .release = irq_kobj_release, .sysfs_ops = &kobj_sysfs_ops, .default_groups = irq_groups, @@ -335,7 +335,7 @@ postcore_initcall(irq_sysfs_init); #else /* !CONFIG_SYSFS */ -static struct kobj_type irq_kobj_type = { +static const struct kobj_type irq_kobj_type = { .release = irq_kobj_release, };