Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp335980ybb; Wed, 1 Apr 2020 00:36:00 -0700 (PDT) X-Google-Smtp-Source: APiQypICX2zGhY9DivezR1sJm91s5SQSil6p6kyjoVd5Z6wLXA7XO6YBRQAsOkVzP1OhbsvYFScA X-Received: by 2002:aca:bd46:: with SMTP id n67mr1788774oif.120.1585726559991; Wed, 01 Apr 2020 00:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585726559; cv=none; d=google.com; s=arc-20160816; b=mRKYi9kMI2j8K3fqqiQHkrdDkMT12stIfrZWTGNerdwOINXWgO7Ma/3pY63oK6wRLW 19fmTJDWNS2oCI0gTQqX7NiW6hx5ZUyfCkT3xBg3t6aIIxSlB0Ry0F+lkC0yO0aiHoko EpdkyrtW5d63Uug76dONyLHi0LTbQtY+B2CiXx7l1iE2i79PqsGTw4vDLasvFGaCNOjo gmb+5gfm97yIBJfWRsGKEIr4Ikz8kqe9wMOY5fOf9CsERVPijVTzUhw5xhXd5kOBT7ix H5qOF+Il4+iorVVo+H0zSiUmBETXY90o9lBwA6tBCHymVOH+umecY84aO3PWmqjxpY+I ezgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=R9gwE0YJGEpxvtDbWf4WNU1m3NsY4pvAvSdB4vGBPtc=; b=ALWE6Z0jCQtJS3A3xNEIunvRuh+VyMu1PYvUe1KhMhqmg2LkzTIin6aEggb93p5eoz vp8tAN1yhMHfyUMjNQ3mi5bHK1nReloWu5nrTXNfuCs17O992kac7DpG/iPbW5b0uvOB 3riaQrpjJd4DBOxSyvZGGNKyH3DNsP6FWJEzH1MA35AxUBtV6H4zpJkGadd24BJwyALV iUelzd4eOfhrMsS00p6lcUOaRkWdOn1yxhorXpydoTrP2AYj8vZeQ/remPd0Q36q4WzK X45OFpEa2ZM+qNcq1rB4xpjddXzyEBfxh4mpTnRDEMK67rGbnYW/LiX4FQpRS+0+LPYW +32A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si459182otm.189.2020.04.01.00.35.38; Wed, 01 Apr 2020 00:35:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731889AbgDAHfE (ORCPT + 99 others); Wed, 1 Apr 2020 03:35:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12595 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731870AbgDAHfD (ORCPT ); Wed, 1 Apr 2020 03:35:03 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 818B5F262207DA92C326; Wed, 1 Apr 2020 15:35:00 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Wed, 1 Apr 2020 15:34:51 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH -next] ext4: Fix build error while CONFIG_PRINTK is n Date: Wed, 1 Apr 2020 15:30:38 +0800 Message-ID: <20200401073038.33076-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org fs/ext4/balloc.c: In function ‘ext4_wait_block_bitmap’: fs/ext4/balloc.c:519:3: error: implicit declaration of function ‘ext4_error_err’; did you mean ‘ext4_error’? [-Werror=implicit-function-declaration] ext4_error_err(sb, EIO, "Cannot read block bitmap - " ^~~~~~~~~~~~~~ Add missing stub helper and fix ext4_abort. Reported-by: Hulk Robot Fixes: 2ea2fc775321 ("ext4: save all error info in save_error_info() and drop ext4_set_errno()") Signed-off-by: YueHaibing --- fs/ext4/ext4.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index eacd2f9cc833..aa8466d28787 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2848,6 +2848,11 @@ do { \ no_printk(fmt, ##__VA_ARGS__); \ __ext4_error_inode(inode, "", 0, block, 0, " "); \ } while (0) +#define ext4_error_inode_err(inode, func, line, block, err, fmt, ...) \ +do { \ + no_printk(fmt, ##__VA_ARGS__); \ + __ext4_error_inode(inode, "", 0, block, 0, " "); \ +} while (0) #define ext4_error_file(file, func, line, block, fmt, ...) \ do { \ no_printk(fmt, ##__VA_ARGS__); \ @@ -2858,10 +2863,15 @@ do { \ no_printk(fmt, ##__VA_ARGS__); \ __ext4_error(sb, "", 0, 0, 0, " "); \ } while (0) -#define ext4_abort(sb, fmt, ...) \ +#define ext4_error_err(sb, err, fmt, ...) \ +do { \ + no_printk(fmt, ##__VA_ARGS__); \ + __ext4_error((sb), "", 0, 0, 0, " "); \ +} while (0) +#define ext4_abort(sb, err, fmt, ...) \ do { \ no_printk(fmt, ##__VA_ARGS__); \ - __ext4_abort(sb, "", 0, " "); \ + __ext4_abort(sb, "", 0, 0, " "); \ } while (0) #define ext4_warning(sb, fmt, ...) \ do { \ -- 2.17.1