Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1290584
| From | Chen Gang <chengang@emindsoft.com.cn> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH trivial] include/asm-generic/page.h: Notice about 80 columns |
| Date | 2015-12-13 10:10 +0100 |
| Message-ID | <qFaPf-6oH-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
It is a trivial patch. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> --- include/asm-generic/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h index 67cfb7d..e04cef4 100644 --- a/include/asm-generic/page.h +++ b/include/asm-generic/page.h @@ -87,7 +87,8 @@ extern unsigned long memory_end; #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT) #endif -#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) +#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && \ + ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ ((void *)(kaddr) < (void *)memory_end)) -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH trivial] include/asm-generic/page.h: Notice about 80 columns Chen Gang <chengang@emindsoft.com.cn> - 2015-12-13 10:10 +0100
csiph-web