Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp111321pxb; Mon, 16 Aug 2021 00:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUUPaUziYvdsqug0rtk+XTexno2nwHqJtCr4TglFWSiwVO44xu/Qn03XiOP/yHEpIWTEDZ X-Received: by 2002:a05:6e02:194c:: with SMTP id x12mr11174671ilu.155.1629100545289; Mon, 16 Aug 2021 00:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629100545; cv=none; d=google.com; s=arc-20160816; b=LPT42DgrxmDcS+8eWFmsfLVriZ+nbhcwys72cfG6EM9DlCsJ9dlj3H9ciuCzsaUGGb 965cHSI/JANCE/hUTgU5Kjy19lSXvL8cfNPB/74jbOiv7h4xZebSh+3Hk+gmhNyqoG+1 Ls30Hj8Z+RjNgrDr84bQ5mu6lxOvBeV0AbCdAjJKQtK3LZZlJvK+G5bsuDe/x8ve6yVI yinWukNFddjkrRYtDP9R8MQlY7vk6AollxgVrqSiC9VEJSKp683s6ZjRdVUaWsKCq0qT O8oqastJ61S2EXd0332QEWgABnX1htU/GkwglV5U1jhumD+fxon+cf30Rb4YrX2rcm67 DjzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=dnW3KBy2wESIvs6MhxE9LSoN4LBhENSarlDmZsbfvEk=; b=rcFIssEGeDCDjKlgHJFc0M62orbFqT+xbUuouV7mHmzxIfiO0EhYCbQXGwSvoNZ0jR Beuhr7Hb/GGRkt3IE/LkctrQJak5OUyUeZC0354HhU1MlibDGzeAs4simAwqetLy/SZO EQrtT1GIL8lyqr/bg6q3Js7Ay6NnS0v8H5/qFu3XbO6Ggal2ohfQQ2EJd8j1HexUFl7c npQ+gS1BSM+LxtezXBpQCoX4Oz11SolED0gon7KgyXLuRG9q6V747dFmgOQwSaTUfMef GrNXpJOSJ+rIERS7FzicCK8y75xe7N4AHzZJNT7xDLYcO54T8IJi8jADeD8Ffrroea0e skGg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si11038489jan.97.2021.08.16.00.55.34; Mon, 16 Aug 2021 00:55:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234354AbhHPHzH (ORCPT + 99 others); Mon, 16 Aug 2021 03:55:07 -0400 Received: from mx21.baidu.com ([220.181.3.85]:45016 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234599AbhHPHyz (ORCPT ); Mon, 16 Aug 2021 03:54:55 -0400 Received: from BC-Mail-Ex29.internal.baidu.com (unknown [172.31.51.23]) by Forcepoint Email with ESMTPS id DA07F2016C24D9212EC2; Mon, 16 Aug 2021 15:54:12 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex29.internal.baidu.com (172.31.51.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Mon, 16 Aug 2021 15:54:12 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 16 Aug 2021 15:54:12 +0800 From: Cai Huoqing To: , , CC: , , "Cai Huoqing" Subject: [PATCH] staging: r8188eu: Remove the dependency on ipx.h Date: Mon, 16 Aug 2021 15:54:06 +0800 Message-ID: <20210816075406.938-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex22.internal.baidu.com (172.31.51.16) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit <47595e32869f> ("") indicated the ipx network layer as obsolete in Jan 2018, updated in the MAINTAINERS file now, after being exposed for 3 years to refactoring, so to remove the dependency on ipx.h Signed-off-by: Cai Huoqing --- drivers/staging/r8188eu/core/rtw_br_ext.c | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c index 63a4cabdd3a8..173679709e70 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -5,7 +5,6 @@ #include "../include/linux/if_arp.h" #include "../include/net/ip.h" -#include "../include/net/ipx.h" #include "../include/linux/atalk.h" #include "../include/linux/udp.h" #include "../include/linux/if_pppox.h" @@ -37,6 +36,29 @@ #define MAGIC_CODE_LEN 2 #define WAIT_TIME_PPPOE 5 /* waiting time for pppoe server in sec */ +#define IPX_NODE_LEN 6 +struct ipx_address { + __be32 net; + __u8 node[IPX_NODE_LEN]; + __be16 sock; +}; + +struct ipxhdr { + __be16 ipx_checksum __packed; +#define IPX_NO_CHECKSUM cpu_to_be16(0xFFFF) + __be16 ipx_pktsize __packed; + __u8 ipx_tctrl; + __u8 ipx_type; +#define IPX_TYPE_UNKNOWN 0x00 +#define IPX_TYPE_RIP 0x01 /* may also be 0 */ +#define IPX_TYPE_SAP 0x04 /* may also be 0 */ +#define IPX_TYPE_SPX 0x05 /* SPX protocol */ +#define IPX_TYPE_NCP 0x11 /* $lots for docs on this (SPIT) */ +#define IPX_TYPE_PPROP 0x14 /* complicated flood fill brdcast */ + struct ipx_address ipx_dest __packed; + struct ipx_address ipx_source __packed; +}; + /*----------------------------------------------------------------- How database records network address: 0 1 2 3 4 5 6 7 8 9 10 -- 2.25.1