Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5314633rwd; Mon, 12 Jun 2023 03:19:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sDGcGi1p5O9JjNn8HHAV2L4dXFW+MKiCx6+KxgV1QLkAfwWnEP6ojexdSXiiWS7PbrYpH X-Received: by 2002:a05:6a20:12d1:b0:118:384f:89bc with SMTP id v17-20020a056a2012d100b00118384f89bcmr10883568pzg.27.1686565178556; Mon, 12 Jun 2023 03:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686565178; cv=none; d=google.com; s=arc-20160816; b=bpPAFJpHvx7mg7nxRy9AM/mUq0ZuzgLv9odds3UOw8u92mDwd5zW3oPPMHLD3HhXe/ YSRUwBhJ/6ZET+rHOj3jak/St8YBo3SbapcEWxYvjvAwHfpsjozRrpN5nLNfWgFfHOWB TcRfmKDDYPJ4crHFF7RwRKJ+9yZBuwCWiU2oPu6fJjHh8FgxxkmABSqra9kXDgQqVcn3 xEItXFc937egAuooDSLfF6yFHuME7m26PNpCFe7ii5iao2ZAsDAREG9Lalvu0DFTuGke E0Yd1zxKF+h3Z+b0f8lUS6FmMHRWHVv0ISUs2xOPbsOlNkdv7HOTHGmCgGVbC0UUB/gH nlCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yqnay59yTntx/Q+YrH6cT4oSRM/CuSz20pcYKW5eOeI=; b=qEzyEHC2rcT0LLevWtLlzpnrLk9rfVZEsyki1ggqZ29B+e7e+LE9MN4bX7888fLAHM 2NPqgJsYC6b5ZGpFFgl2cYzJmmD1/yviIPo5Zs0vxOUQd3mnNp49TvHFGe3RmJafsFhE Qcci8JWMcd00JcSrDaTjtiWXAjBw7QvSU0fsBBMQXbFlg5qkyWKMuMpFYR3P1b+aSHZ5 LAsLgtSsxfK2vQ9gZ1SAEXBIJOU/u3B3U8LwOPrZDcsnC+pEtKWT08tsrETXkNxr705H DfwHEn57b1eqFjp/0M6dkPTZgbGV2llbygilKeBYUEiB2c/6z8toPD4UZzZJqwyGk/yi N7dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KoMomehC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020aa79d0c000000b00646479e5702si6657289pfp.381.2023.06.12.03.19.27; Mon, 12 Jun 2023 03:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KoMomehC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbjFLKNo (ORCPT + 99 others); Mon, 12 Jun 2023 06:13:44 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.39.2