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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C94C8C63697 for ; Wed, 18 Nov 2020 23:35:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 68261246BB for ; Wed, 18 Nov 2020 23:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726903AbgKRXfc (ORCPT ); Wed, 18 Nov 2020 18:35:32 -0500 Received: from mga18.intel.com ([134.134.136.126]:30576 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbgKRXfb (ORCPT ); Wed, 18 Nov 2020 18:35:31 -0500 IronPort-SDR: JwQG1NpOAGuIXilfbCB4QMPvsJR8FUjHd4PEdadEEqD0KeOqYnm4jGhUce4V8kpnlGua4St52O ixiKG8sK8hNw== X-IronPort-AV: E=McAfee;i="6000,8403,9809"; a="158975411" X-IronPort-AV: E=Sophos;i="5.77,488,1596524400"; d="scan'208";a="158975411" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2020 15:35:31 -0800 IronPort-SDR: OkdchkXaujI5vp5VYuLXIaNe4jnHt5rKnVixn9wQnIUiwpZC8uQfMhsw5rjTVRrTSNSkVusLqz XYqQZYUJYS5A== X-IronPort-AV: E=Sophos;i="5.77,488,1596524400"; d="scan'208";a="534527725" Received: from rchatre-mobl3.amr.corp.intel.com (HELO [10.255.230.225]) ([10.255.230.225]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2020 15:35:30 -0800 Subject: Re: [PATCH] x86/resctrl: Constify kernfs_ops To: Rikard Falkeborn , Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: Fenghua Yu , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org References: <20201110230228.801785-1-rikard.falkeborn@gmail.com> From: Reinette Chatre Message-ID: <3a32fd8a-2b41-3be5-2742-540ada4a21e5@intel.com> Date: Wed, 18 Nov 2020 15:35:29 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <20201110230228.801785-1-rikard.falkeborn@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/10/2020 3:02 PM, Rikard Falkeborn wrote: > The only usage of the kf_ops field in the rftype struct is to pass it as > argument to __kernfs_create_file(), which accepts a pointer to const. > Make it a pointer to const. This makes it possible to make > rdtgroup_kf_single_ops and kf_mondata_ops const, which allows the > compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn Thank you very much Rikard. Acked-by: Reinette Chatre Reinette