Linux Documentation
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: LKML <linux-kernel@vger.kernel.org>,
	linux-doc <linux-doc@vger.kernel.org>
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Subject: kernel style preference trivia: '* const' vs '*const' ?
Date: Sun, 09 Oct 2022 09:21:39 -0700	[thread overview]
Message-ID: <9ff662d738612f0ed2cea39266768a2eff21edc3.camel@perches.com> (raw)

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


             reply	other threads:[~2022-10-09 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-09 16:21 Joe Perches [this message]
2022-10-09 16:52 ` kernel style preference trivia: '* const' vs '*const' ? Miguel Ojeda
2022-10-09 21:47   ` Joe Perches
2022-10-10 11:48 ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ff662d738612f0ed2cea39266768a2eff21edc3.camel@perches.com \
    --to=joe@perches.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miguel.ojeda.sandonis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox