Quoting Alexey Dobriyan ([email protected]):
> On Wed, Nov 08, 2006 at 04:24:53PM -0600, Serge E. Hallyn wrote:
> > +struct vfs_cap_data_struct {
>
> "_struct" suffix is useless here: "struct" is already typed.
Good point.
> > + __u32 version;
> > + __u32 effective;
> > + __u32 permitted;
> > + __u32 inheritable;
> > +};
> > +
> > +static inline void convert_to_le(struct vfs_cap_data_struct *cap)
> > +{
> > + cap->version = le32_to_cpu(cap->version);
> > + cap->effective = le32_to_cpu(cap->effective);
> > + cap->permitted = le32_to_cpu(cap->permitted);
> > + cap->inheritable = le32_to_cpu(cap->inheritable);
> > +}
>
> This pretty much defeats sparse endian checking. You will get warnings
> regardless of whether u32 or le32 are used.
But I don't get any sparse warnings with make C=1. Am I doing something
wrong? Will it give warnings only on some architectures?
thanks,
-serge
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]