From mboxrd@z Thu Jan 1 00:00:00 1970 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 2FA89C77B73 for ; Thu, 20 Apr 2023 11:07:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235047AbjDTLHF (ORCPT ); Thu, 20 Apr 2023 07:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235512AbjDTLFO (ORCPT ); Thu, 20 Apr 2023 07:05:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BE1F9EF5; Thu, 20 Apr 2023 04:03:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1EB68647A7; Thu, 20 Apr 2023 11:02:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D009C4339C; Thu, 20 Apr 2023 11:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681988578; bh=3mEJP8tmz/XW5HcFioTquKyOJJLG48D3oWkCAML/yZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JH2ONnYHzejuPv4Zn2H+mK0BaLoXlRcF7vpssXeuQoiFZ62PJppAn8bQyVdxljDMi nbxZrFoYUicowpUo2YGKNS+narcvBYgx4GewZrAqZnFxn1rXXvUrfRV43I2HG4unE3 WLhtNpPxSAX/b0mq9e22E98Fq5sml2Ku/b968wuEGp2rFN3f1A1r5JyE1y6vdWj9w6 +582USBbBtCyFqBgVfsLS08gRbfC4ThOGxsGDs6SkryLiEXQ/eUx9myVuwdGxQfzs0 pUO+bgoTqS4RGalu2+uc4AZVjm+vee+cbkMMTz2mCo1p4BoXiOMvRzXfBD4JFtAjip lydq9JecgcjXQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Anh Tuan Phan , Christian Brauner , Shuah Khan , Sasha Levin , sforshee@kernel.org, shuah@kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 10/15] selftests mount: Fix mount_setattr_test builds failed Date: Thu, 20 Apr 2023 07:02:24 -0400 Message-Id: <20230420110231.505992-10-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230420110231.505992-1-sashal@kernel.org> References: <20230420110231.505992-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anh Tuan Phan [ Upstream commit f1594bc676579133a3cd906d7d27733289edfb86 ] When compiling selftests with target mount_setattr I encountered some errors with the below messages: mount_setattr_test.c: In function ‘mount_setattr_thread’: mount_setattr_test.c:343:16: error: variable ‘attr’ has initializer but incomplete type 343 | struct mount_attr attr = { | ^~~~~~~~~~ These errors might be because of linux/mount.h is not included. This patch resolves that issue. Signed-off-by: Anh Tuan Phan Acked-by: Christian Brauner Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/mount_setattr/mount_setattr_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/mount_setattr/mount_setattr_test.c b/tools/testing/selftests/mount_setattr/mount_setattr_test.c index 8c5fea68ae677..969647228817b 100644 --- a/tools/testing/selftests/mount_setattr/mount_setattr_test.c +++ b/tools/testing/selftests/mount_setattr/mount_setattr_test.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "../kselftest_harness.h" -- 2.39.2