From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756699AbaEEVLt (ORCPT ); Mon, 5 May 2014 17:11:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51136 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756346AbaEEVLr (ORCPT ); Mon, 5 May 2014 17:11:47 -0400 Date: Mon, 5 May 2014 14:11:45 -0700 From: Andrew Morton To: Jeff Layton Cc: Fabian Frederick , linux-kernel , Steve French , linux-cifs Subject: Re: [PATCH 1/1] FS/CIFS: remove obsolete __constant Message-Id: <20140505141145.72863db09016a3399a3c9096@linux-foundation.org> In-Reply-To: <20140505065116.24d94535@tlielax.poochiereds.net> References: <20140503221539.e4857ef93d6c875bbded5938@skynet.be> <20140505065301.bbb1fe3e579d27dacd3292c9@skynet.be> <20140505065116.24d94535@tlielax.poochiereds.net> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 5 May 2014 06:51:16 -0400 Jeff Layton wrote: > On Mon, 5 May 2014 06:53:01 +0200 > Fabian Frederick wrote: > > > On Sun, 4 May 2014 18:52:43 -0400 > > Jeff Layton wrote: > > > > > On Sat, May 3, 2014 at 4:15 PM, Fabian Frederick wrote: > > > > Replacing all __constant_foo to foo() > > > > except in smb2status.h (1700 lines to update). > > > > > > > > Cc: linux-cifs@vger.kernel.org > > > > Cc: Steve French > > > > Cc: Andrew Morton > > > > Signed-off-by: Fabian Frederick > > > > --- > > > > fs/cifs/cifsacl.c | 2 +- > > > > fs/cifs/cifssmb.c | 20 ++++++++++---------- > > > > fs/cifs/sess.c | 2 +- > > > > fs/cifs/smb2misc.c | 38 +++++++++++++++++++------------------- > > > > fs/cifs/smb2ops.c | 2 +- > > > > fs/cifs/smb2pdu.c | 2 +- > > > > fs/cifs/smb2pdu.h | 28 ++++++++++++++-------------- > > > > 7 files changed, 47 insertions(+), 47 deletions(-) > > > > > > > > diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c > > > > index 7ff866d..54ac0e8 100644 > > > > --- a/fs/cifs/cifsacl.c > > > > +++ b/fs/cifs/cifsacl.c > > > > @@ -38,7 +38,7 @@ static const struct cifs_sid sid_everyone = { > > > > 1, 1, {0, 0, 0, 0, 0, 1}, {0} }; > > > > /* security id for Authenticated Users system group */ > > > > static const struct cifs_sid sid_authusers = { > > > > - 1, 1, {0, 0, 0, 0, 0, 5}, {__constant_cpu_to_le32(11)} }; > > > > + 1, 1, {0, 0, 0, 0, 0, 5}, {cpu_to_le32(11)} }; > > > > > > > > > Does the build still work on BE arches with this? I know at one point > > > the above wouldn't compile on those > > > arches. See commit 536abdb0802f, for an explanation. > > > > Untested on BE but it would mean checkpatch > > "don't use __constant functions outside of include/uapi/" stuff is wrong ? > > I'm not sure. Maybe the macros have been fixed so that it's no longer a > problem? I think it would be good to test build this on a BE arch > before it's merged to be certain though. > > IIRC, I originally saw the problem on s390 builds. It compiles OK for me for s390, ia64, sparc64, sh, alpha, powerpc, arm, m68k. I'll toss it in there and see what Fengguang's buildbot has to say.