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 DCD85C6379F for ; Fri, 10 Feb 2023 13:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232153AbjBJNEk (ORCPT ); Fri, 10 Feb 2023 08:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbjBJNEL (ORCPT ); Fri, 10 Feb 2023 08:04:11 -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 6F02417CD5; Fri, 10 Feb 2023 05:04:09 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1211D675E5; Fri, 10 Feb 2023 13:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1676034248; h=from:from:reply-to: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=vlJdx8YG5mrRMkC10pv9GK6wVpcwqu7QwdY4xu5XvJ4=; b=YtwpKdo3WkQIlrIzuhpuBh/+HvwKACWPk9/+AlCTz0rrN8Rnfb6G4K/6AGq9BJTS1CtvjG pIluUUq9OiJBWhL5gU2F05DaaXoKzkzQW3mz5N+UZCAOOxL3sRYrxUd2b4WdG3v/PcIX3r i+mYr36FvjAQqJpO/hRrWQtpafLKADY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1676034248; h=from:from:reply-to: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=vlJdx8YG5mrRMkC10pv9GK6wVpcwqu7QwdY4xu5XvJ4=; b=80h94Asq/W7SsNZ+GHomtHSiR8JcyzCTG4TfQ13RCzMENsTWiY+HqAc9Gnd4P4Be6ovb10 DD7882SF+qBDtlCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D54AD1325E; Fri, 10 Feb 2023 13:04:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3E/5MsdA5mNzHgAAMHmgww (envelope-from ); Fri, 10 Feb 2023 13:04:07 +0000 Date: Fri, 10 Feb 2023 13:58:17 +0100 From: David Sterba To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: make kobj_type structures constant Message-ID: <20230210125817.GR28288@suse.cz> Reply-To: dsterba@suse.cz References: <20230210-kobj_type-btrfs-v1-1-16d3f33c17be@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230210-kobj_type-btrfs-v1-1-16d3f33c17be@weissschuh.net> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 10, 2023 at 02:13:40AM +0000, 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 Added to misc-next, thanks.