Re: better patch for linux/bitops.h
From: H. Peter Anvin
Date: Thu May 05 2016 - 20:14:35 EST
On 05/05/2016 03:18 PM, tytso@xxxxxxx wrote:
>
> So this is why I tend to take a much more pragmatic viewpoint on
> things. Sure, it makes sense to pay attention to what the C standard
> writers are trying to do to us; but if we need to suppress certain
> optimizations to write sane kernel code --- I'm ok with that. And
> this is why using a trust-but-verify on a specific set of compilers
> and ranges of compiler versions is a really good idea....
>
For the record, the "portable" construct has apparently only been
supported since gcc 4.6.3.
-hpa