From patchwork Wed Jul 24 10:28:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13740830 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 562C7C3DA61 for ; Wed, 24 Jul 2024 10:14:20 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sWZ0k-0007zU-Gp; Wed, 24 Jul 2024 10:14:19 +0000 Received: from [172.30.29.67] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sWZ0i-0007zK-S2 for linux-f2fs-devel@lists.sourceforge.net; Wed, 24 Jul 2024 10:14:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:Content-Transfer-Encoding :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ybn/WBehd/TAOlsx7/a+TgB0a++gTXCL/ZC2WLjQHTI=; b=Zg+a7WVmEPW41lZmhJchug+7RI R0nziCQYUF3J1X06jbRgeQ9fvt9RYz4ghWvom246AVXt/ZBzadX6txcJye14cv/02Ajzt0BvCpeKE lXnb+TOwgC9Pp2ernkIHR5cuJY/sg5SANQiABcYe5PW9AsvoznHhVc6UJUBiPAT1p8B4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=Ybn/WBehd/TAOlsx7/a+TgB0a++gTXCL/ZC2WLjQHTI=; b=D ptOPayPLhlqV0jbIS61CscWbO+bC2QOXGJVH4S6fySpMCSIQKi3CUyiWszAPx3KH14cMSmLc0ceZU FqU7IL2onZZabUJCJDErRzuHAY0r+PdLor6ronVE5nfRrPSPB6h36Xwms40kK6qA80JSvAK6ekd2i WW/vxbryN128aS+M=; Received: from mail-psaapc01on2086.outbound.protection.outlook.com ([40.107.255.86] helo=APC01-PSA-obe.outbound.protection.outlook.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sWZ0i-0005ct-S7 for linux-f2fs-devel@lists.sourceforge.net; Wed, 24 Jul 2024 10:14:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EssxzfQyyngxa/sgXYc7rCBrbaV8jW8aknI2IPmMobAeiZs6ZUvz2keio+LObj+1BD/euPv3ItAHd7Tf/wwigTxLb/RuA36sgVU+LK1EBA5odSbSGvfblzzu3Or/rO5ztFoGTLeBA9SXh43F4TvcwGVXaKkV6qacBgM5zW/Q3VyinSy8wvw5eaBTpw5Fu/nR7Bc7p19xTeVpxBr3+ihcNFcfYOr8ZC1uMFvtLHuts2g+igjRpBvCMnLARJ3TrkOo37UXywG8G7PR5NIhfbIhbAJ+7QQMM6u/fxxr8Qu4yzwjlVwjD55kXhdm73FEfG0HOit70+gQDxfkXeuzGwbhXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Ybn/WBehd/TAOlsx7/a+TgB0a++gTXCL/ZC2WLjQHTI=; b=tphPvPHOHqPz5EdM3UKBvVNFT6zWd+Knaow4qPlx9CUiqqGVZ1cN2z+Al0J2AOHLFoyma+DjYyMArocOeoOstFGbp8Jj0rmPnoJHg28yFLeRsR9OVB1YXkxXT0Duo0k2545Jm/bpCcLLkknXKqxezoe8p5FSdZ1B+Pi8jjrOoEvhINZNdobGmjycYpj5ROEyD5rHGhR0Jg3Z2432ApkZxQfGb9Ej3yW+JQyjk+Hn15iLesykQqKew8UPi29haZBrEPS83WYYp8YT3Vq+e9qnke1M3v8GN2MKaUPsnMw7jpXcZreAetlLo04e6RHPVcmdq13+NXDmu74Qp0EpJrGi0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ybn/WBehd/TAOlsx7/a+TgB0a++gTXCL/ZC2WLjQHTI=; b=MMlU7id1eubhGgPuxLzR2WxS0bGtL4AkTJSGNt+8BPHc6gm+r0dckdwdC8J8ionFLW0R6CI/w08HtubBhFiJ1uU3pYFjAPpuiypi+ftWK43nlmQVHdFgXzb1UikP+NYr9kHNOjLQ0jL78JjBQ2TqynaJr9Tt2tY1DS2wiNGhO4xTEYKcSwDaqto+RLaCgv8f4lFO9O1RTCKQbz1F/fTJMewrazRv3O/vwY/g2U37nKDmxm9ddmFejKafH926YGJvLHY8KV34KYJY1i4dLbO9fJ/oLpNfzZIE0uhFZi9gSZmCeylK9rxl4X2Ezu0NGIQQsbIvTHTWztvhSUYifkGv6w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) by SEYPR06MB5232.apcprd06.prod.outlook.com (2603:1096:101:85::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Wed, 24 Jul 2024 10:14:00 +0000 Received: from PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5]) by PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5%5]) with mapi id 15.20.7784.017; Wed, 24 Jul 2024 10:13:57 +0000 To: Jaegeuk Kim , Chao Yu Date: Wed, 24 Jul 2024 04:28:18 -0600 Message-Id: <20240724102818.2665047-1-bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR04CA0175.apcprd04.prod.outlook.com (2603:1096:4:14::13) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|SEYPR06MB5232:EE_ X-MS-Office365-Filtering-Correlation-Id: b86900fa-8649-4cdf-b3d5-08dcabc95491 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: VW4/tHqPX3XYxxjswncK/zJ3h/1n50Twyc9KcJSLj5/37nk8uKw2acShSLFOkQXyCFUGR5UaAfbZ1lVpTkaCZhwtT9aeZtc9xhH9il+CoAUAS6kat0XOST0D3wrJF4vvPe9KLE0DSOm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zhSc3zhrpoOL0e43BCk2ZMtqPCFUWQAhCzHEaG4wQSwAjJXffsQ3TtnqACXow8xKslkOMZxT1IUb0oGpmGDmyByeyKgAJ4SXtqVqBsVJvaRZ5IaywWcIXU8ObZ+DT/FWcw2qy+rSU30f6THxJzVq96SYBp5EndVES3UXgbRi4OOuisSlU00jFjBQ/MAqzjCZgz49Ek9daYtDrIl8KjLiYg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PSAPR06MB4486.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tGH5IrtPvQIzMStO1ewNkLLlqNPbi/rFuLFOY6TXqnXBh1r54o4cDYosHX+r/JRZaBve+ivkLyCFFzGQEyF9Hdu3MzbFPRYv7B3UP+5oHEOwnBK0gdXutUOPNgmqXtrif1HAkOF3FxFroJ5jfAWJi9zd2NE1l+f7XgEKK4YoDGDFL4qOAAxXj4Krh7izrmVpPDg7CZfmRF9gl9/OO2mUpnE8RhFJYn3MjkbgxqZSgJf3AUKBE5sSeKJ9CnyHubh3ATclx+ZnZeBslb2uZ8NkD0Vha0VUJVD25uM3WI9zD5AcLrAz6ggtvEUyYYrrJzIBIeBhpFbp27gmLTfBwvmecY6m1xqQB1nYzr3DXwjRW1sbTyK6UBC6f/6ViLNgcEv11tImpyx14ztVfDI25H0GfCXhP2+QTkVSTP7qDmBgHudcdm4Ij2L1WglZLJVLH8nZRbJOyPSgYVw7XovG6Q//VEzPTKzshSlJLOXU3KsWcwpyS5KzmM8y8K+a01L57WLLb5mVz0BltWNoEj/IGg/ZGR8ZDLAn/pHR2cgSrC8NmTViFtk7AoL3AfzLQTevYUoJv7PWN3zwTxzZqbsuSDyCSCKL9sjnvdU4Bi4//V7eLPUWoq1tcZxT3yJCh9uSOrz+NIT8hK0FHl++Td1PfJ6ayhaZYDFAykNuq6YS1i3RzAzMtdMofAJGvy+As7uySc9jfu7QNgmtylbIN5I3kdk2f81rSFAwHaRrUjI3GMF6O6iLeiU/2l8utWKSFxGwPtaHyjLCsChRw287KQ3PWYsq+YH1rXEbYOrWZsElSyQEhySPUJyB5uS0iPyZaG/bjRvFOE+I/LNPZh0I1O+1u87tbjGdbwyV/Kj2NDgGWcYckwlYQJKDrL2k3Dl89oKvxvk+lWThqp305ZGwtjtpuawqVSc8t+ih6AYSzv4tICtqkqskMH5nR7H13f+FTPgNSktct95VbDp42EBpEVSPPK9VTLBc+1jV++AUJgFBckNtPX8+R7QWujGLlpAgCXA9kxDBSDrO+5gN/YBmEafeqIrKHqyh5HCLzbEzR/NMUK9dLYCTzk8/0+O66YQfVj7Dp79lGMkxb+fNoAXUR9oJcUcT5PJRLZI9Gaqlnws+d4bfnzToOeshjUVjb/pgc/DDcgmt0bW5HOU9xW5hw79zhqlcGJ5vRV8jP62mRIQdLBYyTAV7oKea3g9ChHrkw30ZTSZufbNQNFdQSXyXyo0vVBKOODDE/tYCgOIV6W6b0XPp3gjYvlR9+VRgwW14T0/HdW3XDzJ0gpxaUa/u6vVLJ/a9LhO9kbfABUz8lgRpK/1Gl+1m88w8WWi28D4Gw6lVTzP8niz/HtaxfLmelEc5zUwICgIn8gLmpF8LprRvEf/pnqateItr3Zop5hhwoeUKKToPRp3dZieN8Df9t/J/7dqMbdTnWx68oEzZZEZokdkbaeU5bnrZcLqgnOzo7FjIzGPi59WO67evYTYrXYIzZtPENqQjBXG/k2cWd34PtpNjvmCOt6Mt1z4D59Vh+zET+tVknbmszCFIiTvfKsETtuDtT+CnBFmX8bziJ4IoVJQmSuCwRzIPoteFlXsSwlxgQc+A X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b86900fa-8649-4cdf-b3d5-08dcabc95491 X-MS-Exchange-CrossTenant-AuthSource: PSAPR06MB4486.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2024 10:13:57.8086 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zSwTn08SWorWB12NAmSekH8TkzwNwK0EK+G23tclhJLVMtyAKgMiS7UKhVWysmoVMLffBxAhDiX7KP37yZt2nw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5232 X-Headers-End: 1sWZ0i-0005ct-S7 Subject: [f2fs-dev] [PATCH] libf2fs: add BLKFINISHZONE define if not defined X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wu Bo via Linux-f2fs-devel From: Wu Bo Reply-To: Wu Bo Cc: Wu Bo , linux-kernel@vger.kernel.org, Wu Bo , linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net BLKFINISHZONE may not defined in old blkzoned.h, and cause build error. Signed-off-by: Wu Bo Reviewed-by: Chao Yu --- lib/libf2fs_zoned.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libf2fs_zoned.c b/lib/libf2fs_zoned.c index e55d098..221d7d1 100644 --- a/lib/libf2fs_zoned.c +++ b/lib/libf2fs_zoned.c @@ -27,6 +27,9 @@ #include #ifdef HAVE_LINUX_BLKZONED_H +#ifndef BLKFINISHZONE +#define BLKFINISHZONE _IOW(0x12, 136, struct blk_zone_range) +#endif int get_sysfs_path(struct device_info *dev, const char *attr, char *buf, size_t buflen)