lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 09 Oct 2022 09:21:39 -0700
From:   Joe Perches <joe@...ches.com>
To:     LKML <linux-kernel@...r.kernel.org>,
        linux-doc <linux-doc@...r.kernel.org>
Cc:     Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
Subject: kernel style preference trivia: '* const' vs '*const' ?

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ