Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751963AbdG0Ogq (ORCPT ); Thu, 27 Jul 2017 10:36:46 -0400 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:59652 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbdG0Ogn (ORCPT ); Thu, 27 Jul 2017 10:36:43 -0400 Date: Thu, 27 Jul 2017 09:36:41 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Arvind Yadav cc: penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] mm: slub: constify attribute_group structures. In-Reply-To: <1501157186-3749-1-git-send-email-arvind.yadav.cs@gmail.com> Message-ID: References: <1501157186-3749-1-git-send-email-arvind.yadav.cs@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfFklTzI3m+cLNFOK0euv6N9BqTMqrxGMIO2mY9IzTDC6qRs2PFYcNKEMqlgoBdgB9PAq08mmgN2uM9bcerUv8NPeB8Yk0FpVcfmtz/MzeTz3m3HQg2DW 4EXkQlb1Nz+OhLQjuieQs0Uw2DklK2TvgNHphNEpSYdnMW1UMefC2yviHnjhsgb5D6HxTQwFblJyxCXZQvzagDhGu+WCXUP8gbnJ2HR1A+nD1bbQTs3ON32s pnnwwbGVGSSlWMlJs5WahN5OGOkUC3FmzsrhlSOMV7wMW6ZXWt16NjvwAD6jHg7lq+thH7any+W2HJ3c9EXW+HMj99Ys3+q9aJ0aJjYppZSFcYh3+JUMlUoG +UqB2e+Yfr71WzTwdiF2t7wuIrSjcg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 291 Lines: 7 On Thu, 27 Jul 2017, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work with > const attribute_group. So mark the non-const structs as const. Acked-by: Christoph Lameter