From patchwork Tue Oct 15 00:23:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 13835562 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 9B1AFD18159 for ; Tue, 15 Oct 2024 00:23:51 +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 1t0VLo-00005E-9C; Tue, 15 Oct 2024 00:23:49 +0000 Received: from [172.30.29.66] (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 1t0VLn-000055-5J for linux-f2fs-devel@lists.sourceforge.net; Tue, 15 Oct 2024 00:23:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: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=La0FbfaSsUe5f/URD5cSG8H/NZnbROBH69XqDFL+prM=; b=j8btcXKCdLuPFl01rnCeh9B0jB WPTh+NgGpzzL8gPQDnLPpDNEbeh38ambh3JlQPnF3VubQ3ADRADKQGlVrtcwerKwatlUp76QgoqIN 3wsgnHRET9mybKdbRRLvAQ3Aj4Djj+RNA7j7D3/PToNxkKUBXfcVNwZBNXyYPmhhXtOo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type: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=La0FbfaSsUe5f/URD5cSG8H/NZnbROBH69XqDFL+prM=; b=T MJPGGAK/l3ucJRysEls6f2kKRxlYULN7rCBS21Whoijb1YcLSPrm5odzF298q41Q6bYof32PfVrMg rhWM1U7AswsShfABK0jdVjn0f/0hF3RUH5R/44Wx7UERjDIFE2hTkhLADCu1b4bQ0dJX1p+FQ0vl/ EtaLOkk6ld3lZFWM=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1t0VLm-00081k-5D for linux-f2fs-devel@lists.sourceforge.net; Tue, 15 Oct 2024 00:23:47 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 65AB75C5C20 for ; Tue, 15 Oct 2024 00:23:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FC2FC4CEC6; Tue, 15 Oct 2024 00:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728951815; bh=HlqarReOghWkv7c5Sbqoy22zYM/VAvXmwpyI+qtURks=; h=From:To:Cc:Subject:Date:From; b=Nu5+PFy216il4QH6/f4VuuubHNOchJGMfGy03M4wDalR3YVOHdtavJt6ewK31WL5A S97DFVcIZV+nhYO9atITF2AB9I85Kc+kwbLIlG+qehTeKFscOFRBzPI3SkJnUpoVI7 RLzE3NNCzwmw65OCWCpB2BvpLZWGqRZyOH/pxB/FL3BddNsvQcpDdvXjxKBkZVCEdg 5pWpoWOO1ZGLK3NXu/1CH4qHxMJtu3l0LFzMnxvom+5rFHwHjxTeZlQYmcOqpn7y/w DNW+IPF9aTb5HYVnqB5D5B4wueqcrudsbVIt8dsqlrOCv6G0ha/vJk5Wn1PRI+mA/V n11U0tQ7/Wjmg== To: linux-f2fs-devel@lists.sourceforge.net Date: Tue, 15 Oct 2024 00:23:31 +0000 Message-ID: <20241015002331.2724827-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog MIME-Version: 1.0 X-Headers-End: 1t0VLm-00081k-5D Subject: [f2fs-dev] [PATCH] f2fs-tools: remove linux/fcntl.h but define the hint directly 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: Jaegeuk Kim via Linux-f2fs-devel From: Jaegeuk Kim Reply-To: Jaegeuk Kim Cc: Jaegeuk Kim Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net It's complicated to address libc and kernel headers. Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu --- lib/libf2fs_io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libf2fs_io.c b/lib/libf2fs_io.c index 1923c0b87dfc..520ae0362fd4 100644 --- a/lib/libf2fs_io.c +++ b/lib/libf2fs_io.c @@ -34,16 +34,16 @@ #include #endif +#ifndef F_SET_RW_HINT +#define F_LINUX_SPECIFIC_BASE 1024 +#define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12) +#endif + #include #include #include #include "f2fs_fs.h" -#ifdef HAVE_LINUX_FCNTL_H -#define HAVE_ARCH_STRUCT_FLOCK -#include -#endif - struct f2fs_configuration c; #ifdef HAVE_SPARSE_SPARSE_H