Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1543311rdb; Mon, 19 Feb 2024 22:01:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXl3pUW0YaV7+N/fParwkg5EMGUILVe/yFP8fgQ5yeyNU9dFINMemaJHKb/Yjrhd1CwPjIrD9qLYLVv4rRLpHjEY5ii/ys7RtTVDx5HwA== X-Google-Smtp-Source: AGHT+IEPRcgJNqnN5QRH2AYtWEVqZPn7qzyxfaovYZsoVNVrECMUK06xPufabK0XbPHIogsKn2uJ X-Received: by 2002:a05:620a:24d2:b0:783:ae0c:5e8f with SMTP id m18-20020a05620a24d200b00783ae0c5e8fmr17025959qkn.71.1708408859642; Mon, 19 Feb 2024 22:00:59 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id sq3-20020a05620a4ac300b007871791228fsi7880733qkn.669.2024.02.19.22.00.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 22:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Yysu/Cl+"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-72372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 30FE81C2280E for ; Tue, 20 Feb 2024 06:00:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59A2C57899; Tue, 20 Feb 2024 06:00:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Yysu/Cl+" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2078.outbound.protection.outlook.com [40.107.93.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC6F357302; Tue, 20 Feb 2024 06:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.78 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708408849; cv=fail; b=VHoWckGEW2zmzZ4j4P66A3GIs65LJWBzTc66fzuDnK0fVwWlNkwS/BFsgTXkldihbStyGTMWaoMCDgbuQs4J6kyEnQLoeiR5PcCNdYSw+JxsvHStsHGrfKm23awR49A3up5/ruwK+QgHQ5IzVzcUD45CeP2NLzZlsYPeYd1pvMc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708408849; c=relaxed/simple; bh=G4Tc+7Zb3w+pmvhaBq+QwaDIX9/OWcq55Yha3Uk8pl4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BM7SR8YfLJvTWHsdijH8tn7KYHIKOu0n3HEOTjSwJPdzRSDV6YKxzT2DhrjXsLq7JDCP8ftlBnHbjZoaw+r2QVgK80hnBsMxeKFr1HmqOO5etA57MbYWTOzpRajNeKSRwdE25IuWO/og0n66r3PHXsXouLq2oXM43Kzjzin3QSY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=Yysu/Cl+; arc=fail smtp.client-ip=40.107.93.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cK9gmoKms6cI2QK+ep22w2yNCQ3af4jD0O6Nr5qstbu9bHgO3qaGIdXeAG4HGOVmkc/6ZLeK8QEIh7DAmnSCJnNuwcVhyXzUD2LApOtvB4gnP0YVpBN/nPnuK2qBH1zhdWCUnJ/hiX4dfsmZ2xY9nusbNf93UCLRpaLiaI0GRQOqewLcpAADdrS/QVhPogPxxX9NXFpzPbSs0GnMo4KGXSOFev95WZRcqKZ3Z4A9AaTDRDvLqN/EUz1wuAIDxfNAkdmFN6TS513f/WFsPAtH32GvplK3ExenOI+inqYmG18KMREaMPoQVhIMbHX13sQG2p9iGkAqGr0nI0shhQ80Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bHn3iXH7UVdNTmCEfhrVhu0TnsY4LxYdcTCsJr0bNbg=; b=KOQ9AGtzG5s94uoWHJbyT0ows+7f6XynC3CAeZACahRedNxDz48WPIPH1Nc1zSeEjsxENu4roxPDAKvDqmY6LwiR2sO+FqH/I/FhiVd7DANlybvVfy5qrFX6r7y3MrGyON1qi6ZJBeEo1K0dTcUium5mMmrbPc3Mts++wNr6nA/Fz3dYsZGG8Pzhuashhe0CZyMK1fI3yoFaAZk9bfI6IJUgJ/GukzZhg+VVV8HUmCCr4i+XavOfeo1+olhIY5JIvDWZcqogiB2tp46U6J5IQLf1vs8OcgCi4PLp7mzrwpMc3RNcuK1zG5y4qo791iVzL8/UBQFtPeYTe+9g0o6IZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bHn3iXH7UVdNTmCEfhrVhu0TnsY4LxYdcTCsJr0bNbg=; b=Yysu/Cl+nCRnYxV7om0gB59rED1W/MjqXFiESrV+R1io64HnbeeW085NP+wLOpSRaim2rqKACajdPEvDSLj4kBr+owkZK/QkBRTHNrNvB3xvsqv5Ewta+0GLV16IUNR/9/PXinL2y+/hu6n1E4geNpHJk/pzjgGmeJv05GJRcqc= Received: from CH5P222CA0002.NAMP222.PROD.OUTLOOK.COM (2603:10b6:610:1ee::22) by BN9PR12MB5339.namprd12.prod.outlook.com (2603:10b6:408:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.20; Tue, 20 Feb 2024 06:00:45 +0000 Received: from CH3PEPF0000000D.namprd04.prod.outlook.com (2603:10b6:610:1ee:cafe::85) by CH5P222CA0002.outlook.office365.com (2603:10b6:610:1ee::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.40 via Frontend Transport; Tue, 20 Feb 2024 06:00:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH3PEPF0000000D.mail.protection.outlook.com (10.167.244.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7292.25 via Frontend Transport; Tue, 20 Feb 2024 06:00:45 +0000 Received: from jasmine-meng.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 20 Feb 2024 00:00:41 -0600 From: Meng Li To: "Rafael J . Wysocki" , Huang Rui CC: , , , , Shuah Khan , , "Nathan Fontenot" , Deepak Sharma , Alex Deucher , Mario Limonciello , Shimmer Huang , "Perry Yuan" , Xiaojian Du , Viresh Kumar , Borislav Petkov , Meng Li Subject: [RESEND PATCH] selftests/overlayfs: fix compilation error in overlayfs Date: Tue, 20 Feb 2024 13:59:40 +0800 Message-ID: <20240220055940.3563308-1-li.meng@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF0000000D:EE_|BN9PR12MB5339:EE_ X-MS-Office365-Filtering-Correlation-Id: f21f3f58-9515-410a-608e-08dc31d9474f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NKD70da/Md+FtySDEGKpzKK/L8cSQZtjuLV2gmAPNtNSGnXSdQNqw/2+WCCXHhp3obrBguPvlu1isleWHp2ZTiw776Gcw98VhT+FHxXpZ2/JSJiy+kikCQ/GwhvdA89XA3tMnJkwu2MLO9PgAzMYuL3fDKw6RcgAtwfMvnWlQGmLYDqABx8+ed9Mehs21wacec1FdnLVWMpkFX3XHVfwBKuAMm7HfFtLrSqD+vZyrA9i8EuS54bhigGpzIpUPEeH5B6r+nFeJSjuFIpx1FH47JkwXbZrtdxg08rObM1vyJ+JRD02ZC82t01xF5jRFZO80QZ0D4Jy9rKR7zOVjgeNPVSNMmf8Ww5nkAe9ZScPn1pIO0fEvBd8LHU9zrbot83l4apJjkT6ouwyau4riTo45TtPsT5TySdzV9PXR4mt5bwnpb3L1xhgomIpt52jcrEaW1mocjYM5aUQv6S+kRqtg0vZbymRsenJyEzAFMl5cuAJWjwBhBEh8ceIUdWisseKS71N/Lzu6Rkk0XHtnroRuWmLYp5iYbLG33RRe/nQ0tu92tjGLd+tMfBG67l5KdHVs2p/sjERiu43QgIvNqaMbSKOcWJi7Dt08PxG+9GUuXmDqjUdLAlIW/chGihStrMPEeHa4H5t1z52Kz3+xowOYnR66vw6tCM5VVdJ8hGOQ8c= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(46966006)(40470700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 06:00:45.3191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f21f3f58-9515-410a-608e-08dc31d9474f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH3PEPF0000000D.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5339 make -C tools/testing/selftests, compiling dev_in_maps fail. In file included from dev_in_maps.c:10: /usr/include/x86_64-linux-gnu/sys/mount.h:35:3: error: expected identifier before numeric constant 35 | MS_RDONLY = 1, /* Mount read-only. */ | ^~~~~~~~~ That sys/mount.h has to be included before linux/mount.h. Signed-off-by: Meng Li --- tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c index e19ab0e85709..871a0923c06e 100644 --- a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c +++ b/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c @@ -7,11 +7,11 @@ #include #include -#include #include #include #include #include +#include #include #include -- 2.34.1