Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091836rwb; Mon, 15 Aug 2022 17:55:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dqktJTVA7UNC7zUVHlRS9abJhSmF21teWVtexrqOPznjpXqX13ke7tUp7DyF3LfjRUG6K X-Received: by 2002:a17:907:7355:b0:730:65bc:e761 with SMTP id dq21-20020a170907735500b0073065bce761mr11764602ejc.145.1660611349824; Mon, 15 Aug 2022 17:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611349; cv=none; d=google.com; s=arc-20160816; b=E2SCp2RdJWhdUr2MMKWI9lgA0UFL2T8xDZVVJoo8TY4DUU8AROcj0C1ZYEfdz+dhFX fzXmnQolL6ZgEqxJ9S5TC68j8hGk6jl11YEnZZjVoQEkcSkmh+z3JNJFo4xjPS1mGeKh ygXulrvPqoCvW247OhdUugECweJaJGWDsENg56nS2J1jzixaTNsF3oOcpPfQCr3P0i+v Lzi5RBn/9jevzAD1kC9JTQkZ0lG1P+vrlNccb036q4ELflVo2tHBJI3+JDU1DW1oFC1p cQKbhBCtVGyB0ihKPa5ugL2yaEWRzkxta3ux/TRbrLI2eDIxiLzQ10Oewj2zkIgTXOk9 97HA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=skeG7JacPKQnzQoYhScWqOtZhICRo7va0N+ca1AoaDo=; b=HkUqUd5MfY3Ql5KH8P7NFzGQfW7vc3DZSit5n2rBrrmMJlrAcqauBhH5RB5t3Ft2w9 IoEPoLAUzWgMy7uyjq4jyqTvYVTx5NNpt4hGTkkLa36eBH//rhwLbkZmlG+UJz7/6+6+ j6pBw4astchWtwhypqe7LExpL7Jz5iHKhXJ4+nn21p9lFP4LMnrHce0pFJhfCuVkxw2+ GMzqQId9zyKxFphUL3nWSlMGtjKcYfRaRUWIUUjLUkriAB2AyEENw8J6OjuGVASh4xZh oqtU3us5x81ghYbzc5ZVmaUPl15jhuXCRO4toadBT9ihqJEpNgW/Sbijs7XJ3+bI56gc bXRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eDJZIvhk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr7-20020a1709073f8700b00718d0985aa0si8498055ejc.247.2022.08.15.17.55.24; Mon, 15 Aug 2022 17:55:49 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eDJZIvhk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347790AbiHPAfJ (ORCPT + 99 others); Mon, 15 Aug 2022 20:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354298AbiHPAbf (ORCPT ); Mon, 15 Aug 2022 20:31:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D921D31ED3; Mon, 15 Aug 2022 13:36:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 26CAB611FC; Mon, 15 Aug 2022 20:36:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14268C433C1; Mon, 15 Aug 2022 20:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595795; bh=gMt0TTa4Z8LWwPz7TuWcnuLI0xUXnFXP9Jz18Ps5+Jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eDJZIvhkLygLNLLFTgETO271nLId/hG0HS98rLCxJGbMVZKHpn34LZd3xxPGAvNC4 sB6pDHcj8Th1Peu2ZOgIOuY5dh5ZgQ7WJRYAoc91/cZwcCGK9HCLCwbKVPevwZKFXu lnuOkWmMKZd92n/5vt/yRyU8Gww+6CYKzdrJcU9k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yu Kuai , Josef Bacik , Jens Axboe , Sasha Levin Subject: [PATCH 5.19 0878/1157] nbd: add missing definition of pr_fmt Date: Mon, 15 Aug 2022 20:03:54 +0200 Message-Id: <20220815180514.562444108@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 [ Upstream commit bc9da6dd0630efd81b5c72ff6fa0169aa029a73f ] 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. This patch also remove existing "nbd:" inside pr_err(). Fixes: 1243172d5894 ("nbd: use pr_err to output error message") Signed-off-by: Yu Kuai Reviewed-by: Josef Bacik Link: https://lore.kernel.org/r/20220723082427.3890655-1-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/block/nbd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 07f3c139a3d7..20e9c53eec53 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -11,6 +11,8 @@ * (part of code stolen from loop.c) */ +#define pr_fmt(fmt) "nbd: " fmt + #include #include @@ -1951,7 +1953,7 @@ static int nbd_genl_connect(struct sk_buff *skb, struct genl_info *info) test_bit(NBD_DISCONNECT_REQUESTED, &nbd->flags)) || !refcount_inc_not_zero(&nbd->refs)) { mutex_unlock(&nbd_index_mutex); - pr_err("nbd: device at index %d is going down\n", + pr_err("device at index %d is going down\n", index); return -EINVAL; } @@ -1962,7 +1964,7 @@ static int nbd_genl_connect(struct sk_buff *skb, struct genl_info *info) if (!nbd) { nbd = nbd_dev_add(index, 2); if (IS_ERR(nbd)) { - pr_err("nbd: failed to add new device\n"); + pr_err("failed to add new device\n"); return PTR_ERR(nbd); } } -- 2.35.1