From patchwork Fri Jun 23 07:59:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13290124 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 B24A8EB64D7 for ; Fri, 23 Jun 2023 08:00:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbjFWIAE (ORCPT ); Fri, 23 Jun 2023 04:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230481AbjFWIAD (ORCPT ); Fri, 23 Jun 2023 04:00:03 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DC771BCC for ; Fri, 23 Jun 2023 01:00:02 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35N54qMm023473 for ; Fri, 23 Jun 2023 08:00:01 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=Bai0KHhQ97mJQxiEGPagMGnXGlfltVPH1wtBWmEm5Ak=; b=enqOvq2vzi4VMJxA/fw/1zCsGxT0brZCBjZ/zefj9SR//zPDExDhEGA2ENN0nnXDxlUE 3z0nFmTrttl4eEGev6N3Ly7WtW4rZx8wLaTW8uryIfN9QWegP3891G50aQ4eiKiFccfC y2HaSFZSahHeifMo/L+/kIT5889JAvyT4R/0vQ4f/m7PfH1K4XgjIlffsinWXtOYSnnF fWOTYnaCVWuXOZVNls+yn1/Xu5Q1kp4rxqn4HiAPabqz1qZMrXNQ/zYzV2L91xrbpljs HHjLfd4AsrY5zPVBZaHQ1ZkVhvNNwkifkPltt3fhEaiPSH0IhY3LfFS+4RHLUgashudH WQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r94etujvm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 08:00:01 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35N6APqQ007913 for ; Fri, 23 Jun 2023 08:00:00 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2175.outbound.protection.outlook.com [104.47.57.175]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r9w191jdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 08:00:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Flcry9vlbcxs6Zl8gemucrF9ChFkdvbMWk6Qgtzr+SwY/fC0jTjYsHYTCkn6AN9oS2hqUHH63ZTFQ3QxI79WBH3zHKqOiXHaB1Tl+MW/xEt2aLBi/QdN3tTT6y5FHT4wV1wqlbPCFls7+G5LHEXaqHJuaHUlSsCMqAMaMTWgsFD5JKggqRFKMOZzFqTSo1w0j7UobgQMTEOFL/Mn3mZFOpBHDQvSOs33v83UYPcAY4qmj3LjfuwyE0vdtXIQFr5lF30mubMs2T7n79uxcUu28bophIY9vsZjr16+5AZ+qh0ZK55gtlsIR5Hv2FQ6sYBOM2fL66HfD3qEIuRjBM8muw== 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=Bai0KHhQ97mJQxiEGPagMGnXGlfltVPH1wtBWmEm5Ak=; b=Ik3btKvy7BI1rYywQXogTocJE4RdfQuJp7Fa6yKURa1ddA8lFa85bpnUTi7M+3iqFRbe8HVW0qxsDQg8vHcPgrv5qnHdhbtbjoSVxSkxwi+gGh0KdSI/q5sZ7bkvck4enRD37I3aw1zm+ddcYTqECF/VL0avfalwIf9fFzmQ85MIJmXfDvg3MIpx3+zGNyhZv5U6FsdYvgiLvOVZbPbePKjkdJWEJjXif74h3V8a+TFNdmBVatPZxlQl61juNZWhqFOlOIFF1wDmveYXQGRHI+kTJhnwn6+RWpwAe3o6J3nnUaz5QHwKYXb3lhPe+ygdbfUL+xP7ZEth4fIc/DZVjQ== 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=Bai0KHhQ97mJQxiEGPagMGnXGlfltVPH1wtBWmEm5Ak=; b=vsR0PsswiNJLXmGtSywPW0rWN//Xh7Iw1UXybx2yeiFl+PxyHkEIulTAHOyRKQO/K19wDg0NY3jbQ/CyNWvke92xfhOtciTQL30vaLTvRPv7YIAgsZzph6r5Ji762cUyTmBEHyWJfoTNSQb8OGl8YP/P5DaTSq4wUnQhLScPy9g= 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:58 +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:58 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 4/4] btrfs-progs: tests/fsstress.c: move delete_subvol_children under HAVE_BTRFSUTIL_H Date: Fri, 23 Jun 2023 15:59:02 +0800 Message-Id: <03ed9298c3cf19854db54332d276d179fa666de8.1687485959.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) 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: 2f739254-bf18-45ee-12d2-08db73bfd712 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TT3jdeEpoyr/eTpZ059ryrfFDEL6ev0InJZBUhEo+UUsP/NoJeBUiKDATRHUCwbqVUn3trNjmJCmdAM4IE/XpmglGvwV2KSZbIiFhuGKMjHaIZ0uWm6WIQY7NRyzFiqlfDVvhOxldInS9BT0sANe++mULztF6Eg/F7/c9GhVb+W1LtquecRMlSRHnSeeOXXqnZ7X+Wn/jdkcFi/zyzCBPbMe+zgLJnZF18tjF2zlIGCDivxLsSuUCwh8+juwmdCrTnZUo4tjxsbbH81VnUc2Oiq2VkrzSt2NvTS9XBVlG7o+RcNxU+OCRvlaTS9pVXS//2ybHWAk+1F9ktjrQYd5XK3eL6b2avgSK9gymU/0NQR+BkbFY9FKNqG90tDI1CccCOAdPIRWk8pyWrIIDL3DCrq4dE+FRSXP447wODcmi3GcijYA/DE/V8E3L/MFrDyv4RFqpR5hrLpqgohlMfwOkEZJI/vq0T0iaaj3Z7tWIiSkh7fie4DqwcrYt1MMtl2qTSMomivz13xYBmm5YeBHikSq6aai/t+zasnWRAZJnJ5EYgAXxz9cgREm4DEK77Qo 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)(4744005)(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?Fcfo96EFcC27kx7EVuvgAFat4G8Q?= =?utf-8?q?9PhmjMtorF6NyUYnyJxgDJt0p/oP1UjQcWQg1OC3olD6/LRxIfZhH2QU1sq+m6FOf?= =?utf-8?q?vFUmOep3hkZhvgHXJ1Rd5ZLpCzCkdDZLOUnf0YuKVQNLcpfrBSB0fp+TWByavqhaJ?= =?utf-8?q?yDYnUPrHeSTJBf+NJmL2fdt2PVOPkpditcLQQwRsj4vhRhbQY6lTS94f6+MGCH379?= =?utf-8?q?fPy7E71YU/p3bqAaUwtQ40gWKriCZD0DF9+zwpwPZbxM8Un+NNKX7ohnGogscoot9?= =?utf-8?q?+3jhuDIkHbAjwIzn5ijlKvr6deMCUPgVFK1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1Dum2C7OQ1shAmOlIgN5RUZvVGslp94LEOvgo176F73c2DRk7mak041c6rrb/QmCU+iIdrmyCtlK4X+AY+y1kpWeSE3H/cueFOpRsEomm41g8Be3MD7RWmPika9jGYNnBHU/RkoI7WPulW4quQUGJvXgo2r/y/AiSOFkuznxk0m2CYZPTZuHKTez+fbNJBaDWKP22T2MMG3M0U48G5trqQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f739254-bf18-45ee-12d2-08db73bfd712 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:58.8649 (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: 1w/6vDP2CJ5RWOiiNnI5wyfMUWuolJXY/goAnBPCi/IWARhrHjfjuh9RpRS6+Mf3wWSBcy4PWLOk4nLaEsDEJw== 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 adultscore=0 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306230071 X-Proofpoint-GUID: 17uIME8kULcj853WHiTQGk5-19nprqry X-Proofpoint-ORIG-GUID: 17uIME8kULcj853WHiTQGk5-19nprqry Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Bring the 'delete_subvol_children' function under the HAVE_BTRFSUTIL_H define and fix the following warnings. This function is called only when 'HAVE_BTRFSUTILS_H' is defined. tests/fsstress.c:1183:1: warning: ‘delete_subvol_children’ defined but not used [-Wunused-function] 1183 | delete_subvol_children(int parid Signed-off-by: Anand Jain --- tests/fsstress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/fsstress.c b/tests/fsstress.c index 5fd347ccf1d4..3b8cde847aa1 100644 --- a/tests/fsstress.c +++ b/tests/fsstress.c @@ -1179,6 +1179,7 @@ del_from_flist(int ft, int slot) ftp->nfiles--; } +#ifdef HAVE_BTRFSUTIL_H static void delete_subvol_children(int parid) { @@ -1198,6 +1199,7 @@ again: } } } +#endif static fent_t * dirid_to_fent(int dirid)