Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86: make ZERO_PAGE() at least parse its argument

This doesn't really do anything, but at least we now parse teh
ZERO_PAGE() address argument so that we'll catch the most obvious errors
in usage next time they'll happen.

See commit 6a5c5d26c4c6 ("rdma: fix build errors on s390 and MIPS due to
bad ZERO_PAGE use") what happens when we don't have any use of the macro
argument at all.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -1
+1 -1
arch/x86/include/asm/pgtable.h
··· 46 46 */ 47 47 extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] 48 48 __visible; 49 - #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) 49 + #define ZERO_PAGE(vaddr) ((void)(vaddr),virt_to_page(empty_zero_page)) 50 50 51 51 extern spinlock_t pgd_lock; 52 52 extern struct list_head pgd_list;