Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1982051rda; Tue, 24 Oct 2023 08:52:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxLqgNd1DvJzj9GU8+RJYe7mYLqGquZMCylcLd8EH1ULLQXjYlg4ycPm7r0+TXAUPaEEOK X-Received: by 2002:a05:6358:9542:b0:168:efa4:3c66 with SMTP id d2-20020a056358954200b00168efa43c66mr3668925rwl.24.1698162726606; Tue, 24 Oct 2023 08:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698162726; cv=none; d=google.com; s=arc-20160816; b=z4YmGBiUCOVBGwnoUiyH2stFR60vI+AhtvNKdvKX3pnAFpNCVyS+RhupB5czJIgZQn QFDQZDNL6B1T+Ww6yUCRrZnuYP36GDuJut+qAjvBuSWjZ3CtNKbccZuayDADDyFvS6bl QDf2oP4zLF5YDflz14/GvWl+pzhxYkODxFgsVi8xIMW6af5b77+NEUFFEG31BzUfrJK2 Q86Qk1ONiIwEiCj5DZQfza3zLrKjhuNDVFxAug9IwiaecIR/I6kDp603pYWqKvb1EeJo NEHtEcJDGABzt8JmPFrFHx2mMmLR65GA5MRU8118Ns8fNdCd+9zcdmf23XMTGSMI4DKy r0tQ== 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=zAtCBw/84fj0jRn31+6t866IV1wtuFCttrZUfsGTji8=; fh=nAFKPkALsApfteg1ic/bb0a0C3am9dIjRdO1B5ZSNTk=; b=HpK4lo08uqaCRD2llQENXNoBL6qnUfpLxNVAj6bXttEyfBxSIs20Vn7u+fgO1LKteM epuTFaPGCmvbKtQZAlO5hHqsm1QMHuPYY8WRTyaY4XQicmBd/ars92g23Ac9RL89x4CW aXqNN2/YYIuPuEC5D0AsZoN8Dwmn7Heeyv1H76NE/FMD7d67ArlpMTj8uu90rnHU4c+w j9ow2woOS3fp1wPpF6Ipj9sHkYR3O3gKJdaAzBoK1lCsLLDaQOOHTQmtgjN+O9iw5Eqa ak2yl1lu60lvT2aXLlLtBV8P12VWCv/AbYRRT5Pluh49fhRPYzCp9QjEmxJCHgiPOkky jACQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lRD69P3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bz33-20020a056a02062100b0056952b496efsi8829440pgb.366.2023.10.24.08.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:52:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lRD69P3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3088C80B814A; Tue, 24 Oct 2023 08:52:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343608AbjJXPv5 (ORCPT + 99 others); Tue, 24 Oct 2023 11:51:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233628AbjJXPv4 (ORCPT ); Tue, 24 Oct 2023 11:51:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7404CDE; Tue, 24 Oct 2023 08:51:54 -0700 (PDT) Received: from localhost.localdomain (unknown [116.71.169.209]) (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 04D0A660732E; Tue, 24 Oct 2023 16:51:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698162713; bh=YeYy3+CWlsTYWmE3ZY32EUBI7hsgZl3/P6viV1Tr3jo=; h=From:To:Cc:Subject:Date:From; b=lRD69P3Cm7hmctulCRoxmdcSFIIHWL4f6Yx+BmQrOIU8+qh2zV/lI0najChNE2Fs0 x6BqwVKEpJvPqYQ55vvI/5i8DAZeGa8MNIt6fmhT8z/2Je+0RKAXsTP0KXRBGUrVpv iY3oiKE9pC4u3SjZr0NwOA2vRRo4GIRZ9r11xOkZD1D5RHLASoOalp6UVLDe9NlDUW dGsM0eDdETHP0cxx4yyOP7oVmZ4yCk863OE5Zu+q2+pVPk3DkcvYsNsASIG2+MvnAu N+quqP64kjvEnpw/tTn9HRp8ozlgqHkfgHaER7XB8ciQKGQNAyM9rFDYD/dFwm4e6l 9APAUG98fGlmg== From: Muhammad Usama Anjum To: Shuah Khan , Muhammad Usama Anjum Cc: kernel@collabora.com, Aishwarya TCV , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: core: include linux/close_range.h for CLOSE_RANGE_* macros Date: Tue, 24 Oct 2023 20:51:25 +0500 Message-ID: <20231024155137.219700-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:52:04 -0700 (PDT) Correct header file is needed for getting CLOSE_RANGE_* macros. Previously it was tested with newer glibc which didn't show the need to include the header which was a mistake. Fixes: ec54424923cf ("selftests: core: remove duplicate defines") Reported-by: Aishwarya TCV Link: https://lore.kernel.org/all/7161219e-0223-d699-d6f3-81abd9abf13b@arm.com Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/core/close_range_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/core/close_range_test.c b/tools/testing/selftests/core/close_range_test.c index 534576f06df1c..c59e4adb905df 100644 --- a/tools/testing/selftests/core/close_range_test.c +++ b/tools/testing/selftests/core/close_range_test.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "../kselftest_harness.h" #include "../clone3/clone3_selftests.h" -- 2.42.0