Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2125911pxb; Mon, 12 Apr 2021 15:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAIlzWPFMQ655owMn28tPrZ/0llEY2sM5GmVw25m5ERjpzXR2KN23VTERSCdZW3ZWOOlGb X-Received: by 2002:a17:906:154f:: with SMTP id c15mr29204206ejd.142.1618265966673; Mon, 12 Apr 2021 15:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618265966; cv=none; d=google.com; s=arc-20160816; b=IP4UUKL9JIlFX1d9Z18GFdEP2l1Ck0fTXLlhbC2iZOUhudvIA5lBj1BDoq/K1TfN8h AfmD8c8f0hO5pFkRN84Q2EuesyBOaRXtiseH71DSfuoEiCcUzGp781Zf6zRlduDJKI3j TJ/v31HEjf55YZ6fHX+GDqGZLNZEfPffC/RvNSuJYYPkOZn1MrK9IhkkPpiSrsYqlewX 2inKnlxcFIBcWMQBHpHYPzDAYPFcFCGuJoP3GlnOK3cAtw3kXfPLorxnO9koBzvCc8TA H8xkzxxO60ypKigkHSSnxpebS0j9s4+YdCmWKWYdKVOrII5ek+zXjiRvoNaODPvs/heE E2BA== 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=1LzE3xRWrQ5QCfRLV/JcwAhTm5K6igH1nIik7scNrEI=; b=x0jIw1PdG6mBMmALr0LLNV28jW8fq1eb2a7psWVbDxNuYiR38LxDwYcSci06qIaERH DVmSL+YefV2lZsBNlY+7XEum7+M0LVSJ5xajuOXOr6hUDo50ql7HKQigHKuzYB5Aavik M2udY1102HCcDakYFfi1D/IVc9/XIhl4nma4kiYwm+6BvJj4DY1tiE/KBV88PD9a+1ww co+uV/gyjXgUVKZsDjHrmTNEv76GvqJ/6MJSywhutjcjMGSEQjl0C/awlOn1hm4DyTH0 /YAvqFBKggbNDs3dhFFaMWEErhYLTnuiHJBIBjPJ82BK9SO4Ka6LU1hwcz+zmFWzRa73 LHJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zSWn+Q0G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si3692893ejx.574.2021.04.12.15.19.02; Mon, 12 Apr 2021 15:19:26 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zSWn+Q0G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241860AbhDLJ1C (ORCPT + 99 others); Mon, 12 Apr 2021 05:27:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:54824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239145AbhDLJCb (ORCPT ); Mon, 12 Apr 2021 05:02:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AC6A61019; Mon, 12 Apr 2021 09:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618218079; bh=5cGtune326pDnmup4L3lsuh2PnaryyaDAp9ti+EcXnY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zSWn+Q0Gc3tpG2ppL5lkgWJlNJ5PgawEPUrjaLgyzCtZOd9U3iR/ArFzve/x2rlSp GP0xtH1irmo/YIe7SQaOW2jRZfwZIF6Z0j8chfmIganLIdwMDZA/q6RSo+//Y4108q 5G7ateuZy5w501u1mq8s1tP1xAVa8nFEijVtcNu0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aleksandr Loktionov , Arkadiusz Kubalewski , Dave Switzer , Tony Nguyen Subject: [PATCH 5.11 064/210] i40e: Fix sparse error: vsi->netdev could be null Date: Mon, 12 Apr 2021 10:39:29 +0200 Message-Id: <20210412084018.134380081@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084016.009884719@linuxfoundation.org> References: <20210412084016.009884719@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arkadiusz Kubalewski commit 6b5674fe6b9bf05394886ebcec62b2d7dae88c42 upstream. Remove vsi->netdev->name from the trace. This is redundant information. With the devinfo trace, the adapter is already identifiable. Previously following error was produced when compiling against sparse. i40e_main.c:2571 i40e_sync_vsi_filters() error: we previously assumed 'vsi->netdev' could be null (see line 2323) Fixes: b603f9dc20af ("i40e: Log info when PF is entering and leaving Allmulti mode.") Signed-off-by: Aleksandr Loktionov Signed-off-by: Arkadiusz Kubalewski Tested-by: Dave Switzer Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2560,8 +2560,7 @@ int i40e_sync_vsi_filters(struct i40e_vs i40e_stat_str(hw, aq_ret), i40e_aq_str(hw, hw->aq.asq_last_status)); } else { - dev_info(&pf->pdev->dev, "%s is %s allmulti mode.\n", - vsi->netdev->name, + dev_info(&pf->pdev->dev, "%s allmulti mode.\n", cur_multipromisc ? "entering" : "leaving"); } }