OpenCloudOS-Kernel/arch
Anshuman Khandual 98fa15f34c mm: replace all open encodings for NUMA_NO_NODE
Patch series "Replace all open encodings for NUMA_NO_NODE", v3.

All these places for replacement were found by running the following
grep patterns on the entire kernel code.  Please let me know if this
might have missed some instances.  This might also have replaced some
false positives.  I will appreciate suggestions, inputs and review.

1. git grep "nid == -1"
2. git grep "node == -1"
3. git grep "nid = -1"
4. git grep "node = -1"

This patch (of 2):

At present there are multiple places where invalid node number is
encoded as -1.  Even though implicitly understood it is always better to
have macros in there.  Replace these open encodings for an invalid node
number with the global macro NUMA_NO_NODE.  This helps remove NUMA
related assumptions like 'invalid node' from various places redirecting
them to a common definition.

Link: http://lkml.kernel.org/r/1545127933-10711-2-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>	[ixgbe]
Acked-by: Jens Axboe <axboe@kernel.dk>			[mtip32xx]
Acked-by: Vinod Koul <vkoul@kernel.org>			[dmaengine.c]
Acked-by: Michael Ellerman <mpe@ellerman.id.au>		[powerpc]
Acked-by: Doug Ledford <dledford@redhat.com>		[drivers/infiniband]
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-03-05 21:07:14 -08:00
..
alpha mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
arc ARCv2: don't assume core 0x54 has dual issue 2019-02-21 14:53:36 -08:00
arm Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-03-05 09:09:55 -08:00
arm64 kasan: remove use after scope bugs detection. 2019-03-05 21:07:13 -08:00
c6x arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
csky get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
h8300 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
hexagon arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
ia64 mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
m68k m68k updates for v5.1 2019-03-05 11:02:12 -08:00
microblaze get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
mips Here's the main MIPS pull request for v5.1: 2019-03-05 11:28:25 -08:00
nds32 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
nios2 get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
openrisc get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
parisc Merge branch 'parisc-5.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2019-03-05 11:17:23 -08:00
powerpc mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
riscv Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-03-05 08:26:13 -08:00
s390 s390 updates for the 5.1 merge window 2019-03-05 11:13:10 -08:00
sh sh: remove nargs from __SYSCALL 2019-03-05 21:07:13 -08:00
sparc mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
um a.out: remove core dumping support 2019-03-05 10:00:35 -08:00
unicore32 arch: unexport asm/shmparam.h for all architectures 2019-02-01 15:46:22 -08:00
x86 mm: replace all open encodings for NUMA_NO_NODE 2019-03-05 21:07:14 -08:00
xtensa Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-03-05 08:26:13 -08:00
.gitignore
Kconfig jump_label: move 'asm goto' support test to Kconfig 2019-01-06 09:46:51 +09:00