Re: [PATCH 01/18 V2] xfsprogs: enable sparse checking with "make C=[12]"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/11/18 12:57 AM, Christoph Hellwig wrote:
>> -sparse and gcc using:
>> +The xfsprogs Makefile has a convenient shortcut to running sparse, by setting
>> +the C ("check") variable on the make commandline.  To perform generic checks,
>> +
>> +	make C=1
>> +
>> +which checks with -Wsparse-all -Wno-transparent-union -Wno-return-void
>> +-Wno-undef -Wno-non-pointer-null, or to perform the bitwise checks, use
>> +
>> +	make C=2
>> +
>> +which checks with -Wbitwise -D__CHECK_ENDIAN__
> 
> Out of all the sparce checks applicable to xfsprogs endianess is by
> far the most impotant one.  I don't think it makes any sense to ever
> turn it off..

Oh... whoops, I thought I was emulating kernel behavior (by following e2fsprogs
behavior), but sadly no:

> Do a kernel make with "make C=1" to run sparse on all the C files that get
> recompiled, or use "make C=2" to run sparse on the files whether they need to
> be recompiled or not.  The latter is a fast way to check the whole tree if you
> have already built it.

Let me see if I can properly mimic that behavior, with endian checking baked
in for both.

Thanks for bringing it up,
-Eric




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux