From: Joe Perches Date: Mon, 30 Jul 2012 21:40:09 +0000 (-0700) Subject: printk: add generic functions to find KERN_ headers X-Git-Tag: v3.6-rc1~41^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc8fa41ad31c576cdbc569cc3e0e443b1b98b44;p=pandora-kernel.git printk: add generic functions to find KERN_ headers The current form of a KERN_ is "<.>". Add printk_get_level and printk_skip_level functions to handle these formats. These functions centralize tests of KERN_ so a future modification can change the KERN_ style and shorten the number of bytes consumed by these headers. [akpm@linux-foundation.org: fix build error and warning] Signed-off-by: Joe Perches Cc: Kay Sievers Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed