diff options
author | Mike Kravetz <mike.kravetz@oracle.com> | 2019-12-01 02:56:40 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-01 21:59:08 +0100 |
commit | 1f9dccb25b8fb48778149a002bb25d4ac2899633 (patch) | |
tree | a3c8518f5710f003aac9599682529d347fb1f261 /Documentation/security/SCTP.rst | |
parent | powerpc/mm: remove pmd_huge/pud_huge stubs and include hugetlb.h (diff) | |
download | linux-1f9dccb25b8fb48778149a002bb25d4ac2899633.tar.xz linux-1f9dccb25b8fb48778149a002bb25d4ac2899633.zip |
hugetlbfs: convert macros to static inline, fix sparse warning
huge_pte_offset() produced a sparse warning due to an improper return
type when the kernel was built with !CONFIG_HUGETLB_PAGE. Fix the bad
type and also convert all the macros in this block to static inline
wrappers. Two existing wrappers in this block had lines in excess of 80
columns so clean those up as well.
No functional change.
Link: http://lkml.kernel.org/r/20191112194558.139389-3-mike.kravetz@oracle.com
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Reported-by: Ben Dooks <ben.dooks@codethink.co.uk>
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/security/SCTP.rst')
0 files changed, 0 insertions, 0 deletions