Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2248139imw; Wed, 6 Jul 2022 02:39:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAHj7G4SC5zrFHxvSucF3aaksqpLemLcEvDaz3y84JrRLo73/ydBO1+9tMnkruR3p6Vfaa X-Received: by 2002:a17:90b:1b0d:b0:1ef:9fcb:cdd2 with SMTP id nu13-20020a17090b1b0d00b001ef9fcbcdd2mr8392717pjb.125.1657100368445; Wed, 06 Jul 2022 02:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657100368; cv=none; d=google.com; s=arc-20160816; b=r8itnYG7WIRHg08qvMQs69cznUrJfA9e/qkM2vy0iVrZP3AwI0Tz8DABYY7bkFbGmY dH87qYOuJAMc8XLw5FaRUcuB8wWJBmJpQxUNiorCmsKtoV+mA6YK8Bpm1wT7zCRcmHC2 hOPVPqEjFB/chHHVGbRGP06pK8NLjDAs9iBKIjApzy1XBt10WQFRz5EB954kDAN+bH6E +UYxzoxKpAMhG1Srb10r8BBeSRJ14rfjNISs4gU/6V/02mac8Ali1g6TEguw+lIzpQH3 DgD7YDLAIE4aH58ZSdrVTA2rv6RU1FjLsLZuY3bFWm7ySbWNEfvS5CJCGH+m2PHJ1TP+ lD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=a3PAkGSMM7PonyCHLOGdFXDL/XZTWt7m/STSbN4KIGc=; b=DgpGgTV8HjndA2oQrvEUQIlU0sc/LOk8OEc9x48318Zcg9dCqDXxlvOOU1Hl6iY6DU 2s5SNpda6Jv4CWF91pQtYCJ8rPW6lueQB8RpI/cYIq2wYvTShk6Sd2TBMPeKoaqO4p0z a1+zDqSLzHwWkt+moxUU95jTO9KpcvLoByPTooeMVXOp/gArDxdA6mMcgkXBAs246bQ3 eyBUDfdWWKjV4ARkJhi8MMEroj40PrsPa5B+4I033evFx3oFxYR0QFipOdI9giJZUekU R8gAyRMcEsFDWg7LF0un6dWFxne+9hWgWWIyhISpFDzE+ZrRW3zu7p3NcI4hhOYu4xgu s6sg== 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 b14-20020a056a00114e00b0051b79672ca1si23346333pfm.123.2022.07.06.02.39.07; Wed, 06 Jul 2022 02:39:28 -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 S232412AbiGFJUs (ORCPT + 99 others); Wed, 6 Jul 2022 05:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiGFJUq (ORCPT ); Wed, 6 Jul 2022 05:20:46 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2098315A31; Wed, 6 Jul 2022 02:20:46 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4LdDXG6mKFzl1gB; Wed, 6 Jul 2022 17:19:58 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP3 (Coremail) with SMTP id _Ch0CgCH6mnrU8ViIk++AQ--.22412S4; Wed, 06 Jul 2022 17:20:44 +0800 (CST) From: Yu Kuai To: josef@toxicpanda.com, axboe@kernel.dk, houtao1@huawei.com, yukuai3@huawei.com Cc: linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org, yukuai1@huaweicloud.com, yi.zhang@huawei.com Subject: [PATCH] nbd: add missing definition of pr_fmt Date: Wed, 6 Jul 2022 17:33:20 +0800 Message-Id: <20220706093320.1962871-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgCH6mnrU8ViIk++AQ--.22412S4 X-Coremail-Antispam: 1UD129KBjvdXoWrKryrGrWDCFyrtFy8ZrWfGrg_yoW3Wrg_Ca s7Zw4xXws3WryxCr4jyFs3ZryFyw4rXrnYvrna9393ZFyUZF97J3ZFyrZxGr47G3WvqF93 Aa1qqrsrAF4fJjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbz8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6r1F6r1fM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6Fyj6rWUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E 14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUF9a9DUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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 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. Fixes: 1243172d5894 ("nbd: use pr_err to output error message") Signed-off-by: Yu Kuai --- drivers/block/nbd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 07f3c139a3d7..94a1602adab5 100644 --- 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 + #define CREATE_TRACE_POINTS #include -- 2.31.1