From: Christoph Hellwig Date: Fri, 1 May 2020 21:01:32 +0000 (-0400) Subject: xfs: remove the unused ATTR_ENTRY macro X-Git-Tag: v5.7.0-rc0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67791829506f77ff5e8183ec44b781af784c5eb7;p=thirdparty%2Fxfsprogs-dev.git xfs: remove the unused ATTR_ENTRY macro Source kernel commit: fe960087121a9fccaead3de44c64fcf356f3410d Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_attr.h b/libxfs/xfs_attr.h index 0c8f7c7a6..31c0ffde4 100644 --- a/libxfs/xfs_attr.h +++ b/libxfs/xfs_attr.h @@ -69,14 +69,6 @@ typedef struct attrlist_ent { /* data from attr_list() */ char a_name[1]; /* attr name (NULL terminated) */ } attrlist_ent_t; -/* - * Given a pointer to the (char*) buffer containing the attr_list() result, - * and an index, return a pointer to the indicated attribute in the buffer. - */ -#define ATTR_ENTRY(buffer, index) \ - ((attrlist_ent_t *) \ - &((char *)buffer)[ ((attrlist_t *)(buffer))->al_offset[index] ]) - /* * Kernel-internal version of the attrlist cursor. */