mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@poochiereds.net>
To: Fabian Frederick <fabf@skynet.be>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	akpm <akpm@linux-foundation.org>,
	Steve French <sfrench@samba.org>,
	linux-cifs <linux-cifs@vger.kernel.org>
Subject: Re: [PATCH 1/1] FS/CIFS: remove obsolete __constant
Date: Mon, 5 May 2014 06:51:16 -0400	[thread overview]
Message-ID: <20140505065116.24d94535@tlielax.poochiereds.net> (raw)
In-Reply-To: <20140505065301.bbb1fe3e579d27dacd3292c9@skynet.be>

On Mon, 5 May 2014 06:53:01 +0200
Fabian Frederick <fabf@skynet.be> wrote:

> On Sun, 4 May 2014 18:52:43 -0400
> Jeff Layton <jlayton@poochiereds.net> wrote:
> 
> > On Sat, May 3, 2014 at 4:15 PM, Fabian Frederick <fabf@skynet.be> wrote:
> > > Replacing all __constant_foo to foo()
> > > except in smb2status.h (1700 lines to update).
> > >
> > > Cc: linux-cifs@vger.kernel.org
> > > Cc: Steve French <sfrench@samba.org>
> > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > Signed-off-by: Fabian Frederick <fabf@skynet.be>
> > > ---
> > >  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<foo> 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.

-- 
Jeff Layton <jlayton@poochiereds.net>

  reply	other threads:[~2014-05-05 10:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 20:15 Fabian Frederick
2014-05-04 22:52 ` Jeff Layton
2014-05-05  4:53   ` Fabian Frederick
2014-05-05 10:51     ` Jeff Layton [this message]
2014-05-05 21:11       ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140505065116.24d94535@tlielax.poochiereds.net \
    --to=jlayton@poochiereds.net \
    --cc=akpm@linux-foundation.org \
    --cc=fabf@skynet.be \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfrench@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®