lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 21 Jan 2020 15:34:16 +0800
From:   Alex Shi <alex.shi@...ux.alibaba.com>
To:     unlisted-recipients:; (no To-header on input)
Cc:     Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
        David Sterba <dsterba@...e.com>, linux-btrfs@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH] Btrfs: remove macros tlv_put_u8/16/32

These 3 macros are never used after introduced from commit 31db9f7c23fb
("Btrfs: introduce BTRFS_IOC_SEND for btrfs send/receive"), maybe better
to remove them.

Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: Chris Mason <clm@...com> 
Cc: Josef Bacik <josef@...icpanda.com> 
Cc: David Sterba <dsterba@...e.com> 
Cc: linux-btrfs@...r.kernel.org 
Cc: linux-kernel@...r.kernel.org 
---
 fs/btrfs/send.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 091e5bc8c7ea..75760934a084 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -639,9 +639,6 @@ static int tlv_put_btrfs_timespec(struct send_ctx *sctx, u16 attr,
 			goto tlv_put_failure; \
 	} while (0)
 
-#define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data)
-#define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data)
-#define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data)
 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data)
 #define TLV_PUT_STRING(sctx, attrtype, str, len) \
 	do { \
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ