Re: [PATCH] netfilter: add per-namespace logging tonfnetlink_log.c
From: Jan Engelhardt
Date: Mon Jul 18 2011 - 16:28:31 EST
On Monday 2011-07-18 22:17, Rainer Weikusat wrote:
>David Miller <davem@xxxxxxxxxxxxx> writes:
>>> [rw@sapphire]~/work/linux-2-6/net/netfilter $find -name '*.c' | xargs grep '^#ifdef' | wc -l
>> You've shown nothing. Showing exceptions does not prove that the
>> general effort has been to keep ifdef crap out of *.c files.
>I've 'shown' that the networking code contains a fair amount of
>#ifdefs in .c files. Consequently, 'we did it without' is wrong. At
>best, 'we would like to do without in future' seems justified.
Your count of ifdefs is just telling that we use ifdef, not how we
There is a difference between #ifdefs sprinkled inside a function,
and #ifdefs around functions or larger groups where possible,
feasible and optically preferable (cf. security.h, xt_TEE.c).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/