Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 417FDC61DA3 for ; Tue, 21 Feb 2023 15:55:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234751AbjBUPzs (ORCPT ); Tue, 21 Feb 2023 10:55:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233769AbjBUPzp (ORCPT ); Tue, 21 Feb 2023 10:55:45 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 338CB22DC0; Tue, 21 Feb 2023 07:55:44 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D6DE01FFD2; Tue, 21 Feb 2023 15:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1676994942; h=from:from:reply-to: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=vsJ7fn1LkqK2hy8/qm0fX1IDZA6oFvdCRYzVVxXQlys=; b=PqZxSrPmJozbNyEv8piAN//vJicRM01dR6oeea6MCIt3VyrgshGr/QW4VxxA8I5A8M08hJ tA+ONqKlbbgk7WP/qlLOONXOZVnWaQkrfLAazbt3c98Kbm4+TjRCKVBV+jvwMY8sozDXrj d4+93omrKJNbOqrTFCXhTyVipyBGROI= Received: from suse.cz (pmladek.tcp.ovpn2.prg.suse.de [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id A72032C141; Tue, 21 Feb 2023 15:55:42 +0000 (UTC) Date: Tue, 21 Feb 2023 16:55:38 +0100 From: Petr Mladek To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: Make kobj_type structures constant Message-ID: References: <20230217-kobj_type-livepatch-v1-1-06ded292e897@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230217-kobj_type-livepatch-v1-1-06ded292e897@weissschuh.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2023-02-17 03:14:41, Thomas Wei?schuh wrote: > 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 to prevent > modification at runtime. > > Signed-off-by: Thomas Wei?schuh Reviewed-by: Petr Mladek Best Regards, Petr PS: I am going to queue this patch for 6.4. I could eventually add it into a pull request for 6.3-rc if it was needed because of a more important fix. This patch is trivial. But even trivial patches should spend at least few days in linux-next...