Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753257AbcD0HI4 (ORCPT ); Wed, 27 Apr 2016 03:08:56 -0400 Received: from tundra.namei.org ([65.99.196.166]:46482 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbcD0HIx (ORCPT ); Wed, 27 Apr 2016 03:08:53 -0400 Date: Wed, 27 Apr 2016 17:07:26 +1000 (AEST) From: James Morris To: Kees Cook cc: Andy Shevchenko , Mimi Zohar , Joe Perches , Andrew Morton , "Serge E. Hallyn" , Jonathan Corbet , Kalle Valo , Mauro Carvalho Chehab , Guenter Roeck , Jiri Slaby , Paul Moore , Stephen Smalley , Casey Schaufler , Andreas Gruenbacher , Rasmus Villemoes , Ulf Hansson , Vitaly Kuznetsov , linux-security-module , LKML , "linux-doc@vger.kernel.org" Subject: Re: [PATCH] fs: fix over-zealous use of "const" In-Reply-To: <20160421195329.GA10362@www.outflux.net> Message-ID: References: <20160421195329.GA10362@www.outflux.net> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 666 Lines: 21 On Thu, 21 Apr 2016, Kees Cook wrote: > When I was fixing up const recommendations from checkpatch.pl, I went > overboard. This fixes the warning (during a W=1 build): > > include/linux/fs.h:2627:74: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] > static inline const char * const kernel_read_file_id_str(enum kernel_read_file_id id) > > Reported-by: Andy Shevchenko > Signed-off-by: Kees Cook > --- > This is for linux-security next > --- Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next -- James Morris