From patchwork Fri Oct 18 02:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 1998876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=gfyy7YBL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XV7jN2vrXz1xw2 for ; Fri, 18 Oct 2024 13:20:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9D869812B2; Fri, 18 Oct 2024 02:20:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 23Q7V2UiQYXN; Fri, 18 Oct 2024 02:20:54 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 123A481442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1729218054; bh=tQXn3R5YIIp2zsds+lbte0cLlzF19AMHPwR01qLobIo=; h=From:To:CC:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=gfyy7YBLujSAbTjpSpK94UfEmWFm7cYMhXdhAFcQJG3HQ9aSSy2d9B9ddHPxBdZUx fDH7W0NaZKV7f3MoCfEdEmNID+zHhND7oxB0jOKZP+nQg7PMuzmwE0oNJM2yP3qLWN zo3hZDAoHNM6jK+Pvwifsl5VFi13P41T+x9pwRuqW7Pj5Gslg/h++JfpVZI274lVne Q0j4eJRtbVoL+vfuzTeN5FSLEnYINjJVdfNCQCGUukbJsk7APexb9ObmDiqI3ltnJ6 9VkCMEER3BybGhkzVgLO7yafqTj9mfaVJH1vTcAORAbTQ/MKmtvZTlaZnEna2Sl532 Nf1MzBSY2S8UQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 123A481442; Fri, 18 Oct 2024 02:20:54 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 495B327DD for ; Fri, 18 Oct 2024 02:20:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1AB4560661 for ; Fri, 18 Oct 2024 02:20:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id U_czE910HG9i for ; Fri, 18 Oct 2024 02:20:51 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=45.249.212.190; helo=szxga04-in.huawei.com; envelope-from=yuehaibing@huawei.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 2810F60625 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2810F60625 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2810F60625 for ; Fri, 18 Oct 2024 02:20:50 +0000 (UTC) Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4XV7hH4DkLz20qXL; Fri, 18 Oct 2024 10:19:59 +0800 (CST) Received: from dggpemf500002.china.huawei.com (unknown [7.185.36.57]) by mail.maildlp.com (Postfix) with ESMTPS id 87E05180041; Fri, 18 Oct 2024 10:20:45 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpemf500002.china.huawei.com (7.185.36.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 18 Oct 2024 10:20:44 +0800 From: Yue Haibing To: , , , , , , , , , , , , , , , , , CC: , , , , Date: Fri, 18 Oct 2024 10:37:30 +0800 Message-ID: <20241018023734.1912166-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemf500002.china.huawei.com (7.185.36.57) X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Subject: [Intel-wired-lan] [PATCH v2 net 0/4] Fix passing 0 to ERR_PTR in intel ether drivers X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Fixing sparse error in xdp run code by introducing new variable xdp_res instead of overloading this into the skb pointer as i40e drivers done in commit 12738ac4754e ("i40e: Fix sparse errors in i40e_txrx.c") and commit ae4393dfd472 ("i40e: fix broken XDP support"). v2: Fix this as i40e drivers done instead of return NULL in xdp run code Yue Haibing (4): igc: Fix passing 0 to ERR_PTR in igc_xdp_run_prog() igb: Fix passing 0 to ERR_PTR in igb_run_xdp() ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp() ixgbevf: Fix passing 0 to ERR_PTR in ixgbevf_run_xdp() drivers/net/ethernet/intel/igb/igb_main.c | 22 +++++++----------- drivers/net/ethernet/intel/igc/igc_main.c | 20 ++++++---------- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 23 ++++++++----------- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 23 ++++++++----------- 4 files changed, 34 insertions(+), 54 deletions(-)