Re: [PATCH] af_key: suppress a warning for 64k pages.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Tuesday, October 30, 2007 - 9:08 pm

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 31 Oct 2007 14:59:54 +1100

...

I'm not so sure ifdef'ing things up all over the place is the way to
solve this.  It makes the code ultra ugly.

I think we should retain the check, but modify it so that GCC knows we
understand that it's OK if it is always false.  Perhaps a simple (u32)
cast on the left branch of the comparison is sufficient?
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] af_key: suppress a warning for 64k pages., Stephen Rothwell, (Tue Oct 30, 8:59 pm)
Re: [PATCH] af_key: suppress a warning for 64k pages., David Miller, (Tue Oct 30, 9:08 pm)
Re: [PATCH] af_key: suppress a warning for 64k pages., Stephen Rothwell, (Tue Oct 30, 9:34 pm)
Re: [PATCH] af_key: suppress a warning for 64k pages., David Miller, (Tue Oct 30, 9:42 pm)
[PATCH] af_key: suppress a warning for 64k pages., Stephen Rothwell, (Tue Oct 30, 10:24 pm)
Re: [PATCH] af_key: suppress a warning for 64k pages., David Miller, (Tue Oct 30, 11:58 pm)