From patchwork Fri Jun 23 07:58:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13290121 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 A6C3FEB64D7 for ; Fri, 23 Jun 2023 07:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230456AbjFWH7r (ORCPT ); Fri, 23 Jun 2023 03:59:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbjFWH7n (ORCPT ); Fri, 23 Jun 2023 03:59:43 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F01F1BD6 for ; Fri, 23 Jun 2023 00:59:41 -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 35N54pCT023459 for ; Fri, 23 Jun 2023 07:59:41 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=SdUSSadF3NT+u5E68xPaOhv4R110wJtU172UMKxl98A=; b=YafgrrHbNSzMK3ScfXBb6aEbXrGztXYVO8jGYxc/lfKHxnMxWZTw0aBjHKIg6rOGJ+g8 mnKw9o0LUdSvv+gBmtRHdoiM2qqFEd8uK2d9jQT9FuwBeF5Iw+1n9JY4VwKAv4R7qZIn Bk7CbOvc2boKbMggagxq8u6pCenieOMvhEQV8+dlM/DPAlXQUXfxlYATMhDM9fO44YWG CM0no/+2HSoC6bsFvXkyUMh/o/t7B2AfqCuaoqDXMElhdH7UGP8sred+Ix87Lrvuulue 2pxqxwk4QQ3XZE5Eo3JswHvqB8ddOIo1tTCXDci8h17ofBj1KLpt6ZiuHwgB+B1aVZzz /w== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r94etujv8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 07:59:41 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35N68l61032848 for ; Fri, 23 Jun 2023 07:59:40 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2175.outbound.protection.outlook.com [104.47.57.175]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r9399mp7q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 07:59:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZKG8l+xXDyYNFIkTWdjOFywfUT9+oiBVDZJn/ZVPiaVFa9wRcoZ5C+N0gZj+WFIW/BQG8orKauNov1o6WuIFNMEIJ0B+zuzCSt4e1znirkOUQUoZjuHgX3CiXYtNPkFSsGNX3wXIeawzJJhiC5dujzgobXZPiSpJaREB+/7JhXP3o7cZVjLro6tfEZDaF2w74z70jY1R5IqqtGmwkRRZjvc9BOSg9CsPlQcv88rsdhUInRZ6OCwd5OU0oF+dgDnbsEbtVQFB+ZH27XaIK6w23NpbqQd32wBKodtFferCP2GKQ3YnUAgWum4AtL3xIHT89SKypd2LZJEHFQDFMTHRw== 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=SdUSSadF3NT+u5E68xPaOhv4R110wJtU172UMKxl98A=; b=NS/LBo4sdCCFfSrpIvircVyRXczCmdCVNUfLm7ajacAb/HdKes1h0jdSTWk9c47TyoteZfrrTvE936mCUcrOqRD/8Cv6pjTEaAeHkQ9lzN/veSzrgDFplLvVJTnWMt7NC8qGi/8xsLSlellrpGRUPGMPI71DXrAFSxK/oiBUhfH1+fn39DnoksTr/FU5msopGKFtf7UPepv7FMNnadugivmd+8xj7ok9F2UpWC07ASTsuibOTK9K1BGLJm1dY6toGxNdxF7vtTutF5+bz6fjltHJsJxsDAa3R21WCwxE/j6nv60cI/mGh00ioVwgpf8NBqJ3+ohon1f4KSdkqRK8vQ== 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=SdUSSadF3NT+u5E68xPaOhv4R110wJtU172UMKxl98A=; b=Ln6sHfoaZhvWxPL8ZnDqsfsQf7nuxBjp2Cd28wMMjL3qkhM+i1IMc8PI8XLGryEzyBt9lev/7EGgsf5oBzm2nvZpxUeRlxamKtHtcRywP+kZAbeFBPZarTPVM9cGXxn9M08GeckA6sLgBk4ow7Q99QAQvcvyJmD4tnCQXskKqWI= 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:38 +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:38 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 1/4] btrfs-progs: tests/fssum.c: fix missing prototype warning Date: Fri, 23 Jun 2023 15:58:59 +0800 Message-Id: <5fb60fc2bb0ffec6f67d2af6d09c65bd71d90111.1687485959.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: X-ClientProxiedBy: SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) 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: a3a60f7e-2bad-46e5-3477-08db73bfcaa6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LF1AJRmTdraFZSNRZHSYAMickmHMOLXKKmu62RHybU7fgV7seAQ5l4JvAuMfVS8XdmFpqoYTtYxrT/N+LEuFm+JdmRaPLZS51MIwioBGCQaHC2AHtQVfEbXEJhFLo+9ut0/BLX3cPqmH9TXS/uFkABXtb9Tn8j7IE0v9W9fcXRtNRBGo0p9fDlIy1LUN7yia5eiX5Z+5uJlVduLwkbu5I57zAyWNuYcQ1iLDCgUcJXI8Suqik/EwKrkvvWsu2pR7NCbJSjxtgcuLyudmD17dVFXKWtAJvoLANw9ETGjftEykie09fY5Yg0s6+hnHTuI5RKd/5fw5+KHsgSPn0ehDniuTtWnmurtyhAa6+mc4mzBaQVxwH19uwAVlhJ/r4k3z/g1Ak+G+m6iue6XAuJ6ZcUw7QTQvk6I060tuuHpKF/SeviKl5WaDIQLBSGcttt0Dd7B1l0xpvnRj5x8Q4yxnpaq6YzgL7U2l+xk39qic/41y3/MxcmFMy6dvBbmvowWqIH7e63FYBf/P9qYqb1HwLF9i9GnT1ZiBr/BdxCx2LD/UqRgXzD9RYwk4VA7+XpzH 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?k8JnGrA2d/06gDDwMAWN9iIG19Fi?= =?utf-8?q?u45DCiRKLLilB7+GL/6Zxf19BB51/EzupLzdSR0Zt27F7vewqATSb+vLtxMgFtI6t?= =?utf-8?q?VV48JCHbaGRlFAfaEmPr9CM/hCAoHNJfCPlcg+aAi1XPVxsCecNXeMKzWcRMQVcQI?= =?utf-8?q?QKNI0gxvhX9jeEtcM7EtrM7Y7k0fHq0BB38tsJmLL4BgGP3atU3YKnBcnvwQtjxjv?= =?utf-8?q?ZNj2XUV9d7RVxbjUAmdEroZed3bKg9N+lfpqH4xDitJs6nevYWtijgXPIFiYPD7Pu?= =?utf-8?q?c1Q39aiOhl6O/DpFcg6/bQyGdnf+ONWgtcQqZPmwuxy+ON5b1d8fMq42lzxzcKBuT?= =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ADfzQoFLG2BFqBV9VXOHndlcJSZCGaYfjdHixQB1Y2IxU019RxxznKNmCPT8dJh3g4Dkvlm+E2+Szy7cXuX6Z+K4BOlVnu8EEPCPqiioZJZexErjfQ8XArksUGOZGuc9Z2OqYM8Q1evy8z2xeMg6UQSJyvSfmuq3YqUs9DlxD9MplOjt5QZ3lslbMEZzi6w9K/26ChZGhuWSuDyQVf1v7s4OCIMwHw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3a60f7e-2bad-46e5-3477-08db73bfcaa6 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:38.1887 (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: 04VwyYIK0PmKq7qvdWQgDAMXuW9IULlLAV6qaC3k/zzvySxIjMSXGYyQRtjoiO4Kjut7q6qUIaf34zb/CdWFkQ== 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 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306230071 X-Proofpoint-GUID: -vBnRcm1HXgUlEHtKS_t9zhnh-FVsQwa X-Proofpoint-ORIG-GUID: -vBnRcm1HXgUlEHtKS_t9zhnh-FVsQwa Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Annoying warnings when running 'make test' from the file tests/fssum.c. gcc version 8.5.0. Fix the it by declaring the corresponding functions as static. $ rm fssum $ make TEST=001\* test-misc :: tests/fssum.c:86:1: warning: no previous prototype for ‘getln’ [-Wmissing-prototypes] 86 | getln(char *buf, int size, FILE *fp) | ^~~~~ tests/fssum.c:103:1: warning: no previous prototype for ‘parse_flag’ [-Wmissing-prototypes] 103 | parse_flag(int c) | ^~~~~~~~~~ tests/fssum.c:123:1: warning: no previous prototype for ‘parse_flags’ [-Wmissing-prototypes] 123 | parse_flags(char *p) | ^~~~~~~~~~~ tests/fssum.c:130:1: warning: no previous prototype for ‘usage’ [-Wmissing-prototypes] 130 | usage(void) | ^~~~~ tests/fssum.c:163:1: warning: no previous prototype for ‘alloc’ [-Wmissing-prototypes] 163 | alloc(size_t sz) | ^~~~~ tests/fssum.c:176:1: warning: no previous prototype for ‘sum_init’ [-Wmissing-prototypes] 176 | sum_init(sum_t *cs) | ^~~~~~~~ tests/fssum.c:182:1: warning: no previous prototype for ‘sum_fini’ [-Wmissing-prototypes] 182 | sum_fini(sum_t *cs) | ^~~~~~~~ tests/fssum.c:188:1: warning: no previous prototype for ‘sum_add’ [-Wmissing-prototypes] 188 | sum_add(sum_t *cs, void *buf, int size) | ^~~~~~~ tests/fssum.c:194:1: warning: no previous prototype for ‘sum_add_sum’ [-Wmissing-prototypes] 194 | sum_add_sum(sum_t *dst, sum_t *src) | ^~~~~~~~~~~ tests/fssum.c:200:1: warning: no previous prototype for ‘sum_add_u64’ [-Wmissing-prototypes] 200 | sum_add_u64(sum_t *dst, uint64_t val) | ^~~~~~~~~~~ tests/fssum.c:207:1: warning: no previous prototype for ‘sum_add_time’ [-Wmissing-prototypes] 207 | sum_add_time(sum_t *dst, time_t t) | ^~~~~~~~~~~~ tests/fssum.c:213:1: warning: no previous prototype for ‘sum_to_string’ [-Wmissing-prototypes] 213 | sum_to_string(sum_t *dst) | ^~~~~~~~~~~~~ tests/fssum.c:225:1: warning: no previous prototype for ‘namecmp’ [-Wmissing-prototypes] 225 | namecmp(const void *aa, const void *bb) | ^~~~~~~ tests/fssum.c:234:1: warning: no previous prototype for ‘sum_xattrs’ [-Wmissing-prototypes] 234 | sum_xattrs(int fd, sum_t *dst) | ^~~~~~~~~~ tests/fssum.c:325:1: warning: no previous prototype for ‘sum_file_data_permissive’ [-Wmissing-prototypes] 325 | sum_file_data_permissive(int fd, sum_t *dst) | ^~~~~~~~~~~~~~~~~~~~~~~~ tests/fssum.c:341:1: warning: no previous prototype for ‘sum_file_data_strict’ [-Wmissing-prototypes] 341 | sum_file_data_strict(int fd, sum_t *dst) | ^~~~~~~~~~~~~~~~~~~~ tests/fssum.c:369:1: warning: no previous prototype for ‘escape’ [-Wmissing-prototypes] 369 | escape(char *in) | ^~~~~~ tests/fssum.c:389:1: warning: no previous prototype for ‘excess_file’ [-Wmissing-prototypes] 389 | excess_file(const char *fn) | ^~~~~~~~~~~ tests/fssum.c:395:1: warning: no previous prototype for ‘missing_file’ [-Wmissing-prototypes] 395 | missing_file(const char *fn) | ^~~~~~~~~~~~ tests/fssum.c:401:1: warning: no previous prototype for ‘pathcmp’ [-Wmissing-prototypes] 401 | pathcmp(const char *a, const char *b) | ^~~~~~~ tests/fssum.c:419:1: warning: no previous prototype for ‘check_match’ [-Wmissing-prototypes] 419 | check_match(char *fn, char *local_m, char *remote_m, | ^~~~~~~~~~~ tests/fssum.c:438:1: warning: no previous prototype for ‘check_manifest’ [-Wmissing-prototypes] 438 | check_manifest(char *fn, char *m, char *c, int last_call) | ^~~~~~~~~~~~~~ tests/fssum.c:509:1: warning: no previous prototype for ‘sum’ [-Wmissing-prototypes] 509 | sum(int dirfd, int level, sum_t *dircs, char *path_prefix, char *path_in) | ^~~ [LD] fsstress tests/fsstress.c:4363:1: warning: ‘do_mmap’ defined but not used [-Wunused-function] 4363 | do_mmap(opnum_t opno, long r, int prot) | ^~~~~~~ tests/fsstress.c:3814:1: warning: ‘do_fallocate’ defined but not used [-Wunused-function] 3814 | do_fallocate(opnum_t opno, long r, int mode) | ^~~~~~~~~~~~ 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/fssum.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/fssum.c b/tests/fssum.c index e35c027424cd..bca33c7714cd 100644 --- a/tests/fssum.c +++ b/tests/fssum.c @@ -82,7 +82,7 @@ char line[65536]; int flags[NUM_FLAGS] = {1, 1, 1, 1, 1, 0, 1, 1, 0, 0}; -char * +static char * getln(char *buf, int size, FILE *fp) { char *p; @@ -99,7 +99,7 @@ getln(char *buf, int size, FILE *fp) return p; } -void +static void parse_flag(int c) { int i; @@ -119,14 +119,14 @@ parse_flag(int c) exit(-1); } -void +static void parse_flags(char *p) { while (*p) parse_flag(*p++); } -void +static void usage(void) { fprintf(stderr, "usage: fssum \n"); @@ -159,7 +159,7 @@ usage(void) static char buf[65536]; -void * +static void * alloc(size_t sz) { void *p = malloc(sz); @@ -172,44 +172,44 @@ alloc(size_t sz) return p; } -void +static void sum_init(sum_t *cs) { SHA256Reset(&cs->sha); } -void +static void sum_fini(sum_t *cs) { SHA256Result(&cs->sha, cs->out); } -void +static void sum_add(sum_t *cs, void *buf, int size) { SHA256Input(&cs->sha, buf, size); } -void +static void sum_add_sum(sum_t *dst, sum_t *src) { sum_add(dst, src->out, sizeof(src->out)); } -void +static void sum_add_u64(sum_t *dst, uint64_t val) { uint64_t v = cpu_to_le64(val); sum_add(dst, &v, sizeof(v)); } -void +static void sum_add_time(sum_t *dst, time_t t) { sum_add_u64(dst, t); } -char * +static char * sum_to_string(sum_t *dst) { int i; @@ -221,7 +221,7 @@ sum_to_string(sum_t *dst) return s; } -int +static int namecmp(const void *aa, const void *bb) { char * const *a = aa; @@ -230,7 +230,7 @@ namecmp(const void *aa, const void *bb) return strcmp(*a, *b); } -int +static int sum_xattrs(int fd, sum_t *dst) { ssize_t buflen; @@ -321,7 +321,7 @@ out: return ret; } -int +static int sum_file_data_permissive(int fd, sum_t *dst) { int ret; @@ -337,7 +337,7 @@ sum_file_data_permissive(int fd, sum_t *dst) return 0; } -int +static int sum_file_data_strict(int fd, sum_t *dst) { int ret; @@ -365,7 +365,7 @@ sum_file_data_strict(int fd, sum_t *dst) } } -char * +static char * escape(char *in) { char *out = alloc(strlen(in) * 3 + 1); @@ -385,19 +385,19 @@ escape(char *in) return out; } -void +static void excess_file(const char *fn) { printf("only in local fs: %s\n", fn); } -void +static void missing_file(const char *fn) { printf("only in remote fs: %s\n", fn); } -int +static int pathcmp(const char *a, const char *b) { int len_a = strlen(a); @@ -415,7 +415,7 @@ pathcmp(const char *a, const char *b) return strcmp(a, b); } -void +static void check_match(char *fn, char *local_m, char *remote_m, char *local_c, char *remote_c) { @@ -434,7 +434,7 @@ check_match(char *fn, char *local_m, char *remote_m, char *prev_fn; char *prev_m; char *prev_c; -void +static void check_manifest(char *fn, char *m, char *c, int last_call) { char *rem_m; @@ -505,7 +505,7 @@ malformed: excess_file(fn); } -void +static void sum(int dirfd, int level, sum_t *dircs, char *path_prefix, char *path_in) { DIR *d; From patchwork Fri Jun 23 07:59:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13290122 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 1F43DEB64D7 for ; Fri, 23 Jun 2023 07:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbjFWH7u (ORCPT ); Fri, 23 Jun 2023 03:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjFWH7t (ORCPT ); Fri, 23 Jun 2023 03:59:49 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBCCA1BD6 for ; Fri, 23 Jun 2023 00:59:47 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35N6SkQH023760 for ; Fri, 23 Jun 2023 07:59:47 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=DiU+yL8xl7YescU/YRQBNQrDbs7XnOOq4y/HvoFWvpA=; b=El4pZpy/p3MyavuDNrOP6kAPd3c7MMbUOiJ/srRvfRLu89DfgxvlpHt9NdrH4Wjap0Qq qWTw13TrISbgCtWczyw3vJfmkanMTyBYCBhiDTxnJB7ZLA2yAw6WL8d0kv1yc56fj299 tLJqy4jZNpJLykUrSztOql6Q7nHLQOE8i8xuejzzjAfjIPA+pNHyX2TPtFohcud3HvGl khyngwrtothwT3LO4SQMO1Oqqr7uPyzTazRIF5lFHyN5BnzvRDmH5Ub0mMQBlI4d2gb0 i1HYIX/NkBcA/H+IspWXvSyI6+UJPCvurlHVCjpF1Ap1Oa/zxei8WdKpMakOB8anLras bw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r94qaba4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 07:59:47 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35N5xYkA005794 for ; Fri, 23 Jun 2023 07:59:46 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2172.outbound.protection.outlook.com [104.47.57.172]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r9398f42a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 23 Jun 2023 07:59:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jgsJUwyXR5sxrea5rUHCi/2wMDDQ+wLbfXBMjR6D+zIp29qyZ5y4ZMHwXFStpnB/OMeXS+BEkm6q5aCykkiCmGJ5YRCTx0t/HejVRfcEkewPe9SeyvVXETk/WetUn2ZqKnb1MmywXE0CU7u+Hlmijcc/P7Ewzg+/1/2M6brfPJ2eU6kUDvobULB4rhpLrdWjAIAtMFFKGvV7FUwmfpzZFr/Er1PYL8TbRr3Zttsu8YGpT2SLClCE3E1HFBnegJbgH2uG4uF6/bSrSAfm7ibnNWervIyywjc6xgr6RQ42Dh5JACYoUCNbUpNxgxlSi11/YtpkYk9IZ52+ULAa7og4iw== 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=DiU+yL8xl7YescU/YRQBNQrDbs7XnOOq4y/HvoFWvpA=; b=j2LO8OKrh3e62AjYe4lxIQJVWiFOqeX4cDCUEsQ8LWwnRFpx1MlRiG0/L7WuXvYuDRAIU+ssKIclvFskKcIGVw87oyrNFAfpEXQpWIZ6JKm83MR4UJeTzqVgzkxK+B1O6qFxhsEoOEBs6PsVI7wSN+pbVs8g8fBwdgpCBQwAybwFkLnO6DmlrS5CBxFr5NaJftPBQGH/fNs//uQbxsURgdeoPgsSo4ZQoCBOkkrY8drjPz2RN/ddfjqGU7JXFGO7qzCII8jSO2BJmGkPjKpwj7ME+Zyty5ZiOGHdvFLofMYQBKzFV32xXxkYVKK0rJmCO0q0ZnY6VKlDrPsIYDWj8A== 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=DiU+yL8xl7YescU/YRQBNQrDbs7XnOOq4y/HvoFWvpA=; b=uUaRiOxZW49uTo5NkWqFR3t8SnMGzZAUIHUfD1ku+g++dEutj7O1lKPL64gA4wi69qLXBIJG16kusmEMgclWQkwUdM3r3OpbcVrx0p29fSqZJ9MkE8jVbATTC6RYq15Wf72ZrK9eEry7I6FIjEaUO1AuE9mu5a2vh44LIZHP1Nw= 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:44 +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:44 +0000 From: Anand Jain To: linux-btrfs@vger.kernel.org Subject: [PATCH 2/4] btrfs-progs: tests/fsstress.c: move do_mmap under HAVE_SYS_MMAN_H Date: Fri, 23 Jun 2023 15:59:00 +0800 Message-Id: <08a12fed33d557de42bd74a010550689f9eaca3a.1687485959.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: X-ClientProxiedBy: SI1PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:1f5::12) 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: 37030ce7-ce53-4563-8289-08db73bfce96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hUARytO52cYQL217BSeQaySE2OWVXsKjJ+eEjKAo3Ndci5zoQqVeaCcgGn+JUvdOqUkLxbBx53SiMW894vKeRRFozTghd7BneRqv/XE5PGHvfsx4tjw+ZHl+bSc7sDJQVkvStN9BrEjIrQqR1h3o/cCt85iWbN2xavUG8ZaxX0Rb3jUJDzbDrAjVnP4ySA40zBN+2kxhTIT27sddIDxR3cpYUjdS9Ex6eLVsXvhPUHbDtPBT8QIPrI6dPqqWVvHADWEgY9ibhHz5pY95SdSr5u52bCWrudP2VDnrL2ozfUKbKYV2drTMqJ1TPIRDghK7UHCplFozYyuSMdfa6HiKGgk5Eu8Aktt3y/jnuroSmidAEAKSffWurCSiYmHKnVzryYqlrYy2vK3fr3/MXHIMRE/xhdkMRK3gZorlRw5bbRgK+acEfWxgExvYQ7RhlVNhazAx58F3YofOWUp2gcPA9Myp8iKLxDLsF0Zw8ybljj6jPdEBOcZXuLjcyzeK/P86a30VeR/DeUcpGjEQxjpHd55F9tIaBL9rC+IYPVzBtHu32qZ1Ht24WoqyfwTnVOcg 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?M060TQwUZki75LQ/MwauZHpIrlTg?= =?utf-8?q?edxS4Ql6QbXkbBPJv0Lh1joaIaowQzBW8J+WlaWFTlQUs0YnO8+/71ZHZs9Cdclwm?= =?utf-8?q?rhQPWbEMwN6srfCRe/rIK8+Ixkzt0NdYqZRIitvOSkN+2D0qRTNbKmRtHCTjMCHXD?= =?utf-8?q?/DZLk/cYIPyiglWFsUYz1QFktrBr01/iutUl+r1WMOZTxZFhJTWa4ARWRxnRDa1gA?= =?utf-8?q?8nW33EwozfyEcnZ4GK8ekEw1xWfYklmxbQla4LggNI7UwHP2JEZGnNa1uhmwmIjlH?= =?utf-8?q?4SL2rbcKQwM6RK80uoT6YrwE6RAMCbZUtKB8eiAVGgB7io8KDhRuSlzP/cGDmUnvr?= =?utf-8?q?fhRj0VQQQJSQTChm6ZdnsVt6aAbLsDNB7tLyB9KJ2TWYLFEDkTsfZP+EHc/PCErht?= =?utf-8?q?LIHUuMEfUyLESDcMy2WcYt93HNeMK00Bbg3eVF+g0JVx7F1V9dLLf19yH7iKCAGRi?= =?utf-8?q?7ym0aKHD0jB2Tde5VyovQgfYPHMFUvWPZkvn7Ur8C5dY66jIBgXwF41TJzXZLa0DU?= =?utf-8?q?FiPbPll28uhgqyjbM40+aJxLzxOjqYuYiQ/rAyv8WMfDJ00VIvVCMlL/Xa8gMdgfx?= =?utf-8?q?j31yZdEQBozdfMxtLrcmp6hQYXkuMrzlAGGF5zvrhg+pmJg/GaH1BLvtUWCw/6rNu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Qb+Hf?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ERQPLBVn26QDTLs/2mSda2DKrBgjpjt9axjy8w3melOG4+8ZQ5A9LeIWA+GyKRuqPCEhRbYJC/DlsTZlvTkwFjYkEhKBj3DBWA7YJGZGFnz9jx1ZBImLfBlE6xrE1C2jcKTsccxJfPt9+7jMZlMMvgYvwYmTe7f8Rqpj44TK5kU1nZuzA01C44eZI6QsdUL0cCYBskyyRE+UzUYDjW5RL/ureE4u4PglTQSQylBtUXaNSfdZcum+qkNwsqQWf3fPYiGfRoiGRpHcOtdyL+gQaVmt0gaw4fDwawk3I4f1Fbvo2RdqUvKKWK1vLyOWZ6oKOTWu5UvhPpeYyIufnvkHiEcbq3hpjBVUXNfj0MKZQA+G3TZCYo61LWU7vzQWN+3WMwRq2xNVTaowHi5vgjp0DIdp4FXIdQAVOlkuCMiJ52d2cCVWHqPr6NCLiDNv4bF+x9S4ceIZSJEIoYCI+zAE/Rlgcs6QkH6px9/bOqrJyuurxl+qgd3ipM81076WkWLoZodv1XUd658fdtJ40/XMOPzJLuFodT5riGMZYnQ6C9VSQl8MBuEhYzAR4vNRe1BywvhWPBcY9oNW0KbqC5+szwD+AgyjiLpa34fbkZ1el4kADlwtwx+DYptdf+yIRvhKhHwabt7lhcPNZ+ASFmwpFrrN3+NODAETtu5nL6dn92SEO8zy7l4D0iypjr3m4woOXsZDVESiYWhtqVeN5Hk6LFzihHjhh6nKAtGDjBFWfIj8sUwmtmLFH9wb7DQBGN1uFAFsT88fXFj0AyhDCYzXuQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37030ce7-ce53-4563-8289-08db73bfce96 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:44.6322 (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: yHGPlRPNP+Yjeq2sq3Q6NCPt1vkzUHuvHfW08dDGqI6L23wZ10o5CHQTFlKn5d9le19EyXaO4jgLyc6law83wA== 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 mlxlogscore=999 adultscore=0 spamscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306230071 X-Proofpoint-GUID: _Xb2JDkx7QM-_Fis9ACWNaqczbU1ANR4 X-Proofpoint-ORIG-GUID: _Xb2JDkx7QM-_Fis9ACWNaqczbU1ANR4 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Move the entire 'do_mmap' function under the 'HAVE_SYS_MMAN_H' define and fix the following warnings. This function is called only when 'HAVE_SYS_MMAN_H' is defined. tests/fsstress.c:4363:1: warning: ‘do_mmap’ defined but not used [-Wunused-function] 4363 | do_mmap(opnum_t opno, long r, int prot) Signed-off-by: Anand Jain --- tests/fsstress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fsstress.c b/tests/fsstress.c index f7d3a83a4e2e..692d7cfacaf4 100644 --- a/tests/fsstress.c +++ b/tests/fsstress.c @@ -4359,10 +4359,10 @@ struct print_flags mmap_flags[] = { ({translate_flags(flags, "|", mmap_flags);}) #endif +#ifdef HAVE_SYS_MMAN_H static void do_mmap(opnum_t opno, long r, int prot) { -#ifdef HAVE_SYS_MMAN_H char *addr; int e; pathname_t f; @@ -4454,8 +4454,8 @@ do_mmap(opnum_t opno, long r, int prot) free_pathname(&f); close(fd); -#endif } +#endif void mread_f(opnum_t opno, long r) From patchwork Fri Jun 23 07:59:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 13290123 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 69DE8EB64D7 for ; Fri, 23 Jun 2023 07:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230480AbjFWH75 (ORCPT ); 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 ); 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 ; 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 ; 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 ; 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 ; 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 ; 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 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: References: 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?1zWcbqvxpdmEZB8KOOLUEhmDiUdBoDkfUOKy5VBNxtrg6XrTsnCpbJGbROQjwi83G?= =?utf-8?q?B7j53BJ03AAIcUygUBvsZObm8+8DX6xGZRAXsA8ljV6OdZB05IcsFyKtH2lhFG9ar?= =?utf-8?q?wybqSPI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ap6T/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: X-Mailing-List: linux-btrfs@vger.kernel.org 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 --- tests/fsstress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) 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?+3jhuDIkHbAjwIzn5ijlKvr6deMCUPgVFK1B/jZr8Gx58J8alWDWO+oHpG0ly9p+1?= =?utf-8?q?+7k7LOY9RY2ciI2D/8OXRpSfM0eng44yepr6O28s0VcwVsy+u7011jDSAgD6XtP57?= =?utf-8?q?Ey4zKz/eVzIYtp3pjSPfAP0hEhcAVPU8WVDYWrJW7t62whKeYneSXnV/LrkesRijB?= =?utf-8?q?Qs2D8RJA9f3EaG8HlQXBBHAKNKPXZLld/nxMDPnsYkiN8DTHNMI7+IFGOyJBpJm+u?= =?utf-8?q?BURqu2I3UBntVMGH0N7akTgr5dFmNtWaRe2AdO/+2OPtuMYP/C4gd+fiEgTz1ayA+?= =?utf-8?q?sgdjhxLJT/Ahmxns572MNBlBlw5VjSxwQbGETZkEF3zYUQ0lpIsq+sba8TvbS9741?= =?utf-8?q?ayEkJ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X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: MW/1sKeeHZOMCrf0qnAC+kvM2M9Ux2qeuo4mBJ8jzrkDqu/2ausd3BEWWXX5ojSdj7rAx8Yfvel/9qW62IKp8+k7OxC2W30HJod/xDy5kWAEzZ0J1fdBfxJQfC8AqXwhmGxHxf739Age5GgkKMhnE2GGccOkb9m/e39urGiernPec4QElNohQCyZZ8xmfMoWpU4373qPfj7I/SCGAGfp0NXd9bNw3ZH9MViawOEWPYkTEsJcO5DxXILXuuoYCYyzc2d7trZgY2lghcpQkF/KqVG1gAiMPxGZiU10ZjIVmZg5YoPO+ONCC9IMh17bT/4/P3xLgUVnZvFpPv1N13xRFlT+ni5NvhZ28CZZERCXIxlk1M1i3m2u/YVP30XoCJJTj7rA8vuCe2BsRDaLywUIz7tCEfZc4u5P15S8OCuanMo6XT0UXiw1t6Pt2ndye/L0nn884kXESRTRdOeKEpWqPR6z9ZvXGgTd4OnzTuFAbfpl/gnxcLf/Ou25Ldgfc8eeww8QlcJf2PjIkFG94idi7cYFuSN67uPXYcD2OiYd+mYRsZ1AFDLwYdUcwx9DuWzx1Dum2C7OQ1shAmOlIgN5RUZvVGslp94LEOvgo176F73c2DRk7mak041c6rrb/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)