All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, conor.dooley@microchip.com,
	rppt@kernel.org, akpm@linux-foundation.org
Subject: [folded-merged] mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix.patch removed from -mm tree
Date: Thu, 09 Feb 2023 16:47:52 -0800	[thread overview]
Message-ID: <20230210004752.B9D60C433EF@smtp.kernel.org> (raw)


The quilt patch titled
     Subject: mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix
has been removed from the -mm tree.  Its filename was
     mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix.patch

This patch was dropped because it was folded into mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem.patch

------------------------------------------------------
From: Mike Rapoport <rppt@kernel.org>
Subject: mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix
Date: Tue, 31 Jan 2023 20:41:49 +0200

The generic pfn_valid() does not take into account pfn_offset when it
compares it with max_mapnr.

Link: https://lkml.kernel.org/r/Y9lg7R1Yd931C+y5@kernel.org
Signed-off-by: Mike Rapoport <rppt@kernel.org>
Reported-by: Conor Dooley <conor.dooley@microchip.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---


--- a/include/asm-generic/memory_model.h~mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix
+++ a/include/asm-generic/memory_model.h
@@ -26,7 +26,7 @@ static inline int pfn_valid(unsigned lon
 	extern unsigned long max_mapnr;
 	unsigned long pfn_offset = ARCH_PFN_OFFSET;
 
-	return pfn >= pfn_offset && pfn < max_mapnr;
+	return pfn >= pfn_offset && (pfn - pfn_offset) < max_mapnr;
 }
 #define pfn_valid pfn_valid
 #endif
_

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

arm-include-asm-generic-memory_modelh-from-pageh-rather-than-memoryh.patch
m68k-use-asm-generic-memory_modelh-for-both-mmu-and-mmu.patch
mips-drop-definition-of-pfn_valid-for-discontigmem.patch
mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem.patch


                 reply	other threads:[~2023-02-10  0:48 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=20230210004752.B9D60C433EF@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=conor.dooley@microchip.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=rppt@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 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.