Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1252905ybb; Wed, 1 Apr 2020 19:29:37 -0700 (PDT) X-Google-Smtp-Source: APiQypK6M5zI3VHiCuWWGmYN10Z4dxRT5NYjvYLfIzbFhOK2sbsIESlCCfFP39A8rVOfddfubcLL X-Received: by 2002:a54:4416:: with SMTP id k22mr769866oiw.34.1585794576706; Wed, 01 Apr 2020 19:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585794576; cv=none; d=google.com; s=arc-20160816; b=WOb9DWavA3X0lRfh/kd+PSl8GvimLsAvBE4+bi3jZ/9y0O/xOaXLu3bAPK5xresxh7 fLj2QFMr2cTGVcZB3y06ncOeemKPtc9jTp5SDoafp5PH8fn1blnNB50ePq7kU8pXeUMv Kr78ckdK2lhcL2EZj5KOwZVkJEIYpCeYvSB5HPp7idSB4pCq69oraD2gyOsvnT4Q/kef dCIQZG7YWusJJ3OHBfZfUka+yy74d+T0obzLvNLAC5wH1t1Vz9XGqNmECc3Q/ILHouuY votXF1hm2akpLEeoUfMQn5IGomrsNG5DcQ6glQhIsiWffCZXoNlk8H5uGLP4i8Lcz7yn mlpA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=tU14hoBlqrCx1K/L8Y81/mJHMCRQHT+FTmOuKdz1NS8=; b=XZcvKD3tHvD5KOKlYBmXMsm0+hlxk16T9QBEZ+hCQw8WAEJLbAmdlYEv1iaPU8vz/Y /E1bZKT2SDWD1TVsNKocP3uarnfiwNIfCFwAhIDSlM6t4csIztYThP19mdPhIrvoAOzw kJ1hT9Y+kU0ed2Iov4syVyjMgMel0YfMK7qizJ8pssnKyawjQbwEAQhCqaF2KY3r26dU I9+bRTMCrhGPV4isW08cu6DCPbPZNpGOBs6NLUxpa/spe0hKUf8qQ7QL2/j/uZbCcaGj dmatQR/24Yoz2ViN0drTKomk3BLlJiAJh4L3JFVsP9aAF6QRQ+asthfh5JKbznMjtgc6 WeyA== 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 c125si1677238ooc.50.2020.04.01.19.29.24; Wed, 01 Apr 2020 19:29:36 -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 S1733213AbgDBC3X (ORCPT + 99 others); Wed, 1 Apr 2020 22:29:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47118 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732462AbgDBC3X (ORCPT ); Wed, 1 Apr 2020 22:29:23 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 90C198785B598A99A593; Thu, 2 Apr 2020 10:29:14 +0800 (CST) Received: from [127.0.0.1] (10.173.223.234) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 10:29:10 +0800 Subject: Re: [PATCH -next] ext4: Fix build error while CONFIG_PRINTK is n To: "Theodore Y. Ts'o" References: <20200401073038.33076-1-yuehaibing@huawei.com> <20200401212859.GN768293@mit.edu> CC: , , From: Yuehaibing Message-ID: Date: Thu, 2 Apr 2020 10:29:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20200401212859.GN768293@mit.edu> 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 On 2020/4/2 5:28, Theodore Y. Ts'o wrote: > On Wed, Apr 01, 2020 at 03:30:38PM +0800, YueHaibing wrote: >> 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 > > Thanks; the patch isn't quite correct, though. This is what I merged > into my tree's version of the "save all error info..." commit. > > - Ted > Ok, good to know this and thansk! > diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h > index eacd2f9cc833..91eb4381cae5 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, err, " "); \ > +} 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, err, 0, " "); \ > +} while (0) > +#define ext4_abort(sb, err, fmt, ...) \ > do { \ > no_printk(fmt, ##__VA_ARGS__); \ > - __ext4_abort(sb, "", 0, " "); \ > + __ext4_abort(sb, "", 0, err, " "); \ > } while (0) > #define ext4_warning(sb, fmt, ...) \ > do { \ > > . >