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 ACE28C636CC for ; Tue, 7 Feb 2023 22:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbjBGW2g (ORCPT ); Tue, 7 Feb 2023 17:28:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjBGW2d (ORCPT ); Tue, 7 Feb 2023 17:28:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80A0199F8 for ; Tue, 7 Feb 2023 14:28:32 -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 8A1C8B81B30 for ; Tue, 7 Feb 2023 22:28:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C76DDC433EF; Tue, 7 Feb 2023 22:28:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675808910; bh=0pnhlHgUFS+duPYaJ+ghB1NoXh/J7+EhVyjb0D0gxOA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VfWZG7Sg7ohHXC9+JTd8YMCwha+ceyYX0R3lnjfSkDm+AWuWFwtjIdpWfmkSPqw8j rEp4NLFkG6d3mYNZTcTzFg8fi7HoG6SkqRA1SqTkQ9qpgrRs5bED49eSUfUooBlvfC 3J91PJWN/wkErtr2q5c4UuDfcvOw5Jkhc1abvvVPyZU+3yG+8zFqNCCpTQVBjbdHc2 E7knlD0d23EKuZVL5PvcvjRZOavr+e5tpZixVQQPttL9GqhWNAxYSEFBRfgjiJwjPC YojAlxMEpPQI7ABAvgTy26rX+heSJgmF2BI8kMKMzZoWxZ0YDzWTi27zVPVx0eVLAZ 2Q5Da4uQscl+w== From: SeongJae Park To: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Cc: SeongJae Park , Andrew Morton , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/damon/sysfs: make kobj_type structures constant Date: Tue, 7 Feb 2023 22:28:27 +0000 Message-Id: <20230207222827.55192-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230207-kobj_type-damon-v1-1-9d4fea6a465b@weissschuh.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Tue, 07 Feb 2023 19:21:15 +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 Reviewed-by: SeongJae Park Thanks, SJ [...]