Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5212826rwb; Sun, 11 Dec 2022 01:59:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5oXnG4VQJfa3H7ln2Y1LIFuJH3JEVNYp3IDQNISoCgBOjy9RrTVmo1USRWGVDhgI2StJcr X-Received: by 2002:a05:6402:28a:b0:45c:be41:a473 with SMTP id l10-20020a056402028a00b0045cbe41a473mr10470860edv.29.1670752795202; Sun, 11 Dec 2022 01:59:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670752795; cv=pass; d=google.com; s=arc-20160816; b=u5c9XYZM2cf8/61BbcaVlu0zivP2H4sa16TY6wAJODsH8lLopVXqMVF2ddikBwS1E1 ON4MQUnS+T+7e1wLjSyVLX/PL4+eZAtSedvBaPEHR2qWYhhdME3qZNxEM+P77bkNDVN+ XA7V6eaTtbKk7ch+jLokXtNvpEhAjySKpApFpCL2m+KyoDvSjpqcxkPEmMgekYao29rQ RvGSKFONrnF6qA9iGKl4PbqTyhtCCtyRz5U5ANbLnFBIpzz5g7gMYjylT3NWAVxknv4w Ohc4WWSdcTh9QNAPz6jazCvzGsBWkHJSXA64gyYYa30JODWjsHdQXq+Nkf37RnwS+4G6 0zHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :subject:message-id:cc:to:from:dkim-signature; bh=Xkq9oi0Kqa5o104HB6937If/FFeLhwwTtuDxZaE+Zqc=; b=JXuBeUDTA/Tk5JfRi4PIYLKd1laNvkV9vun56XpdmDNRlGJhGdOubHCYkiuJYT9zXe K6fMug5KLO7zxJ8q5tPz+/zUMcWyX3zX+YiAupxAWeTUeS5k2vE4TY5xZlNKgafBCyrw c2F/j810sgE6Pn9HcvoSEFI5WPSalNj+F29MKz97bsBgRfsPhY39HoB72O7ImCj1jRi5 If9SGcnLEuYKzThrhNNym3Ip0PtQL1JZj14oclZFbilixI9eaf9XlsUr9uese8G+7SYk 8TBOSuNnjVBK37ONHEyuS2Ww4+RWk4KOG4VTlA/c4Bu4jt9woafHm4cHBBLDDoEVvzCf EdoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=JaFqXGIT; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz14-20020a0564021d4e00b0046356ff4d4esi6536898edb.593.2022.12.11.01.59.37; Sun, 11 Dec 2022 01:59:55 -0800 (PST) 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=@siddh.me header.s=zmail header.b=JaFqXGIT; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbiLKJ2s (ORCPT + 75 others); Sun, 11 Dec 2022 04:28:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbiLKJ2o (ORCPT ); Sun, 11 Dec 2022 04:28:44 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA794DFE1; Sun, 11 Dec 2022 01:28:41 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 already included via sys/mount.h on line 10. GCC error reproducible by: make kselftest TARGETS=3D"mount_setattr" mount_setattr_test.c:107:8: error: redefinition of =E2=80=98struct mount_at= tr=E2=80=99 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/t= ools/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 @@ =09#else =09=09#define __NR_mount_setattr 442 =09#endif - -struct mount_attr { -=09__u64 attr_set; -=09__u64 attr_clr; -=09__u64 propagation; -=09__u64 userns_fd; -}; #endif =20 #ifndef __NR_open_tree --=20 2.35.1