From patchwork Mon Jun 12 09:53:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 692365 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88E47C7EE2E for ; Mon, 12 Jun 2023 10:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbjFLKNl (ORCPT ); Mon, 12 Jun 2023 06:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbjFLKNU (ORCPT ); Mon, 12 Jun 2023 06:13:20 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79D64696; Mon, 12 Jun 2023 02:54:12 -0700 (PDT) Received: from localhost.localdomain (unknown [119.152.150.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 31BDE6605907; Mon, 12 Jun 2023 10:54:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686563651; bh=rito2JpNjG7S6ZzrjRBC00M4lMhGjp6mCmm01aYha1Y=; h=From:To:Cc:Subject:Date:From; b=KoMomehCXAbDciTeS7+Y2ExKHoDuFHC5QM/m3ji8ngVe+xAZG0/W9jk7oyfHeW6DW 6AZLgs0L853f+9NB9Pco1ecFDEzcV6GKJ1hl4umlGf1WnrZ8YzMWstAQKTWkIka/Hd TVWNQDQtv06Zpw04TYK0Ud/2ATDiBYh5tp7XONtcZIxo8duVg0jFkUE0MOsHZ8tKhT Sgz2MqLDusvd/Jd2tes8MKEOGbnayMimFT6dgdGBQfC4GZwn13uhycd2h2uAmAiLJ9 W3lnt/mZZaori6zUlHdNyWtzVivtzBthX40OVD7EH5tghhtZjstkrcqEa5Z3VZh3e0 W6N2vyOo4TIoA== From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan , David Hildenbrand , Stefan Roesch Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] selftests: mm: remove wrong kernel header inclusion Date: Mon, 12 Jun 2023 14:53:46 +0500 Message-Id: <20230612095347.996335-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org It is wrong to include unprocessed user header files directly. They are processed to "/usr/include" by running "make headers" and they are included in selftests by kselftest makefiles automatically with help of KHDR_INCLUDES variable. These headers should always bulilt first before building kselftests. Fixes: 07115fcc15b4 ("selftests/mm: add new selftests for KSM") Signed-off-by: Muhammad Usama Anjum --- 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 95acb099315e..e6cd60ca9e48 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -29,7 +29,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p # LDLIBS. MAKEFLAGS += --no-builtin-rules -CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/tools/include/uapi $(EXTRA_CFLAGS) $(KHDR_INCLUDES) +CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES) LDLIBS = -lrt -lpthread TEST_GEN_PROGS = cow