linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hugetlbfs: convert macros to static inline, fix sparse warning
@ 2019-11-12 19:45 Mike Kravetz
  2019-11-12 19:45 ` [PATCH 1/2] powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h Mike Kravetz
  2019-11-12 19:45 ` [PATCH 2/2] hugetlbfs: convert macros to static inline, fix sparse warning Mike Kravetz
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Kravetz @ 2019-11-12 19:45 UTC (permalink / raw)
  To: linux-mm, linux-kernel
  Cc: Michael Ellerman, Ben Dooks, Jason Gunthorpe, kbuild,
	Andrew Morton, Mike Kravetz

The definition for huge_pte_offset() in <linux/hugetlb.h> causes a sparse
warning in the !CONFIG_HUGETLB_PAGE.  Fix this as well as converting
all macros in this block of definitions to static inlines for better type
checking.

When making the above changes, build errors were found in powerpc due to
duplicate definitions.  A separate powerpc specific patch is included as
a requisite to remove the definitions and get them from <linux/hugetlb.h>.

Cc: kbuild@lists.01.org in an attmept to flush out any other build issues.

Mike Kravetz (2):
  powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h
  hugetlbfs: convert macros to static inline, fix sparse warning

 .../include/asm/book3s/64/pgtable-4k.h        |   3 -
 .../include/asm/book3s/64/pgtable-64k.h       |   3 -
 arch/powerpc/mm/book3s64/radix_pgtable.c      |   1 +
 include/linux/hugetlb.h                       | 137 +++++++++++++++---
 4 files changed, 116 insertions(+), 28 deletions(-)

-- 
2.23.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-13  0:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 19:45 [PATCH 0/2] hugetlbfs: convert macros to static inline, fix sparse warning Mike Kravetz
2019-11-12 19:45 ` [PATCH 1/2] powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h Mike Kravetz
2019-11-12 19:45 ` [PATCH 2/2] hugetlbfs: convert macros to static inline, fix sparse warning Mike Kravetz
2019-11-12 21:13   ` Joe Perches
2019-11-13  0:11     ` Mike Kravetz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox