From patchwork Sat Jun 4 20:27:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 630279 X-Patchwork-Delegate: andreas.biessmann@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rMXZh6d6Kz9t69 for ; Sun, 5 Jun 2016 06:27:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A892DA74D0; Sat, 4 Jun 2016 22:27:38 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V2UhY6SlErO5; Sat, 4 Jun 2016 22:27:38 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DB4E64B93F; Sat, 4 Jun 2016 22:27:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4C35F4B93F for ; Sat, 4 Jun 2016 22:27:35 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sKeuV3iU0a4C for ; Sat, 4 Jun 2016 22:27:35 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from storm.biessmann.org (storm.biessmann.org [134.0.27.137]) by theia.denx.de (Postfix) with ESMTP id 169D94B91E for ; Sat, 4 Jun 2016 22:27:30 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -1.995 X-Spam-Level: X-Spam-Status: No, score=-1.995 tagged_above=-9999 required=6.31 tests=[ALL_TRUSTED=-1, RP_MATCHES_RCVD=-0.996, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mba.int.er.biessmann.org (er.biessmann.org [80.81.14.92]) by storm.biessmann.org (Postfix) with ESMTPSA id E35A5A2977; Sat, 4 Jun 2016 22:27:27 +0200 (CEST) Received: from mba.int.er.biessmann.org (localhost [127.0.0.1]) by mba.int.er.biessmann.org (Postfix) with ESMTP id 5AD45434BF7; Sat, 4 Jun 2016 22:27:24 +0200 (CEST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: U-Boot ML Date: Sat, 4 Jun 2016 22:27:22 +0200 Message-Id: <1465072042-4631-1-git-send-email-andreas@biessmann.org> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1462454902-6093-15-git-send-email-sjg@chromium.org> References: <1462454902-6093-15-git-send-email-sjg@chromium.org> MIME-Version: 1.0 Cc: Fabio Estevam , Jagan Teki Subject: [U-Boot] [PATCH] linux/compat.h: add dev_warn() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" In order to prevent build errors for copied code from linux introduce dev_warn(). Suggested-by: Scott Wood Signed-off-by: Andreas Bießmann Acked-by: Simon Glass --- 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