The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Alexandru Ardelean <aardelean@baylibre.com>,
	linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH v1 0/2] kernel.h: Move out a couple of macros and constants
Date: Mon, 24 Mar 2025 12:50:23 +0200	[thread overview]
Message-ID: <20250324105228.775784-1-andriy.shevchenko@linux.intel.com> (raw)

The kernel.h hosts a couple of macros and constants that may have been put
to a better place. Do that. Also add missing documentation.
No functional changes intended.

Andy Shevchenko (1):
  kernel.h: Move PTR_IF() and u64_to_user_ptr() to util_macros.h

Ingo Molnar (1):
  kernel.h: Move READ/WRITE definitions to <linux/types.h>

 include/linux/kernel.h      | 14 +-------
 include/linux/types.h       |  4 +++
 include/linux/util_macros.h | 66 +++++++++++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+), 13 deletions(-)

-- 
2.47.2


             reply	other threads:[~2025-03-24 10:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-24 10:50 Andy Shevchenko [this message]
2025-03-24 10:50 ` [PATCH v1 1/2] kernel.h: Move READ/WRITE definitions to <linux/types.h> Andy Shevchenko
2025-03-24 10:50 ` [PATCH v1 2/2] kernel.h: Move PTR_IF() and u64_to_user_ptr() to util_macros.h Andy Shevchenko

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=20250324105228.775784-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=aardelean@baylibre.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /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