From patchwork Sun Dec 11 09:28:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Siddh Raman Pant X-Patchwork-Id: 13070541 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 5DD11C4332F for ; Sun, 11 Dec 2022 09:43:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230013AbiLKJn4 (ORCPT ); Sun, 11 Dec 2022 04:43:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLKJn4 (ORCPT ); Sun, 11 Dec 2022 04:43:56 -0500 X-Greylist: delayed 911 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 11 Dec 2022 01:43:53 PST Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFED926FE for ; Sun, 11 Dec 2022 01:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670750905; cv=none; d=zohomail.in; s=zohoarc; b=cQkedRHhiBcjvDmL5SSj3EN64o2w3Gdj4WQMOf5RefBfQMjq/+8+W3nedGE85dJreENyBpyyy6iC+XXF3/SDAC9xPJ9gtr/CoF5lM9hvftcJmTm/jQ6AxJyDO5OkK58+fUo9m5lalB1JrBySAs8sKfAAhQrEpIKVilEFcLSR2fc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1670750905; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=Xkq9oi0Kqa5o104HB6937If/FFeLhwwTtuDxZaE+Zqc=; b=BmvVCaLPZNXJPRRR8p8V21FhXHRjWLtxnX1kvMyxp67EI9JohzrjT6viQohiV0vLPJEizk59EokjXMnZ/BsQkjYFS9tsi077ahmtbcgizXDM6K/DmvVTWqTWZcYZYMxNgV3XAAM2jJU4U8WE2TU0CjTohBZs60HrGWgpw+VQy5w= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670750905; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=Xkq9oi0Kqa5o104HB6937If/FFeLhwwTtuDxZaE+Zqc=; b=JaFqXGITxG+8CXPDWBNTgz3m6SybcsAHvkQOzRwpwLfpjAZI6lGKfCwH6hIlbdAR YyKYElShH/6sH2X1xmvZe5hyjtFmSYfcSY/C2fjGTOr4lx2S8TMV05mwBpvP1BjNcON l6ZLI5y4f+pF6Wj+3mZuV2EVcggZE12q6iZd+VEU= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1670750904303896.6418334535564; Sun, 11 Dec 2022 14:58:24 +0530 (IST) From: Siddh Raman Pant To: Christian Brauner , Seth Forshee , Shuah Khan Cc: linux-fsdevel , linux-kselftests , linux-kernel Message-ID: <20221211092820.85527-1-code@siddh.me> Subject: [PATCH] selftests/mount_setattr: Remove redefinition of struct mount_attr Date: Sun, 11 Dec 2022 14:58:20 +0530 X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org It is already included via sys/mount.h on line 10. GCC error reproducible by: make kselftest TARGETS="mount_setattr" mount_setattr_test.c:107:8: error: redefinition of ‘struct mount_attr’ 107 | struct mount_attr { | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/mount.h:32, from mount_setattr_test.c:10: ../../../../usr/include/linux/mount.h:129:8: note: originally defined here 129 | struct mount_attr { | ^~~~~~~~~~ Signed-off-by: Siddh Raman Pant --- tools/testing/selftests/mount_setattr/mount_setattr_test.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/testing/selftests/mount_setattr/mount_setattr_test.c b/tools/testing/selftests/mount_setattr/mount_setattr_test.c index 8c5fea68ae67..582669ca38e9 100644 --- a/tools/testing/selftests/mount_setattr/mount_setattr_test.c +++ b/tools/testing/selftests/mount_setattr/mount_setattr_test.c @@ -103,13 +103,6 @@ #else #define __NR_mount_setattr 442 #endif - -struct mount_attr { - __u64 attr_set; - __u64 attr_clr; - __u64 propagation; - __u64 userns_fd; -}; #endif #ifndef __NR_open_tree