Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1106316ybt; Wed, 8 Jul 2020 21:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIBTQId3Mn1OmAYK/tlQAfpPsM3JTKhiMOUAHwnRjrSN567dex/fqluytm8webPe6MM4KF X-Received: by 2002:a17:906:780f:: with SMTP id u15mr41692226ejm.295.1594269658005; Wed, 08 Jul 2020 21:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594269657; cv=none; d=google.com; s=arc-20160816; b=DciDlPdN65g7DfoG87UOh6AxSLov12Lyi6QGpixayUCNIg4+LDOIhCoHOAOqji2LEM Z4PEiNVOb88sdSZmxx55pQz3yj3i0TzBIK4eTmgUxIDvSruIC58tpCKy+A/WEnQXL20X wnVkPGvtvUL66fflFrxuJFxDgl1CUK5g5RsxB3EUraM/iucHf5zFlaWpg0uivmUkCCgT M1R8nPWNCLTyInHI3d2B6x4YqoflsxO/0uefYUI0BwMbF8RvsR/S9cs1UnPwooPOu2by X+9ijfqFhXaFj0cGE30W/PjjtzQCzYrgNmVB94ElijM2Eu267YsR8hfgb3Rt91aC4GRr yfmQ== 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:references:cc:to :subject; bh=Tf9xJt+6YgALpAIESxYR9XVC7zMaZlQyWj/fd1xZD3E=; b=KUNKZBX7OwBvRjypEo8p2GbMt8zgHq72GayLcf7MadLAgIgsOeTXfDkyB65arvGUKJ 1VN4WSBNOS5SGbSVZwU2OgdQZaxFbJHgE49nSgHcfqFLsC2I1jrfNpEd/W+Xp12z4GBZ BThXmAFOKm//13/AqSjVZbMEC19rI1vfvi/l+JkWKuA+5Yu4/KbxJynS7eDsGGg3Zfo2 Gmr+l0yCsEbRM38ktCvHDi4ssrCkewCgipgxrMgSaLC7VEgd9s0WBDqYmtd9TEPBNhT/ jjRC95LMW3gtfgWiXs3YsiVPGxtcJ09IoILJ0qYuRPQujPR8Q9ZoITcFjenDzg0ZBgXb szhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv20si1283874ejb.420.2020.07.08.21.40.35; Wed, 08 Jul 2020 21:40:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbgGIEij (ORCPT + 99 others); Thu, 9 Jul 2020 00:38:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7278 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726064AbgGIEii (ORCPT ); Thu, 9 Jul 2020 00:38:38 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0F441E303E9AC6E7E8C1; Thu, 9 Jul 2020 12:38:36 +0800 (CST) Received: from [127.0.0.1] (10.174.179.106) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Jul 2020 12:38:31 +0800 Subject: Re: linux-next: build warning after merge of the device-mapper tree To: Stephen Rothwell , Alasdair G Kergon , Mike Snitzer CC: Linux Next Mailing List , "Linux Kernel Mailing List" , Bryan Gurney References: <20200709132609.6de53604@canb.auug.org.au> From: yangerkun Message-ID: Date: Thu, 9 Jul 2020 12:38:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200709132609.6de53604@canb.auug.org.au> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.106] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/7/9 11:26, Stephen Rothwell 写道: > Hi all, > > After merging the device-mapper tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from drivers/md/dm-dust.c:11: > drivers/md/dm-dust.c: In function 'dust_list_badblocks': > drivers/md/dm-dust.c:307:10: warning: zero-length gnu_printf format string [-Wformat-zero-length] > 307 | DMEMIT(""); Mike and Bryan, Should we just use "DMEMIT("\n")"? Maybe it's bad since this lead a blank line... > | ^~ > include/linux/device-mapper.h:555:46: note: in definition of macro 'DMEMIT' > 555 | 0 : scnprintf(result + sz, maxlen - sz, x)) > | ^ > > Introduced by commit > > 20f93ea74f9c ("dm dust: add interface to list all badblocks") >