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: 13275995 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 6284FC7EE25 for ; Mon, 12 Jun 2023 09:54:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E8FFA6B0072; Mon, 12 Jun 2023 05:54:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E3E7E6B0074; Mon, 12 Jun 2023 05:54:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D2DED6B0075; Mon, 12 Jun 2023 05:54:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C28D76B0072 for ; Mon, 12 Jun 2023 05:54:14 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 85BF680195 for ; Mon, 12 Jun 2023 09:54:14 +0000 (UTC) X-FDA: 80893635228.27.4A528D1 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by imf24.hostedemail.com (Postfix) with ESMTP id E5BF0180004 for ; Mon, 12 Jun 2023 09:54:12 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=KoMomehC; spf=pass (imf24.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.172 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686563653; 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:references:dkim-signature; bh=Yqnay59yTntx/Q+YrH6cT4oSRM/CuSz20pcYKW5eOeI=; b=1CSnAqZP6/yjhOH5AELMhPbWqtBnmbMc62XHH6iRHZ9iCHfBQBso9xHPO5S9Lekw8B+tZh ZfJHP/RHJXs75ikwbJP3Yv/96fBeDHalK68vEYj3Vc320c45f9kvZTxOLfy83Ia+4MZ7e3 QCkQfuKl2cK8ZSx/IIkWmo0lNPypgk0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686563653; a=rsa-sha256; cv=none; b=wEFEhLQXaLBS1LCxr8hiy6bQPuUDRfFadQn5jbFkSfOpTHYHBc23i5+ej47nsCUfg+P67z zYvkVtnM3FZrTZn/1XTxi2gLdH+vkD9ntjD76eugyJpl9mIrilUSjPgYjsYtnwII6OX7Z1 xBair2TgM3mzUpQcUckq5GGh49160Ok= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=KoMomehC; spf=pass (imf24.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.172 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com 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 X-Rspamd-Queue-Id: E5BF0180004 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 3t75nfkoiqe6sb3jt6z199emmbnuzm6z X-HE-Tag: 1686563652-578400 X-HE-Meta: U2FsdGVkX1/fvGaVJLLu0uSKYTFIBqnieH6tyjJ+60Wrv6+fJkq4ATrAIaI31OKKcho0NlIGuNeI7PVXulaKNhvSTeqpRNSZpq3oGT64GGS0okmHCrozY9pCDLp8trWKoeeoFBbXrZHoLmL4WjmeWqZ+0Bh6CzFMq4mg9dO2k9ryUVWYgWE/SBBgk96fAN2mxNmHidK3w9pZJtKK2uNJjWbDkbeFb+ujWURVIyVDRPRwsbS22Dm4irNGPAtCY5bRj6JU8UlsugHjtGGSnG2rJgvVCzbvq4pFdf0/Fo6htOun+6/OGrie/NCB6QdTR0IlDhHHGBEk4Af0OhRUbYvSK/vHEJfz4if1Yyhnn6gORAN5g1AH3IAXc3iUCss5aIQgwxbvuc32IMJ8kdjS/+Wzd1ndYMXMKiJwVToshlCESYbwrXWAEx0ceWoqrnerdbonXxSR7inZ4ixm2ah3wAolDsd+rOEKR8gNW9wBSFRL/HaWbMNZ3BlL0TAIj+3NLksnx9avjfrX9RO03J39w1qpbCv2ZkcaaPZK+cIaKIeWhIP0vSsxSzKZko9ses6C0JdVv0GNo5yZtSCKEBnc7QWFr55HpDC9EBNxOPITXC8FKmOQFIfuAn19fAdAhNIO/QKIZqHZYv3f/6Opx1IAWeNPTJRTdMM0kGx2agDIzVKhjf7lkLkk5Gg2tg5xz9SXJmKbsWAE6UusHJzxjofz2A6UIbjNefuIEhZbAo9nnvDxHt63cqTVKkA+DX4/JH4oE3w9UgWp8pgX0Wg2KFKWoWwe1vyPEhJPOr9EaSIVwi8sFEyX6Anfx/PQvD7r+oApl+krQmboesVp1W8cYHoOfFkbwjSJ9qHWwopAEYtgPwLztamLDNIrWWLv0WGsjyoEcThBAG03CkJdb/lJ/pLRcCXWIDGE+6JYs7e80pi3ln1V3LPl7QO/wAgMHK971onYtWCCzFcobMogriGP7kqfKSP j3hq442m TBkzOHpOK4A+PY6RQCZkU8vkfVfdqx0+tCfZ0aunuX05BgyOfGT4PlpRpgxcs9XJWhlnYAarOKA4zN74MMsAPH1cb9POu+pW4JRyl1X5o+6VNM0qySvj0L23FHI8fapSbImA4kPrJK3HP0yHhSz5UTu4r6Ke3GPUtQXwMydF/XYB5Wb3uq4zoX2wHnlpVzSX8XkBM/DK8CKD9ZMqWqcYlPtYti95pfZJvQsPmnjijjnXqUsyK9Ick33rT1A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.002840, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Acked-by: David Hildenbrand --- 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