From f367d5629bfaf36231486bdff9eda2e5698416a4 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 15 Feb 2024 07:54:04 +0100 Subject: [PATCH] io: don't redefine SEEK_DATA and SEEK_HOLE HAVE_SEEK_DATA is never defined, so the code in xfs_io just unconditionally redefines SEEK_DATA and SEEK_HOLE. Switch to the system version instead, which has been around since Linux 3.1 and glibc of similar vintage. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- io/seek.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/io/seek.c b/io/seek.c index ffe7439c..6d387c31 100644 --- a/io/seek.c +++ b/io/seek.c @@ -35,11 +35,6 @@ seek_help(void) "\n")); } -#ifndef HAVE_SEEK_DATA -#define SEEK_DATA 3 /* seek to the next data */ -#define SEEK_HOLE 4 /* seek to the next hole */ -#endif - /* values for flag variable */ #define SEEK_DFLAG (1 << 0) #define SEEK_HFLAG (1 << 1) -- 2.47.2