diff options
| author | Guo Zhengkui <[email protected]> | 2022-03-22 21:45:35 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-22 22:57:08 +0000 |
| commit | d794103d52739f8e27b69c4895dbf5a5a7a805cc (patch) | |
| tree | c90acae30acc160c2818a96236fe65ae3440257c /fs/xfs/libxfs/xfs_btree.c | |
| parent | userfaultfd: provide unmasked address on page-fault (diff) | |
| download | kernel-d794103d52739f8e27b69c4895dbf5a5a7a805cc.tar.gz kernel-d794103d52739f8e27b69c4895dbf5a5a7a805cc.zip | |
userfaultfd/selftests: fix uninitialized_var.cocci warning
Fix following coccicheck warning:
tools/testing/selftests/vm/userfaultfd.c:556:23-24:
WARNING this kind of initialization is deprecated
`unsigned long page_nr = *(&page_nr)` has the same form of
uninitialized_var() macro. I remove the redundant assignement. It has
been tested with gcc (Debian 8.3.0-6) 8.3.0.
The patch which removed uninitialized_var() is:
https://lore.kernel.org/all/[email protected]/ And there is
very few "/* GCC */" comments in the Linux kernel code now.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Guo Zhengkui <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.c')
0 files changed, 0 insertions, 0 deletions
