Linux Documentation
 help / color / mirror / Atom feed
* kernel style preference trivia: '* const' vs '*const' ?
@ 2022-10-09 16:21 Joe Perches
  2022-10-09 16:52 ` Miguel Ojeda
  2022-10-10 11:48 ` David Laight
  0 siblings, 2 replies; 4+ messages in thread
From: Joe Perches @ 2022-10-09 16:21 UTC (permalink / raw)
  To: LKML, linux-doc; +Cc: Miguel Ojeda

The kernel uses '* const' about 10:1 over '*const'

coding_style and checkpatch don't care one way or another.

Does anyone care if there should be some kernel style preference?

$ git grep -P -oh '\b(?:char|u8)\s*\*\s*const\b' -- '*.[ch]' | \
  sort | uniq -c | sort -rn
  12450 char * const
   1357 char *const
     41 u8 * const
     17 char* const
      9 u8 *const
      5 char		*const
      2 char      * const
      2 char			*const
      1 char  * const
      1 char	*const
      1 char		* const


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-10 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 16:21 kernel style preference trivia: '* const' vs '*const' ? Joe Perches
2022-10-09 16:52 ` Miguel Ojeda
2022-10-09 21:47   ` Joe Perches
2022-10-10 11:48 ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox