From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753086AbdA3Wdl (ORCPT ); Mon, 30 Jan 2017 17:33:41 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:43832 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbdA3Wdj (ORCPT ); Mon, 30 Jan 2017 17:33:39 -0500 Date: Mon, 30 Jan 2017 17:33:13 -0500 (EST) Message-Id: <20170130.173313.1658478542391677325.davem@davemloft.net> To: bhumirks@gmail.com Cc: julia.lawall@lip6.fr, sparclinux@vger.kernel.org, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sparc32: mm: srmmu: add __ro_after_init to sparc32_cachetlb_ops structures From: David Miller In-Reply-To: <1484397114-7705-1-git-send-email-bhumirks@gmail.com> References: <1484397114-7705-1-git-send-email-bhumirks@gmail.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 30 Jan 2017 13:34:12 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bhumika Goyal Date: Sat, 14 Jan 2017 18:01:54 +0530 > The objects viking_ops, viking_sun4d_smp_ops and smp_cachetlb_ops of > type sparc32_cachetlb_ops are not modified anywhere after getting modified > in the init functions. Inside init their reference is also stored in a > pointer of type const struct sparc32_cachetlb_ops *. So these structures > are never modified after init, therefore add __ro_after to the declaration > of these structures. > > Signed-off-by: Bhumika Goyal Applied, thanks.