mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Parenthesize macros in xfs
@ 2006-03-20 21:09 Jan Engelhardt
  2006-03-20 21:23 ` Nathan Scott
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Engelhardt @ 2006-03-20 21:09 UTC (permalink / raw)
  To: linux-xfs; +Cc: Linux Kernel Mailing List

Hello xfs list,


while browsing through the xfs/linux source, I noticed that many macros do 
not do proper bracing. I have started to cook up a patch, but would like 
feedback first before I continue for nothing.
It goes like this:

diff --fast -dpru linux-2.6.16~/fs/xfs/xfs_acl.h linux-2.6.16/fs/xfs/xfs_acl.h
--- linux-2.6.16~/fs/xfs/xfs_acl.h      2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16/fs/xfs/xfs_acl.h       2006-03-20 21:23:02.235418000 +0100
@@ -55,7 +55,7 @@ struct xfs_inode;

 extern struct kmem_zone *xfs_acl_zone;
 #define xfs_acl_zone_init(zone, name)  \
-               (zone) = kmem_zone_init(sizeof(xfs_acl_t), name)
+               (zone) = kmem_zone_init(sizeof(xfs_acl_t), (name))
 #define xfs_acl_zone_destroy(zone)     kmem_cache_destroy(zone)

 extern int xfs_acl_inherit(struct vnode *, struct vattr *, xfs_acl_t *);



Jan Engelhardt
-- 
| Software Engineer and Linux/Unix Network Administrator

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-03-26 14:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-20 21:09 Parenthesize macros in xfs Jan Engelhardt
2006-03-20 21:23 ` Nathan Scott
2006-03-20 21:39   ` Jan Engelhardt
2006-03-20 21:46     ` Nathan Scott
2006-03-25 21:35       ` Jan Engelhardt
2006-03-25 22:38         ` Andreas Schwab
2006-03-25 23:23           ` Jan Engelhardt
2006-03-25 23:45             ` Andreas Schwab
2006-03-26  9:26               ` Jan Engelhardt
2006-03-26 12:19                 ` Måns Rullgård
2006-03-26 12:30                   ` Kyle Moffett
2006-03-26 14:23                 ` Andreas Schwab
2006-03-25 23:26       ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®