Message ID | 7ad5a1e75bb3008bb3fae67dba7ec9318301e418.1687485959.git.anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-btrfs-owner@vger.kernel.org> 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 69DE8EB64D7 for <linux-btrfs@archiver.kernel.org>; Fri, 23 Jun 2023 07:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbjFWH75 (ORCPT <rfc822;linux-btrfs@archiver.kernel.org>); Fri, 23 Jun 2023 03:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjFWH7z (ORCPT <rfc822;linux-btrfs@vger.kernel.org>); Fri, 23 Jun 2023 03:59:55 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEA0A1BCC for <linux-btrfs@vger.kernel.org>; Fri, 23 Jun 2023 00:59:54 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35N6aO3f029179 for <linux-btrfs@vger.kernel.org>; Fri, 23 Jun 2023 07:59:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=YkdHGW5ne5U5etBpFbpU1nBl0T4qYt01IGB/gOFysr4=; b=VcR7A7G1wj1A+HZD4rkjGvbjDByAC73Yd4Hvkt8ILoCwXGeMaHEJclIx0sImfBuxtpj/ tea4Dejfz8y4RwN1GMK/m5G01vQYUBZkAMXm6SsFCeaGnsgY7ZlQZx1MfC31fwDhUz1Q KhKKpsFclk8bd8txSeIPG1Lk/x0VacVBNWww4Nn5vuKa464FjZEihLKNtyU6ZX20fC+/ t0FWCey9psKaxDufWsq0szWVXuCAPIXQpg2AfWAVdhicgFglH83+aGffrm1yNPWV5peY M19mOmlMzHcUJCR7JsjfM3RkGq3AWjmUG4rtFbbPBHYOfXeexyT0foHdbxD5LPSMfabS 5w== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r93rbugss-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <linux-btrfs@vger.kernel.org>; Fri, 23 Jun 2023 07:59:54 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35N79GvQ028897 for <linux-btrfs@vger.kernel.org>; Fri, 23 Jun 2023 07:59:53 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r939epkwt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <linux-btrfs@vger.kernel.org>; Fri, 23 Jun 2023 07:59:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PihNdLyoH1Z+7dHAZ4qRjNJE/KLixbnWK2EoLnc0Cywvn/uzL+o4w3iBZjYjo5lLZyOXSLb1K/eGHzZ8fXZm0mCCKqzOyMJUxD9Byv77xV5vXVx79+M1b44THl8ZvMl7mppCLPXXjNLqpsv8AFX2Q+JGD9nSPAonRwwIcwVXLUhxQmpbe5FHRVVfXpZK7KwBYJythuW0ZiANCwL6CQsm5t/rw5CxdfKhUITacLRkwHt53UUJNXxl21YKBET0NyMHtUbwRLlUJNs8vzIluG2AWx8QJwenWhIUPNg28XAyhnEU+kMmgDuFZE/UmsN/MX9zFqSIJpOrjvDp9glCju4krA== 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=YkdHGW5ne5U5etBpFbpU1nBl0T4qYt01IGB/gOFysr4=; b=ewU0Ghs8RU/bYUg+DvWUIezn3KevhPRA01nOlw2ZoQIUCf/3yX8d2g3KQoOrrfo5D9ZCTZtJcAP/ZBIkeT23D128Y5o0Krh4a0/a2gVSUE3c8iJ7aHYeI+wkwr3bAu6N0MAlwLqbouxF2gBFCjff/5/raMwmJy26WVJckU6R6hZEMgIGvAwEAUHs9M2LVXOCXItPuVXKsZqjHmHJ6nPAAiEevdd60USIvboB33GQSlJsj/0JpaLy2QZ0JpfxKWUus+TNsCOAL7OXW7TO2TiQOvBYa6wA0qqXcZCp3wnzkGI8HcteetVLmerLGALlNDuJsheZHM+ijdGO0duXkoIrQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YkdHGW5ne5U5etBpFbpU1nBl0T4qYt01IGB/gOFysr4=; b=Uy75ITvsoFAdsBTvjxZ06/SQyQhbixtVIU4k/AXIBAZ/7+7zv5MeXLLAmjndRPkg5fRMvuctGePZbzdrs/5I0KOUzSVTtDGRATjqrGVE5ku+FJR1Tjl7ZnfgFn+8eMWjhhxr92tWq5BmO/JtCszQX6t0c9HCDOIcYW8ObPZsi0U= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by SN7PR10MB6523.namprd10.prod.outlook.com (2603:10b6:806:2a6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Fri, 23 Jun 2023 07:59:51 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::bc67:ac75:2c91:757e%7]) with mapi id 15.20.6521.026; Fri, 23 Jun 2023 07:59:51 +0000 From: Anand Jain <anand.jain@oracle.com> To: linux-btrfs@vger.kernel.org Subject: [PATCH 3/4] btrfs-progs: tests/fsstress.c: move do_fallocate under HAVE_LINUX_FALLOC_H Date: Fri, 23 Jun 2023 15:59:01 +0800 Message-Id: <7ad5a1e75bb3008bb3fae67dba7ec9318301e418.1687485959.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1687485959.git.anand.jain@oracle.com> References: <cover.1687485959.git.anand.jain@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI1PR02CA0044.apcprd02.prod.outlook.com (2603:1096:4:1f6::6) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|SN7PR10MB6523:EE_ X-MS-Office365-Filtering-Correlation-Id: 64d388f6-b226-452a-d70f-08db73bfd267 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oNtHwI9ej2C7JZM7/WzqFFkGWYzcX3XzTO183o+kEI7fEoFhz7l6ye1s1GtGTo6wjDAQ0EfHLAUS5qI5FBPUSpIQ//g2gHfzaMZLIwjwPA1uYkDCCB7jDunlxiXTng9TVGdVIBy+vG0EMZY17OH0wFBSNd2Mzt2E5yMnVp3ea4ILYz5956iZ/X0YPBiVr3JpuERw20szatwwM3hthnJewNlfXy7lML2V1Mh5yZPQWmR2sXZ/knxRjXY3fCh/fAhbz061b+/IFbpnUpdAAutWZOIb9d4iWCaUqxYglehIuL+d9Q2GkFPTlUmHNBRJP2HPBMrocbsH0R4LiKy3Pi9I7Mz4511uKEfdoOAksj834duz0pWYcboPpZqiyjvqz5XddsQAzLq0FMqoBsKO9+d6spuT3YLEBUSHRWkF8UOqNkfjnbzN0+B8OBmrczuPrjPof1QfJAMOBWLUl5ntOCQd924DbpwFYirmyeD0Lcy7SESe4MqwsfiIu6QQM/+33O7MwMTXa3MrHcNx6v6n3wFCLDOlkcRk/AnvB54lQHk6d2nb/avh58AuIrHoAd4B6Cns X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199021)(2906002)(44832011)(8676002)(5660300002)(8936002)(36756003)(41300700001)(86362001)(6666004)(6486002)(478600001)(83380400001)(186003)(2616005)(6512007)(26005)(6506007)(316002)(38100700002)(6916009)(66476007)(66556008)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?czBbujXDooYsq1zHFJkkBXCxqKlt?= =?utf-8?q?CjHUBPx66tZeVfEbwr1oPf6WKXFyPkLVqkzjPrrVwJR/cGBVoWVoxmsGgLnag7ySe?= =?utf-8?q?1zWcbqvxpdmEZB8KOOLUEhmDiU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TG6a43+988T9v7rjDiZrkA?= =?utf-8?q?3UHF7KFmqi+uiM8rLibe/uWip5Pm3pv78vLLCna8GMKK6Oju9zPKI+CTXK+ueuwFb?= =?utf-8?q?Hkk9SACRNQLwL4M+PdjqW2ap6T/L1HVszwcjOFPVm7M52/RP4UD5PLQn4HkU03X7V?= =?utf-8?q?sSZBb8aynu6w07TK/yj8MEX1oo/NC/qE7uM/OH4J9GbNRp6TVOuiHC5ONo1Qcrbc/?= =?utf-8?q?qEBDU8vbIvk18EcYgdtbZb07tpp270iZpmiitGEqZQX3iQNK2vQzu0f8STfutewuB?= =?utf-8?q?/mLJuW1w/t3OPqN2uJtYpf+4xQxA9DNyfJj/1+Ogs8wlfGBAwvYPqATWZ+3GaoU+E?= =?utf-8?q?RdRk8seQE+PphILXvBIivSshGOmyj7ESJHPJJXMLVUlJtMY++Ij0sXAmMo7stCjon?= =?utf-8?q?JeBdtDi/hcBLXJUfo3jGiUoUs/rJraSqXCzACXXe0OOG+mAgyf0gcJ/K8m5mxFR1G?= =?utf-8?q?RXnGDzoqgQPeZlNrproHgJwEA+/gfDhYwoU4GfcbI3oI3phbapFhGnSxhahyQjq85?= =?utf-8?q?WdYNX70RlEqL?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: mbZlhgu/FiE7oshXX7/pZARG8HbTJzH86cPNqtOuEwNhloiaRY8yk5nPpp5hK2yLP1VgeT2e8vT/3ms+Jbjy20rbXYWk1fArgmndk175TqHy0bU2m0KsVYintE1wZNHGlggZG9FBl9Gkz3qJiW90qbudpxlufasZgb6UIBnFKmESDDYyBdv3SL2WQ6cQ++tZCIR7/9NhLgmHH30ZHkbNOlEPV8iOy56AyFVhz6fHDNXccay3cuN989p4EWhKd5/Hq6QpOHGXg/o8btlRyLYGTFESQqsVGSi6cstpsDI3yDXMrDQDRUSt67e3zKbhvSsJEpZ2IsoqhCYf1cjV6Jb3hQppHbpbbMdPNN4VEe26I3SnoHaBU/+SWYyKwqFWolCj0erZbIze5JYWuG5cbHhOkW5LmT8klpaLT2VqY0rKaPxW/ko9TK/R3jw8irQXujvvAre6ymsVPZdJz8nOdPnjy1yQBizgxxEnJUvV2T2xBMGC4x1jhunrwlXEr/677SlwHjk6w/rdiNLHovs1nG8nPebhyNgBc07Btz13ysNyUdjzAALHXBr0J5UlbDzCf8jA48n843dyc//62aigwsWNIV/jhbDPynXTB9VTx8syYjSR4SfXT4L6CsOf98tO/6WBkjHMNqFLD91GXIHbXSU46cYmtGIfj2VF+ZGbNyUMAvTwI4Kv2u7xmRV0jkLTkubuvxW/GBWxvjt0WfEEdPV/18WADKdte5+6a2Tdw3ZqIRmkxen8avS3cOu5+vv9WZwhw62XpX614+jhjKKY8QEwlg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64d388f6-b226-452a-d70f-08db73bfd267 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2023 07:59:51.1605 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2BHSyA/Su5ODm5iF0dsgd4ng8Am8F5NJAZWkgbDOQX3fYb8SCnbaaFpdrO6nro/BYhjvKG+1EP1ga/ZLH04GuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6523 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-23_02,2023-06-22_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306230071 X-Proofpoint-ORIG-GUID: 4i4vTgw8J7giyBYLFFUE5Go8dlIEZOHK X-Proofpoint-GUID: 4i4vTgw8J7giyBYLFFUE5Go8dlIEZOHK Precedence: bulk List-ID: <linux-btrfs.vger.kernel.org> X-Mailing-List: linux-btrfs@vger.kernel.org |
Series |
btrfs-progs: tests: fix warnings during make test
|
expand
|
diff --git a/tests/fsstress.c b/tests/fsstress.c index 692d7cfacaf4..5fd347ccf1d4 100644 --- a/tests/fsstress.c +++ b/tests/fsstress.c @@ -3810,10 +3810,10 @@ struct print_flags falloc_flags [] = { ({translate_flags(mode, "|", falloc_flags);}) #endif +#ifdef HAVE_LINUX_FALLOC_H static void do_fallocate(opnum_t opno, long r, int mode) { -#ifdef HAVE_LINUX_FALLOC_H int e; pathname_t f; int fd; @@ -3870,8 +3870,8 @@ do_fallocate(opnum_t opno, long r, int mode) f.path, st, (long long)off, (long long)len, e); free_pathname(&f); close(fd); -#endif } +#endif void fallocate_f(opnum_t opno, long r)
Move the entire 'do_fallocate' function under the 'HAVE_LINUX_FALLOC_H' define and fix the following warnings. This function is called only when 'HAVE_LINUX_FALLOC_H' is defined. tests/fsstress.c:3814:1: warning: ‘do_fallocate’ defined but not used [-Wunused-function] 3814 | do_fallocate(opnum_t opno, long r, int mode) Signed-off-by: Anand Jain <anand.jain@oracle.com> --- tests/fsstress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)