From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Sat, 4 Jun 2016 22:27:22 +0200 Subject: [U-Boot] [PATCH] linux/compat.h: add dev_warn() In-Reply-To: <1462454902-6093-15-git-send-email-sjg@chromium.org> References: <1462454902-6093-15-git-send-email-sjg@chromium.org> Message-ID: <1465072042-4631-1-git-send-email-andreas@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In order to prevent build errors for copied code from linux introduce dev_warn(). Suggested-by: Scott Wood Signed-off-by: Andreas Bie?mann --- This is a replacement patch for '[PATCH v2 14/18] at91: mtd: nand: Add dev_warn() to correct build error in driver' include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index e561ee3..7236b8d 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -25,6 +25,8 @@ extern struct p_current *current; printf(fmt, ##args) #define dev_err(dev, fmt, args...) \ printf(fmt, ##args) +#define dev_warn(dev, fmt, args...) \ + printf(fmt, ##args) #define printk printf #define printk_once printf -- 2.7.4 (Apple Git-66)