Re: [PATCH] checkpatch: Look for symbolic permissions and suggest octal instead

From: Joe Perches
Date: Tue Aug 02 2016 - 20:30:28 EST


On Wed, 2016-08-03 at 01:15 +0100, Al Viro wrote:
> On Tue, Aug 02, 2016 at 04:39:24PM -0700, Joe Perches wrote:
> >
> > S_ uses should be avoided where octal is more intelligible.
> Oh, for Cthulhu sake!  So not only we had been dribbled upon with 1200-odd
> piles of pointless crap, now we'll be getting yet another set of equally
> pointless garbage each time a bored wanker gets to run checkpatch.pl?
>
> Leave that alone.  In either direction.  Dipshits on quest for commit count
> have enough tools already, no need to add another one...

Well, we disagree.

Use like DEVICE_ATTR are a mix of S_<FOO> vs octal (~3:1)
and a single style can be easier to grep for misuses.

Crud like this doesn't need to be cleaned up all at once and
checkpatch can be useful to encourage whatever preferred
style is desired.