From: Christoph Hellwig Date: Thu, 27 Feb 2020 01:30:37 +0000 (-0800) Subject: xfs: remove the unused ATTR_ENTRY macro X-Git-Tag: libata-5.7-2020-04-09~68^2~77 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=fe960087121a9fccaead3de44c64fcf356f3410d;p=linux-block.git xfs: remove the unused ATTR_ENTRY macro Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_attr.h b/fs/xfs/libxfs/xfs_attr.h index 0c8f7c7a6b65..31c0ffde4f59 100644 --- a/fs/xfs/libxfs/xfs_attr.h +++ b/fs/xfs/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. */