Message ID | 08a12fed33d557de42bd74a010550689f9eaca3a.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 1F43DEB64D7 for <linux-btrfs@archiver.kernel.org>; Fri, 23 Jun 2023 07:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbjFWH7u (ORCPT <rfc822;linux-btrfs@archiver.kernel.org>); 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 <rfc822;linux-btrfs@vger.kernel.org>); 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 <linux-btrfs@vger.kernel.org>; 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 <linux-btrfs@vger.kernel.org>; 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 <linux-btrfs@vger.kernel.org>; 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 <linux-btrfs@vger.kernel.org>; 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 <linux-btrfs@vger.kernel.org>; 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 <anand.jain@oracle.com> 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: <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: 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+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UvhPpeYyIufnvkHiEcbq3hpjBVUXNfj0MKZQA+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: <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 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)
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 <anand.jain@oracle.com> --- tests/fsstress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)