linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/16] selftest/mm: Remove warnings found by adding compiler flags
@ 2025-01-09 17:38 Muhammad Usama Anjum
  2025-01-09 17:38 ` [PATCH 01/16] selftests/mm: remove argc and argv unused parameters Muhammad Usama Anjum
                   ` (16 more replies)
  0 siblings, 17 replies; 26+ messages in thread
From: Muhammad Usama Anjum @ 2025-01-09 17:38 UTC (permalink / raw)
  To: Kees Cook, Andy Lutomirski, Will Drewry, Shuah Khan,
	Andrew Morton, Jérôme Glisse, linux-kselftest,
	linux-kernel, linux-mm
  Cc: Muhammad Usama Anjum, kernel

Recently, I reviewed a patch on the mm/kselftest mailing list about a
test which had obvious type mismatch fix in it. It was strange why that
wasn't caught during development and when patch was accepted. This led
me to discover that those extra compiler options to catch these warnings
aren't being used. When I added them, I found tens of warnings in just
mm suite.

In this series, I'm fixing those warnings. The last check adds the
compiler flags with which the warnings have been caught.

Muhammad Usama Anjum (16):
  selftests/mm: remove argc and argv unused parameters
  selftests/mm: Fix unused parameter warnings
  selftests/mm: Fix unused parameter warnings
  selftests/mm: Fix type mismatch warnings
  selftests/mm: kselftest_harness: Fix warnings
  selftests/mm: cow: remove unused variables and fix type mismatch
    errors
  selftests/mm: hmm-tests: Remove always false expressions
  selftests/mm: guard-pages: Fix type mismatch warnings
  selftests/mm: hugetlb-madvise: fix type mismatch issues
  selftests/mm: hugepage-vmemmap: fix type mismatch warnings
  selftests/mm: hugetlb-read-hwpoison: Fix type mismatch warnings
  selftests/mm: khugepaged: Fix type mismatch warnings
  selftests/mm: protection_keys: Fix variables types mismatch warnings
  selftests/mm: thuge-gen: Fix type mismatch warnings
  selftests/mm: uffd-*: Fix all type mismatch warnings
  selftests/mm: Makefile: Add the compiler flags

 tools/testing/selftests/kselftest_harness.h   |  6 +-
 tools/testing/selftests/mm/Makefile           |  1 +
 tools/testing/selftests/mm/compaction_test.c  |  4 +-
 tools/testing/selftests/mm/cow.c              | 48 ++++++++-------
 tools/testing/selftests/mm/droppable.c        |  2 +-
 tools/testing/selftests/mm/guard-pages.c      |  4 +-
 tools/testing/selftests/mm/gup_longterm.c     |  5 +-
 tools/testing/selftests/mm/hmm-tests.c        |  4 +-
 tools/testing/selftests/mm/hugepage-vmemmap.c |  5 +-
 tools/testing/selftests/mm/hugetlb-madvise.c  |  4 +-
 .../selftests/mm/hugetlb-read-hwpoison.c      |  6 +-
 .../selftests/mm/hugetlb-soft-offline.c       |  2 +-
 tools/testing/selftests/mm/hugetlb_dio.c      |  2 +-
 .../selftests/mm/hugetlb_fault_after_madv.c   |  6 +-
 .../selftests/mm/hugetlb_madv_vs_map.c        |  8 +--
 tools/testing/selftests/mm/khugepaged.c       | 16 ++---
 .../selftests/mm/ksm_functional_tests.c       |  6 +-
 tools/testing/selftests/mm/ksm_tests.c        | 17 +++---
 tools/testing/selftests/mm/madv_populate.c    |  2 +-
 tools/testing/selftests/mm/map_populate.c     |  2 +-
 tools/testing/selftests/mm/memfd_secret.c     |  6 +-
 .../testing/selftests/mm/mlock-random-test.c  |  6 +-
 tools/testing/selftests/mm/mlock2-tests.c     |  2 +-
 tools/testing/selftests/mm/on-fault-limit.c   |  2 +-
 tools/testing/selftests/mm/pkey-x86.h         |  4 +-
 .../selftests/mm/pkey_sighandler_tests.c      | 21 ++++---
 tools/testing/selftests/mm/protection_keys.c  | 34 ++++++-----
 tools/testing/selftests/mm/soft-dirty.c       |  8 +--
 .../selftests/mm/split_huge_page_test.c       |  4 +-
 tools/testing/selftests/mm/thuge-gen.c        | 10 ++--
 tools/testing/selftests/mm/uffd-common.c      | 24 ++++----
 tools/testing/selftests/mm/uffd-common.h      |  2 +-
 tools/testing/selftests/mm/uffd-stress.c      |  4 +-
 tools/testing/selftests/mm/uffd-unit-tests.c  | 58 +++++++++----------
 tools/testing/selftests/mm/uffd-wp-mremap.c   |  2 +-
 .../selftests/mm/virtual_address_range.c      |  2 +-
 36 files changed, 180 insertions(+), 159 deletions(-)

-- 
2.39.5



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2025-02-01  7:42 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09 17:38 [PATCH 00/16] selftest/mm: Remove warnings found by adding compiler flags Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 01/16] selftests/mm: remove argc and argv unused parameters Muhammad Usama Anjum
2025-01-09 17:42   ` Kees Cook
2025-01-09 17:48     ` Muhammad Usama Anjum
2025-01-09 17:50       ` Kees Cook
2025-01-10  0:12         ` Andrew Morton
2025-02-01  7:43           ` Muhammad Usama Anjum
2025-01-10 19:00   ` David Laight
2025-02-01  7:32     ` Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 02/16] selftests/mm: Fix unused parameter warnings Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 03/16] " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 04/16] selftests/mm: Fix type mismatch warnings Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 05/16] selftests/mm: kselftest_harness: Fix warnings Muhammad Usama Anjum
2025-01-15 22:19   ` Mark Brown
2025-01-09 17:38 ` [PATCH 06/16] selftests/mm: cow: remove unused variables and fix type mismatch errors Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 07/16] selftests/mm: hmm-tests: Remove always false expressions Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 08/16] selftests/mm: guard-pages: Fix type mismatch warnings Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 09/16] selftests/mm: hugetlb-madvise: fix type mismatch issues Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 10/16] selftests/mm: hugepage-vmemmap: fix type mismatch warnings Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 11/16] selftests/mm: hugetlb-read-hwpoison: Fix " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 12/16] selftests/mm: khugepaged: " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 13/16] selftests/mm: protection_keys: Fix variables types " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 14/16] selftests/mm: thuge-gen: Fix type " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 15/16] selftests/mm: uffd-*: Fix all " Muhammad Usama Anjum
2025-01-09 17:38 ` [PATCH 16/16] selftests/mm: Makefile: Add the compiler flags Muhammad Usama Anjum
2025-01-16  5:32 ` [PATCH 00/16] selftest/mm: Remove warnings found by adding " Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox