From patchwork Wed Jan 29 17:02:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11356573 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5D3D91398 for ; Wed, 29 Jan 2020 17:04:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B63E2070E for ; Wed, 29 Jan 2020 17:04:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="RDYG9uNP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbgA2REA (ORCPT ); Wed, 29 Jan 2020 12:04:00 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46698 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgA2REA (ORCPT ); Wed, 29 Jan 2020 12:04:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KhsX+Ttee5E2G07I4Vx8xnJnwdvwJbs2yDwf351x0A0=; b=RDYG9uNPOpa1RGJFu5hE+flLdS PBMI8oxDcRji3f+AQQDRHtL8fJhnCbqqwKj69nkfGfBX7PYSvNT2HYZ5lz4ZQHSYlPhr3ml5WTn7d PO1SiQELKQ+6XSxtBlgijt/DboVyghy2kpUntxor5wC8MWac4tS6NHI31FNK7eYMsFRurC9thjnxO 3ZbDx4/XziFZGEwLH7lEa5LrVxCqrG+hBzz8j6fIqrQy5Cm+g4uPHI1+eKGz70993vp/xaCZA9Mhr zGsSJV5UcNfYtxuvTqCieWPdiPJYokuJzxctRn9U2ic4VkeMUXVzroBVZ4/JHJ09WjcTticc5jd2Z ljNkF4/w==; Received: from [2001:4bb8:18c:3335:c19:50e8:dbcf:dcc6] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwqky-0006xD-6k; Wed, 29 Jan 2020 17:04:00 +0000 From: Christoph Hellwig To: linux-xfs@vger.kernel.org Cc: Allison Collins , "Darrick J . Wong" Subject: [PATCH 19/30] xfs: remove the unused ATTR_ENTRY macro Date: Wed, 29 Jan 2020 18:02:58 +0100 Message-Id: <20200129170310.51370-20-hch@lst.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200129170310.51370-1-hch@lst.de> References: <20200129170310.51370-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong --- fs/xfs/libxfs/xfs_attr.h | 8 -------- 1 file changed, 8 deletions(-) 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. */