OSDN Git Service

soc: qcom: hab: clean the pr_fmt redefined build warning
authorYong Ding <yongding@codeaurora.org>
Mon, 26 Feb 2018 09:32:11 +0000 (17:32 +0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 27 Feb 2018 03:19:13 +0000 (19:19 -0800)
commit7fc5b94897f416e606c3f9840700ed851f712790
treebb45328567360b760e32e8e1e7e96786f59a6621
parent17c46a04781867855b696b729e26500dab316870
soc: qcom: hab: clean the pr_fmt redefined build warning

In include/linux/printk.h, pr_fmt is programmed in such
below way.
#ifndef pr_fmt
#define pr_fmt(fmt) fmt
#endif
And in hab.h, there is a customized pr_fmt definition. To
avoid its redefinition warning, it should be undefed before
the customized one if it already exists. And such warning
happens in building khab.c now.

Change-Id: Ia7a58bc32c7205ac27767f9738271ddce8fef339
Signed-off-by: Yong Ding <yongding@codeaurora.org>
drivers/soc/qcom/hab/hab.h