Message ID | 20250109173842.1142376-17-usama.anjum@collabora.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D8EFE77199 for <linux-mm@archiver.kernel.org>; Thu, 9 Jan 2025 17:40:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1F056B00AF; Thu, 9 Jan 2025 12:40:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DCFA26B00B0; Thu, 9 Jan 2025 12:40:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C70BB6B00B1; Thu, 9 Jan 2025 12:40:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A4B496B00AF for <linux-mm@kvack.org>; Thu, 9 Jan 2025 12:40:30 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 65DA6160300 for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:40:30 +0000 (UTC) X-FDA: 82988627820.13.95C1B89 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by imf17.hostedemail.com (Postfix) with ESMTP id 040854001A for <linux-mm@kvack.org>; Thu, 9 Jan 2025 17:40:27 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=IGHq1TWY; spf=pass (imf17.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=none) header.from=collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736444428; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=xbevEof0duXdPukRg64fWg8r3pNNC6hhoZocH1wOXRU=; b=GgqttTbkPwEjGiqFsdCYjMLMlB6jCGe32jo9/5B5fXU1faDyWYGH7y8HEW5rAu3sZ2NnwC pgyQO6CBwsekJeQvzYvB6MHcK+DtCjIWrdVibnPLjJOBR6pXWwp8O5SIUadrXAORo+NbMx Oni1k+2fjwC7rnQbEKvdm2/xdmjljS0= ARC-Authentication-Results: i=2; imf17.hostedemail.com; dkim=pass header.d=collabora.com header.s=zohomail header.b=IGHq1TWY; spf=pass (imf17.hostedemail.com: domain of usama.anjum@collabora.com designates 136.143.188.112 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=none) header.from=collabora.com; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736444428; a=rsa-sha256; cv=pass; b=e12J+JmMDnoRdStYJk2fGKIR0vEuU2mho/CioDn2dT5sqDQCZfRNjfSRpXy0jGV0xcwWye MOy1OLycHmQoEdscPPd09mcHYyfIY4QAkRi6N1Gy2hdcEvUzYM3zVV06hymhL/rzSoQ1ad 1Qs5exFDJlrC3SzlOM23jH8YJ4paPH8= ARC-Seal: i=1; a=rsa-sha256; t=1736444414; cv=none; d=zohomail.com; s=zohoarc; b=PBKPPCDCtFUSbvwEA+dM30ZUlOyg8CGjCb4bNH+l3Z9tj457RqYurRZYPqgFRgFQER9IeW1bXjTI6p+qUkE5tcdh+6ur5L5HD9UVvCPTfQo5lE9q+YFPqEAwAGZraoQo3rlVp2er/Ss425w5Igj+T4JCNkiVdy1t8nG+SxVJook= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1736444414; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=xbevEof0duXdPukRg64fWg8r3pNNC6hhoZocH1wOXRU=; b=T8NTH9UVPUu8OimEOPe/GCeUgjKd1VM1wL/zIzSZh7mGKGVbqPm/oN1P7w+vm449XhxwbpOhJo5i7TtdF187f1AwLSEOfu0FpZoTIiLQ1yYN/tYzRpWzSuSxQDg1N9wAg85LWrZJFkX3IToiX5yNY5EC8Z7bgo/BVXJuk0s9oOE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass header.from=<usama.anjum@collabora.com> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1736444414; s=zohomail; d=collabora.com; i=usama.anjum@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=xbevEof0duXdPukRg64fWg8r3pNNC6hhoZocH1wOXRU=; b=IGHq1TWYopiUOIH2rYweRqWsO3Le0EKf3rjrw1rcvNjecylNL8KffSRkrTjoMBrU XSirTpC4sqxpEaQR7dZWm57+mY7GZ3V5rC6zVpzTJeUm+VV8WU8eHfQH4Na1xUnU2Dv dOGbVqRhnTVb7hrTdvxAnIuT6bxw0Oid88fjB8aU= Received: by mx.zohomail.com with SMTPS id 173644441288525.56642632894159; Thu, 9 Jan 2025 09:40:12 -0800 (PST) From: Muhammad Usama Anjum <usama.anjum@collabora.com> To: Kees Cook <kees@kernel.org>, Andy Lutomirski <luto@amacapital.net>, Will Drewry <wad@chromium.org>, Shuah Khan <shuah@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>, kernel@collabora.com Subject: [PATCH 16/16] selftests/mm: Makefile: Add the compiler flags Date: Thu, 9 Jan 2025 22:38:42 +0500 Message-Id: <20250109173842.1142376-17-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250109173842.1142376-1-usama.anjum@collabora.com> References: <20250109173842.1142376-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Rspamd-Server: rspam05 X-Stat-Signature: u4pkmc9rogmytjfkxatwie7rtg4ujgsj X-Rspamd-Queue-Id: 040854001A X-Rspam-User: X-HE-Tag: 1736444427-530366 X-HE-Meta: U2FsdGVkX1+OjlW7GohpAZvCUHkGp1zxJWu51iF+iDq8yMhctukxNepR1XOMLtGzVUpUWoIrdPKmHE7mzjxp+7QY8rG6qeo6EZV2Q7sgBQIuQWSlJ3Af/UbM8Tds3xVTzmeXG/7QlSNTFhU5s0pocZ+1gH1IROiW1rrYeU17RHuAaXYKrNpNrhtZi+2FcfTEuLBlKI5y8mT9K3BZe6H5Dyl5K1jc/wO+OJ4kF1YAGaVLanFS4uwQIY3PfxcY67CUbIuRvogtBhl8CTmYYlTLQrX/pSOt1gbCYd+WoNUMteqP/IORyucQCjlTwbwZ7aFcTW4aNq5P6rr6V7c5Jk0WNc1JEZRFXlc2W6zN+2pAOSVEyZpK4ffJJL1g5rBMrYAud04FawE4DI+hlnwUKQpJKv+URbNu7kA5ZxAkcqgyjF9WUP/cb9XSeScMZ9Bn7N6SfLJLSmmrELPx6/oaH8so3Iwxkrixe+TBhne8kkhjgdjU1BOLFi07exKKwUcODRrUq6fjvN3cbpKNKepoyisij3DDFvfoCsYYcqx/I4/m2lFxoLDH8Qq97An6Ne2ooRF3OHG5IyoycxonCpHDzTifzq/QvcQJlE6LY5WKMt9IcjLo+SGIpCWbAyDx2kA5uZPkOsI6PK3CLhTi32EVAmctUBZkZ2TSvJaFttFob26IH6prV1u41MAg2fD3Tq3qYHDWnKRBFkVX5YyDc4gLIYZFF4/Fxb/jNGz8qACp9HxiW28A+KJGgMILNhzZ5iEk5UQ8miQKshsPHx54ixHhhxEs+kf72k++HivSca++awxaanEW7PkwgDK1QMWDgqLNtZZ2RrElT6HWDv0QIBHbENSvNpFiy2aTwcGNeAbBEZ2g5bQBUizyESnyz95DpFkjzGJ9RFH0gLX2mgooadCJ8g1pO363ZU+DykOkQx26EVnI2MSMCDfkKJMNBfzt5/ycc0z2GtmilRMde9z7oc5kn9L Yz1AmpSv fiZgG/X0TX8ub8yo8bAVFIhFFdew/p0KnJacKLIko83jPGH6iRGbWdGs25sHFiWK6Oh9BltSt2bspY2kAEQhHLdJPKVHLGW9hmru3aobeZEeW1UjG+EnrV1L4q18ifFScVwKP/tLAmoKFKCGNL5CRYAhwuhoHfhimBL+x8N3emfcoX3yA3shz9fLczudbyyAzgnpxmBE0QT9nFz934wALXSpxd5lsvVP2tSDE5k3FhzvJL5uhe8TXC0Kw+3daJ+cQnpLR1i7SLKv/3rDkwIiOLGIiKGbUV4irOpGxfd0/yvayq645apAR55ubsEM2DD63R7Dw X-Bogosity: Ham, tests=bogofilter, spamicity=0.001294, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
selftest/mm: Remove warnings found by adding compiler flags
|
expand
|
diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 63ce39d024bb5..006ed2e8df87e 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -34,6 +34,7 @@ endif MAKEFLAGS += --no-builtin-rules CFLAGS = -Wall -O2 -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES) +CFLAGS += -Wunreachable-code -Wunused -Wunused-parameter -Wunused-function -Wunused-variable LDLIBS = -lrt -lpthread -lm # Some distributions (such as Ubuntu) configure GCC so that _FORTIFY_SOURCE is
Add the compiler flags to catch warnings during development. Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> --- tools/testing/selftests/mm/Makefile | 1 + 1 file changed, 1 insertion(+)