Commit 2efc983
selftests/memfd: delete unused declarations
[ Upstream commit a9117b4 ]
Commit 32d118a ("selftests/memfd: add tests for F_SEAL_EXEC"):
- added several unused 'nbytes' local variables
Commit 6469b66 ("selftests: improve vm.memfd_noexec sysctl tests"):
- orphaned 'newpid_thread_fn2()' forward declaration
- orphaned 'join_newpid_thread()' forward declaration
- added unused 'pid' local in sysctl_simple_child()
- orphaned 'fd' local in sysctl_simple_child()
- added unused 'fd' in sysctl_nested_child()
Delete the unused locals and forward declarations.
Link: https://lkml.kernel.org/r/20240118095057.677544-1-gthelen@google.com
Signed-off-by: Greg Thelen <gthelen@google.com>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Cc: Daniel Verkamp <dverkamp@chromium.org>
Cc: Jeff Xu <jeffxu@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: b243355 ("selftests/memfd: use IPC semaphore instead of SIGSTOP/SIGCONT")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent d809ee1 commit 2efc983
1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
198 | | - | |
199 | 196 | | |
200 | 197 | | |
201 | 198 | | |
| |||
715 | 712 | | |
716 | 713 | | |
717 | 714 | | |
718 | | - | |
719 | 715 | | |
720 | 716 | | |
721 | 717 | | |
| |||
734 | 730 | | |
735 | 731 | | |
736 | 732 | | |
737 | | - | |
738 | 733 | | |
739 | 734 | | |
740 | 735 | | |
| |||
750 | 745 | | |
751 | 746 | | |
752 | 747 | | |
753 | | - | |
754 | 748 | | |
755 | 749 | | |
756 | 750 | | |
| |||
1297 | 1291 | | |
1298 | 1292 | | |
1299 | 1293 | | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | 1294 | | |
1304 | 1295 | | |
1305 | 1296 | | |
| |||
1364 | 1355 | | |
1365 | 1356 | | |
1366 | 1357 | | |
1367 | | - | |
1368 | 1358 | | |
1369 | 1359 | | |
1370 | 1360 | | |
| |||
0 commit comments