All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-nonmm-stable] kernelh-move-read-write-definitions-to-linux-typesh.patch removed from -mm tree
@ 2025-05-12  0:55 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-05-12  0:55 UTC (permalink / raw)
  To: mm-commits, andriy.shevchenko, aardelean, mingo, akpm


The quilt patch titled
     Subject: kernel.h: move READ/WRITE definitions to <linux/types.h>
has been removed from the -mm tree.  Its filename was
     kernelh-move-read-write-definitions-to-linux-typesh.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Ingo Molnar <mingo@kernel.org>
Subject: kernel.h: move READ/WRITE definitions to <linux/types.h>
Date: Mon, 24 Mar 2025 12:50:24 +0200

Patch series "kernel.h: Move out a couple of macros and constants".

kernel.h hosts a couple of macros and constants that may be better placed.
Do that.  Also add missing documentation.  No functional changes
intended.


This patch (of 2):

Headers shouldn't be forced to include <linux/kernel.h> just to
gain these simple constants.

Link: https://lkml.kernel.org/r/20250324105228.775784-1-andriy.shevchenko@linux.intel.com
Link: https://lkml.kernel.org/r/20250324105228.775784-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Alexandru Ardelean <aardelean@baylibre.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/kernel.h |    4 ----
 include/linux/types.h  |    4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/include/linux/kernel.h~kernelh-move-read-write-definitions-to-linux-typesh
+++ a/include/linux/kernel.h
@@ -41,10 +41,6 @@
 
 #define STACK_MAGIC	0xdeadbeef
 
-/* generic data direction definitions */
-#define READ			0
-#define WRITE			1
-
 #define PTR_IF(cond, ptr)	((cond) ? (ptr) : NULL)
 
 #define u64_to_user_ptr(x) (		\
--- a/include/linux/types.h~kernelh-move-read-write-definitions-to-linux-typesh
+++ a/include/linux/types.h
@@ -136,6 +136,10 @@ typedef s64	ktime_t;
 typedef u64 sector_t;
 typedef u64 blkcnt_t;
 
+/* generic data direction definitions */
+#define READ			0
+#define WRITE			1
+
 /*
  * The type of an index into the pagecache.
  */
_

Patches currently in -mm which might be from mingo@kernel.org are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-12  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12  0:55 [merged mm-nonmm-stable] kernelh-move-read-write-definitions-to-linux-typesh.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.