hugetlbfs: hugetlb_fault_mutex_hash() cleanup 61/292561/1
authorMike Kravetz <mike.kravetz@oracle.com>
Sun, 1 Dec 2019 01:56:30 +0000 (17:56 -0800)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:34:42 +0000 (18:34 +0900)
commit3385366efe5cb41b42fc09391fca745799be9f40
treeea21a7fa7cff0a215822c53cfdfb8a0a2223d863
parented0d0e04a0e2bd2ac3531fad05eaa4f91995c1ef
hugetlbfs: hugetlb_fault_mutex_hash() cleanup

commit 552546366a30d88bd1d6f5efe848b2ab50fd57e5 upstream.

A new clang diagnostic (-Wsizeof-array-div) warns about the calculation
to determine the number of u32's in an array of unsigned longs.
Suppress warning by adding parentheses.

While looking at the above issue, noticed that the 'address' parameter
to hugetlb_fault_mutex_hash is no longer used.  So, remove it from the
definition and all callers.

No functional change.

Link: http://lkml.kernel.org/r/20190919011847.18400-1-mike.kravetz@oracle.com
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Ilie Halip <ilie.halip@gmail.com>
Cc: David Bolvansky <david.bolvansky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-4.9.y commit 96f7d5fd6d9d to resolve gcc-12 build issue]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I3919e2d8c8edc1d3ad3825789824063397083145
fs/hugetlbfs/inode.c
include/linux/hugetlb.h
mm/hugetlb.c