]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: thp_settings: remove const from return type
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Mon, 9 Dec 2024 18:56:21 +0000 (23:56 +0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:52 +0000 (22:40 -0800)
commit2f3577d16c8644455f215abb3c2f77aa32b967b1
tree1857014261bd354b3675d624e6e285140a891bd8
parentb487c02430104a2df7ecee8dabaf3b3b66e536bf
selftests/mm: thp_settings: remove const from return type

Patch series "selftest/mm: Remove warnings found by adding compiler flags".

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 will
be sent later.

This patch (of 4):

Remove cost from the return type as it is ignored anyways and generates
the warning:

  warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

Link: https://lkml.kernel.org/r/20241209185624.2245158-1-usama.anjum@collabora.com
Link: https://lkml.kernel.org/r/20241209185624.2245158-2-usama.anjum@collabora.com
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/thp_settings.c
tools/testing/selftests/mm/thp_settings.h