Skip to content

Commit 8f9a99a

Browse files
Souptick Joardersfrothwell
authored andcommitted
x86/mm/fault.c: Convert to use vm_fault_t
Convert to use vm_fault_t type for last argument of do_sigbus(). kbuild reported a warning during testing of final vm_fault_t patch integrated in mm tree. [auto build test WARNING on linus/master] [also build test WARNING on v5.0-rc1 next-20190109] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] https://github.com/0day-ci/linux/commits/Souptick-Joarder/ mm-Create-the-new-vm_fault_t-type/20190109-154216 All warnings: arch/x86/mm/fault.c:1051:39: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1057:29: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1059:29: warning: restricted vm_fault_t degrades to integer arch/x86/mm/fault.c:1094:62: warning: incorrect type in argument 4 (different base types) arch/x86/mm/fault.c:1094:62: expected unsigned int fault arch/x86/mm/fault.c:1094:62: got restricted vm_fault_t [usertype] fault This patch has fixed the warnings. Link: http://lkml.kernel.org/r/20190109183742.GA24326@jordon-HP-15-Notebook-PC Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 90cb574 commit 8f9a99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/fault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ bad_area_access_error(struct pt_regs *regs, unsigned long error_code,
10311031

10321032
static void
10331033
do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
1034-
unsigned int fault)
1034+
vm_fault_t fault)
10351035
{
10361036
struct task_struct *tsk = current;
10371037

0 commit comments

Comments
 (0)