linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] selftest/mm: Remove warnings found by adding compiler flags
@ 2024-12-09 18:56 Muhammad Usama Anjum
  2024-12-09 18:56 ` [PATCH 1/4] selftests/mm: thp_settings: remove const from return type Muhammad Usama Anjum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Muhammad Usama Anjum @ 2024-12-09 18:56 UTC (permalink / raw)
  To: Andrew Morton, Shuah Khan, Ryan Roberts, David Hildenbrand,
	linux-mm, linux-kselftest, linux-kernel
  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 in a few files. More fixes
would be sent later.

Muhammad Usama Anjum (4):
  selftests/mm: thp_settings: remove const from return type
  selftests/mm: pagemap_ioctl: Fix types mismatches shown by compiler
    options
  selftests/mm: mseal_test: remove unused variables
  selftests/mm: mremap_test: Remove unused variable and type mismatches

 tools/testing/selftests/mm/mremap_test.c   |  15 +--
 tools/testing/selftests/mm/mseal_test.c    |   8 +-
 tools/testing/selftests/mm/pagemap_ioctl.c | 108 +++++++++++----------
 tools/testing/selftests/mm/thp_settings.c  |   4 +-
 tools/testing/selftests/mm/thp_settings.h  |   4 +-
 tools/testing/selftests/mm/vm_util.c       |   2 +-
 6 files changed, 75 insertions(+), 66 deletions(-)

-- 
2.39.5



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

end of thread, other threads:[~2024-12-09 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-09 18:56 [PATCH 0/4] selftest/mm: Remove warnings found by adding compiler flags Muhammad Usama Anjum
2024-12-09 18:56 ` [PATCH 1/4] selftests/mm: thp_settings: remove const from return type Muhammad Usama Anjum
2024-12-09 18:56 ` [PATCH 2/4] selftests/mm: pagemap_ioctl: Fix types mismatches shown by compiler options Muhammad Usama Anjum
2024-12-09 18:56 ` [PATCH 3/4] selftests/mm: mseal_test: remove unused variables Muhammad Usama Anjum
2024-12-09 18:56 ` [PATCH 4/4] selftests/mm: mremap_test: Remove unused variable and type mismatches Muhammad Usama Anjum

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