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 79D3BC636D4 for ; Mon, 13 Feb 2023 09:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbjBMJ1C (ORCPT ); Mon, 13 Feb 2023 04:27:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbjBMJZn (ORCPT ); Mon, 13 Feb 2023 04:25:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FB815C8D for ; Mon, 13 Feb 2023 01:25:12 -0800 (PST) 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 76B8FB80E15 for ; Mon, 13 Feb 2023 09:25:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48F7AC433A7; Mon, 13 Feb 2023 09:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676280310; bh=VnuDtpouDgwVlLpnixSYPUGpmwgIa3hlM9urXtzlhvg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cRNuUwUcjQDnPdZQD2RIdYo4Yr0z57XZwJhizae7btX0J9GC1zhxjjR4tfcNfVYet qfXMe36aMspV4xTrWlWAd7iKeV1BGGPFAlTdetowW6mufHflCDDpbJYpm3swDixG1i PyCyI9PG4tgTG0fr/VrocRGgZDWTnqbDGz0XTyvDm6JnnvqB9NWg3LIvQnX6mWHVv9 blRK4T6NExG9/er6CBkJ/pMrI0MLxtSOg5o4zPD2bEazKrpyt6KKdfJbNb2f2QepHa yAn+fJ7qP7PsJbAyXQqmdFvMKrrj8Qn0I87GWCxVvn+8i8ulICItLQE+LC8nkAkFpf QYLZMhaQwmsFg== Message-ID: Date: Mon, 13 Feb 2023 17:25:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH] f2fs: make kobj_type structures constant To: =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= , Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20230209-kobj_type-f2fs-v1-1-b6feedbdd4a8@weissschuh.net> Content-Language: en-US From: Chao Yu In-Reply-To: <20230209-kobj_type-f2fs-v1-1-b6feedbdd4a8@weissschuh.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/2/9 11:20, 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,