Re: [PATCH 1/6] staging: lustre: lustre: resolve "use spaces between elements" checkpatch errors

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

 



> On Thu, 2017-06-15 at 17:57 +0100, James Simmons wrote:
> > > On Thu, 2017-06-15 at 17:03 +0100, James Simmons wrote:
> > > > > On Wed, 2017-06-14 at 11:01 -0400, James Simmons wrote:
> > > > > > Due to the way the DFID was embedded in our debug strings checkpatch
> > > > > > would report the following error:
> > > > > 
> > > > > unrelated trivia
> > > > > 
> > > > > > diff --git a/drivers/staging/lustre/lustre/include/lustre/lustre_user.h b/drivers/staging/lustre/lustre/include/lustre/lustre_user.h
> > > > > 
> > > > > []
> > > > > > @@ -532,7 +532,7 @@ static inline void obd_uuid2fsname(char *buf, char *uuid, int buflen)
> > > > > >  #define FID_NOBRACE_LEN 40
> > > > > >  #define FID_LEN (FID_NOBRACE_LEN + 2)
> > > > > >  #define DFID_NOBRACE "%#llx:0x%x:0x%x"
> > > > > 
> > > > > It's odd to use a mixture of %#x and 0x%x.
> > > > > 
> > > > > Using
> > > > > 	#define DFID_NOBRACE "%#llx:%#x:%#x"
> > > > > would also save a couple bytes per use.
> > > > 
> > > > Changing that format would break things very badly. This is used in user 
> > > > land utilities and the kernel code. 
> > > 
> > > Really?  Why would anything break?
> > 
> > It shouldn't break anything but I'm paranoid.
> 
> Which is an entirely different thing than
> writing "would break things very badly".
> 
> Paranoia is fine, incorrect statements of fact
> like that less so.

Meant no offense. When you said "would also save a couple bytes per use"
I took that as meaning it would change the data format. Should of tried
it myself to see if that was the case. 
 
> > In the past I have change 
> > "simple" things to have it blow up. I pushed the change to our test 
> > harness just to make sure. 
> 
> Understandable.
> 
> cheers, Joe
> 
> 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux