* [PATCH] affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY
@ 2024-08-15 21:35 Thorsten Blum
2024-08-19 14:20 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2024-08-15 21:35 UTC (permalink / raw)
To: dsterba, brauner, viro; +Cc: linux-fsdevel, linux-kernel, Thorsten Blum
The macros GET_END_PTR() and AFFS_GET_HASHENTRY() are not used anymore
and can be removed. Remove them.
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
---
fs/affs/affs.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/affs/affs.h b/fs/affs/affs.h
index 2e612834329a..e8c2c4535cb3 100644
--- a/fs/affs/affs.h
+++ b/fs/affs/affs.h
@@ -14,8 +14,6 @@
/* Ugly macros make the code more pretty. */
-#define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st))))
-#define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey])
#define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)])
#define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY
2024-08-15 21:35 [PATCH] affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY Thorsten Blum
@ 2024-08-19 14:20 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2024-08-19 14:20 UTC (permalink / raw)
To: Thorsten Blum; +Cc: dsterba, brauner, viro, linux-fsdevel, linux-kernel
On Thu, Aug 15, 2024 at 11:35:01PM +0200, Thorsten Blum wrote:
> The macros GET_END_PTR() and AFFS_GET_HASHENTRY() are not used anymore
> and can be removed. Remove them.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Thanks, added to AFFS branch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-19 14:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 21:35 [PATCH] affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY Thorsten Blum
2024-08-19 14:20 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox