From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AF5FC05027 for ; Tue, 14 Feb 2023 14:47:56 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PGPFl3bjTz3cMN for ; Wed, 15 Feb 2023 01:47:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=XgQQHoOK; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4601:e00::1; helo=ams.source.kernel.org; envelope-from=chao@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=XgQQHoOK; dkim-atps=neutral Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PGPFg1dJXz30hl for ; Wed, 15 Feb 2023 01:47:51 +1100 (AEDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CB81EB81DDF; Tue, 14 Feb 2023 14:47:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 530AEC433D2; Tue, 14 Feb 2023 14:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676386067; bh=0qblf0jEJnP6moGuBgThbeGRShhIJvPpcCKFDlUakRM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XgQQHoOKJZmRG0taxlLeTZIrQ91KwV70BMXkH9F+MscHmynq2u0wcLIIc3+6ENv6Q fy/U5gzMSAGPTwZkMMw5ZR9wncge8u647HaRXlbkIb1p5pDevUpsB/018DsFCxh211 UEz2S/3QaX7Kzr2iV0dvQa2ovdgWtO6fel8z5c38aPSh/lXB3w++CyAFR+oZVQdWVZ lx/RvHV6QCeS7AFODwl51c5KsGyGhkLRh0Y11QmmMUszuofq/Hmabs+IGT0/DKkcnw qZyY57hKCUutL40TA2dt9FZjSNCOK/K6+9DZ+8R7+TA9idWh9QLfvbPK+59NtkDGN6 K9Fvd/CNGqttg== Message-ID: <29654f49-e4ff-3419-e96b-2d01caab5c71@kernel.org> Date: Tue, 14 Feb 2023 22:47:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] erofs: make kobj_type structures constant Content-Language: en-US To: =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= , Gao Xiang , Yue Hu , Jeffle Xu References: <20230209-kobj_type-erofs-v1-1-078c945e2c4b@weissschuh.net> From: Chao Yu In-Reply-To: <20230209-kobj_type-erofs-v1-1-078c945e2c4b@weissschuh.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2023/2/9 11:21, 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: Chao Yu Thanks,