From: Mathieu Desnoyers Date: Tue, 4 Mar 2008 22:29:00 +0000 (-0800) Subject: markers: add an if(0) to __mark_check_format() X-Git-Tag: v2.6.25-rc4~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc4988bcf38f9618886eaeb9802aeacc6978ec2;p=pandora-kernel.git markers: add an if(0) to __mark_check_format() Wrap __mark_check_format() into an if(0) to make sure that parameters such as trace_mark(mm_page_alloc, "order %u pfn %lu", order, page?page_to_pfn(page):0); (where page_to_pfn() has side-effects) won't generate code because of the __mark_check_format(). Thanks to Jan Kiszka for reporting this. Signed-off-by: Mathieu Desnoyers Cc: Jan Kiszka Cc: "Frank Ch. Eigler" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed