From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, willy@infradead.org,
akpm@linux-foundation.org, akpm@linux-foundation.org
Subject: + minmax-add-in_range-macro-fix-fix.patch added to mm-unstable branch
Date: Tue, 11 Jul 2023 13:07:35 -0700 [thread overview]
Message-ID: <20230711200736.4ED2CC433C7@smtp.kernel.org> (raw)
The patch titled
Subject: minmax-add-in_range-macro-fix-fix
has been added to the -mm mm-unstable branch. Its filename is
minmax-add-in_range-macro-fix-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/minmax-add-in_range-macro-fix-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: minmax-add-in_range-macro-fix-fix
Date: Tue Jul 11 01:04:11 PM PDT 2023
convert remaining local in_range() definitions, kernel-wide
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/btrfs/misc.h | 3 +--
fs/ext2/balloc.c | 3 +--
fs/ext4/ext4.h | 3 +--
fs/ufs/util.h | 7 +------
4 files changed, 4 insertions(+), 12 deletions(-)
--- a/fs/btrfs/misc.h~minmax-add-in_range-macro-fix-fix
+++ a/fs/btrfs/misc.h
@@ -7,8 +7,7 @@
#include <linux/wait.h>
#include <linux/math64.h>
#include <linux/rbtree.h>
-
-#define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len))
+#include <linux/minmax.h>
/*
* Enumerate bits using enum autoincrement. Define the @name as the n-th bit.
--- a/fs/ext2/balloc.c~minmax-add-in_range-macro-fix-fix
+++ a/fs/ext2/balloc.c
@@ -16,6 +16,7 @@
#include <linux/quotaops.h>
#include <linux/slab.h>
#include <linux/sched.h>
+#include <linux/minmax.h>
#include <linux/cred.h>
#include <linux/buffer_head.h>
#include <linux/capability.h>
@@ -36,8 +37,6 @@
*/
-#define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1)
-
struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb,
unsigned int block_group,
struct buffer_head ** bh)
--- a/fs/ext4/ext4.h~minmax-add-in_range-macro-fix-fix
+++ a/fs/ext4/ext4.h
@@ -32,6 +32,7 @@
#include <linux/sched/signal.h>
#include <linux/blockgroup_lock.h>
#include <linux/percpu_counter.h>
+#include <linux/minmax.h>
#include <linux/ratelimit.h>
#include <crypto/hash.h>
#include <linux/falloc.h>
@@ -3774,8 +3775,6 @@ static inline void set_bitmap_uptodate(s
set_bit(BH_BITMAP_UPTODATE, &(bh)->b_state);
}
-#define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1)
-
/* For ioend & aio unwritten conversion wait queues */
#define EXT4_WQ_HASH_SZ 37
#define ext4_ioend_wq(v) (&ext4__ioend_wq[((unsigned long)(v)) %\
--- a/fs/ufs/util.h~minmax-add-in_range-macro-fix-fix
+++ a/fs/ufs/util.h
@@ -9,14 +9,9 @@
#include <linux/buffer_head.h>
#include <linux/fs.h>
+#include <linux/minmax.h>
#include "swab.h"
-
-/*
- * some useful macros
- */
-#define in_range(b,first,len) ((b)>=(first)&&(b)<(first)+(len))
-
/*
* functions used for retyping
*/
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm-shmem-fix-race-in-shmem_undo_range-w-thp-fix.patch
swap-stop-add-to-avail-list-is-swap-is-full-checkpatch-fixes.patch
fs-buffer-clean-up-block_commit_write-fix.patch
mm-page_alloc-avoid-false-page-outside-zone-error-info-fix.patch
mm-make-pte_marker_swapin_error-more-general-fix.patch
minmax-add-in_range-macro-fix.patch
minmax-add-in_range-macro-fix-fix.patch
signal-print-comm-and-exe-name-on-fatal-signals-fix.patch
reply other threads:[~2023-07-11 20:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230711200736.4ED2CC433C7@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=willy@infradead.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 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.