Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3422408imw; Mon, 18 Jul 2022 07:51:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uIUQb4zDKoAXie55ciVmY3aN2WC7zXsv5ctbAI7q5X9wFEPeVEqRxMiGViBAIr3Tki8h6w X-Received: by 2002:a17:907:7e87:b0:72f:18d7:6094 with SMTP id qb7-20020a1709077e8700b0072f18d76094mr10567301ejc.77.1658155901985; Mon, 18 Jul 2022 07:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658155901; cv=none; d=google.com; s=arc-20160816; b=DzKHApCpqERzHOBfX+obOIwPv7WPGUvUJvFjkG9Alwel2z6P1QubY/E4KhdlSTMB7m LwleQmq2vj6sWGlFyy57lxbUuCnaR6waQMj4NhSKtJRPk6HKOVpC5sXqqevz7/f6DTrB wb9YsOZ+IxagncZOvPOs/SpJMChsyPPSkObtOlXhEHUI88nwzTXmpB182RH36OAxUxWl iWwZILjz8yQpQvRfbJtoBav4gkEF7+rV4LDcyiOi0LyMJEFuh6IEcO/4lDLgc2a5Kkin I8+OnA4k0WXACKniZSGFZSnbVyRK46KXlQu7Nzcugy4AID/XjJyzP3wc1pw0iP8NQYUb ZWvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=NPqNHT6YnUxVcx9cr8glZM3SUwNtnMXazK3thBUpbts=; b=D29q0mtVJM63xv8fOjdpYWjnEydXKY9ipvIrdGgDoaX1VotMTlCcjhHFw+OORMC6z9 +ix5bKCcEx/te6NoOircyEmYHrkpNuSwCcF10ffDDPJqlvlfeny9BTWRVw0cv3i4uBQ3 1Xt1yrBMcwK7NSJUGUywGCN9dzuMiXEEi3tWfNNQAyWNAu63AMTkxE6vaSXpJe039KbZ Xg/+QW46RkcXcdbJI/Sk9OQ3o6H4f6BW8pNqBLijMLNolmo3678k0v329Zv/FZTgpz1U yqulTua+ZWMTZtH97Z7Qk8pQULd5ypJqC1TwrcxS8wVrxz8Ur6tjML4oa0kYj9z0e1BR tw/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd42-20020a17090762aa00b007263178bac4si19078772ejc.638.2022.07.18.07.51.17; Mon, 18 Jul 2022 07:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231274AbiGROcx convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Jul 2022 10:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbiGROc0 (ORCPT ); Mon, 18 Jul 2022 10:32:26 -0400 Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8FB23170 for ; Mon, 18 Jul 2022 07:32:25 -0700 (PDT) Received: from omf02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 5B8778091B; Mon, 18 Jul 2022 14:32:24 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA id C991F80013; Mon, 18 Jul 2022 14:32:22 +0000 (UTC) Message-ID: <49a8099eb7dd01e9d2d190056171341d87cd442b.camel@perches.com> Subject: Re: [PATCH] nbd: add missing definition of pr_fmt From: Joe Perches To: Yu Kuai , josef@toxicpanda.com, axboe@kernel.dk, houtao1@huawei.com Cc: linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Date: Mon, 18 Jul 2022 07:32:21 -0700 In-Reply-To: <853a5164-78cf-1ccb-8e18-cff5b5bce4ff@huaweicloud.com> References: <20220706093320.1962871-1-yukuai1@huaweicloud.com> <853a5164-78cf-1ccb-8e18-cff5b5bce4ff@huaweicloud.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: zn5wsm8bu3ibsfq9fmhf1s3698hxhkmh X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: C991F80013 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19u1lF+U+u5u4KTIb69mjPigTZKoouq7xY= X-HE-Tag: 1658154742-75497 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-07-18 at 21:52 +0800, Yu Kuai wrote: > 在 2022/07/06 17:33, Yu Kuai 写道: > > From: Yu Kuai > > > > commit 1243172d5894 ("nbd: use pr_err to output error message") tries > > to define pr_fmt and use short pr_err() to output error message, > > however, the definition is missed. > > friendly ping ... [] > > diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c [] > > @@ -44,6 +44,9 @@ > > #include > > #include > > > > +#undef pr_fmt > > +#define pr_fmt(fmt) "nbd: " fmt > > + Typically, this #define is place before all #include lines so there is no need for an #undef