From patchwork Mon Dec 9 09:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Brodsky X-Patchwork-Id: 13899188 Return-Path: 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 267DDE7717D for ; Mon, 9 Dec 2024 09:50:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A9B078D0034; Mon, 9 Dec 2024 04:50:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9D55B8D0029; Mon, 9 Dec 2024 04:50:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 801378D0034; Mon, 9 Dec 2024 04:50:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 555188D0029 for ; Mon, 9 Dec 2024 04:50:53 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 02AC31203B2 for ; Mon, 9 Dec 2024 09:50:52 +0000 (UTC) X-FDA: 82874950620.08.FF5D2AC Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf21.hostedemail.com (Postfix) with ESMTP id 6618D1C000F for ; Mon, 9 Dec 2024 09:50:12 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf21.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733737836; 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; bh=q+2UJHxz6a7MH5+pr+GjIBI71Qv2ftK6J++0dCfXv90=; b=ZCrTfjL1TpZijtsz0zv7oGbusSPvirP82ki7sgV1gcbFrsBDbVO2XRCJo4MtyMhmVkpDBs EWDqtEuCU2DgOjUOFxi3AVe4Udz5KtZDqt00XX0FwtSzo1r4f94jipDE08cquqE+ehC2/o PiihkbfpHLtqr+YZHHVFdah5qn+pEKE= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf21.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733737836; a=rsa-sha256; cv=none; b=E9qICgXadp5xOTfRO9YUY7L+PvK4TWJK4T6I1ol01frVfPEEOoeJjZIRccC8sCvyiuRl3R heFfehTUCK0rdc7sU9Uw8aNpmVyGJrFHNJHP11m3BcQdPWUtwji3QT/FCuE747PWMSqbwu Va1NG5bzJEoXVYgBvstoBM658uVn8xk= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CF86E143D; Mon, 9 Dec 2024 01:51:18 -0800 (PST) Received: from e123572-lin.arm.com (e123572-lin.cambridge.arm.com [10.1.194.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C5A5E3F720; Mon, 9 Dec 2024 01:50:48 -0800 (PST) From: Kevin Brodsky To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Kevin Brodsky , akpm@linux-foundation.org, aruna.ramakrishna@oracle.com, catalin.marinas@arm.com, dave.hansen@linux.intel.com, joey.gouly@arm.com, keith.lucas@oracle.com, ryan.roberts@arm.com, shuah@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, x86@kernel.org Subject: [PATCH 05/14] selftests/mm: Build with -O2 Date: Mon, 9 Dec 2024 09:50:10 +0000 Message-ID: <20241209095019.1732120-6-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241209095019.1732120-1-kevin.brodsky@arm.com> References: <20241209095019.1732120-1-kevin.brodsky@arm.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 6618D1C000F X-Rspamd-Server: rspam12 X-Stat-Signature: kqq19cctmf8eu8uup19if9k7tusi4j5e X-Rspam-User: X-HE-Tag: 1733737812-596704 X-HE-Meta: U2FsdGVkX19VBIU4RxBwx/DnKZ6RTzShZBrmqJ+CS1ty2eI9PPCagcqhfiGMurRwQ79z1PaYT53p1Gk0jazLriEQ8iWCRqmlTmWeJcfjB4YouZb8X5tQP+Tkzj7qOC7mU2I2SEUXB3JKHAYKFgqGOQZBrLN1sQL0ftB+kM5jz1Mkrdj2alCat/39seBXbCTELazjAQBsiz2KyLH09D8gx0VoHlMj/VOaBhKorQjih7PKPsL8+nDIa2kmK8Ol0qQXwMMQSFvz168624q8E0wtyuOzPOKgbSGbXhwhURjDr8vi9P4JJSTNlBi5J7DMj4Lk6pPAF+p2BwmcT+wE15lZ0j6QlltxVJeN26gO9Fu1Az0lIcw36tdr1fM9h1vKfDQrd007vL5fMtvz7KW2iOoREgY28YjJrRkEbXqNKF5H7bJwQuZmX/BbSJz5FfT0hggE4nIWJ/JIaoEQIPkR1CiqbeY04U3PiNKadmBUMqTVaB4vyCMb/Gdb7rgRFweYz3SxdbGofdIAaV6Y8fpzSkPKbRcoywPD/5wjCsNzhxMB5B9yQh/c6CTOuNyZx+33JXkQ9PZ+NFKE/Gz0SIN+dn+yzh/tHgJ/gmut0yYcrcQcXawr/a20UYF6fO4HXh1SRhaYYBDZKgmWNszSFc8rXHsmGAsqZ3xGHbF5buqtrIEOunuc3t+sRxmZk68huRBCrNkYvr7czRC3/LRfZWNZGd4Bcvidr3d6UaRxBeHiueeMowwfNaAGPjbR8GY5fya8IudD2GqqOj5Fl9YykJJ+F0nsfdwOZGKvEvuGP+3CKU+zfNnfLRsidFW/AhQUoqKoNATy9tbQkWn9tdtigBr0wOjez7sVbQ1t08787AoufREW1pMcFaAY+wO8ARZcnaGZ1TxTbvQPS5WyawzcylVbt292gTdx0UMbokgnP7C1xNiiUEbkaIpqo4SeCk7rqy5XapbxlvQESYmOXpGKkt+tYpN CRZJiQbF 0frMCd7ULxMHpHEse9TprSu7AKdUBa/H/orWo8Gzq0VJyt+5cbxAnv4IfAwb9VNSRZR7Rpht6WQnOoPCNfKh0XaBZit5U6lI8XQ7mtpXs15GgaYtwllHQUE3W3KlHMAp95yY1MMPsYOMNE0nZxGDl4eifFPxcO96M4CApLt5ATWjNUtOOSUOL+573PW/T32wDjeWgAEXABSl0ov/Y4I+IJpq+rduOJo9ajT0AhGuKbaaRHRtx0jZ6sekcJw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The mm kselftests are currently built with no optimisation (-O0). It's unclear why, and besides being obviously suboptimal, this also prevents the pkeys tests from working as intended. Let's build all the tests with -O2. Signed-off-by: Kevin Brodsky --- tools/testing/selftests/mm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 3de23ea4663f..814b17a43385 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -33,7 +33,7 @@ endif # LDLIBS. MAKEFLAGS += --no-builtin-rules -CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES) +CFLAGS = -Wall -O2 -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) $(TOOLS_INCLUDES) LDLIBS = -lrt -lpthread -lm KDIR ?= /lib/modules/$(shell uname -r)/build