Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1164550pxb; Tue, 17 Aug 2021 05:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEO4DDkcMakIq+qGboDdWJ404pzPk1tOklj3z+/Wqjf6NFcCcSLicM4QhwRbUonSezPEzo X-Received: by 2002:a17:907:1199:: with SMTP id uz25mr3747967ejb.448.1629203408610; Tue, 17 Aug 2021 05:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629203408; cv=none; d=google.com; s=arc-20160816; b=LoB74xQqaJFEGVMOavWHKMVYznx2hwgEUQoUgCsUlp60Qli3Dv00uPAIiDjJeGVQ8a IBy9wSsArm80NX3xnW2PAJ2V7sgjPLi5Z2zu4ms7Xni10zOwFIQYds8jB8An2QQUtQkU 1bVsU8W97bSwX9KH6V/jwG+FTuEy2mN0mR5qgPiswRXXM3JgtK5j5eOn3U9ikmgss8e8 SH90XvbvJWRMfiLRsZBBoQaBtlo8YTU/SO2Ua9CR/YkT6TO/jXjiQWrMQTMtBo8twhvV kYve27nrRwA8cmAAwMC297+DX1JBRKUxZCFT/sCco+GFcSc2dlPeqaYc7J2N02KtVSRb ks4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ehYfeCKaZsQiuL6rOGdqMuEfjMSHQFgZSBwxefedO90=; b=T1ojp2wzK8AV/4PhabNVmqHnYAFmidGFir46L4VlAqjHd6CV88uDScEbtMQINMihGD uIqRmCYkufq5YRXQfiVr+yFhQNNhp6yOE6/ep61xX0bVkZLLR2BLH7ok1m91GjezrSTz Y/g6hVmaxJ/ThgQ9FX79VS9JRP2ISCzExOdluvFIZoOmC1qbYiAmiYbLFklAidvH2AZy c7n0Jkg+E4TlSjYNe1ICqUVzlrRg19WDmlcPlqw1MTisGKhml+Kd37Y8Zy9v6FCrFVBn n9NRqYSuScZifyydH5djgneZp5sT+wGinPeXYSPsawFDf8TIDkkVn+FmK5gZ7PNkIOxW JP0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uOi0pVyK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si1855275ejl.708.2021.08.17.05.29.42; Tue, 17 Aug 2021 05:30:08 -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=@gmail.com header.s=20161025 header.b=uOi0pVyK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237321AbhHQM0Q (ORCPT + 99 others); Tue, 17 Aug 2021 08:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239755AbhHQM0O (ORCPT ); Tue, 17 Aug 2021 08:26:14 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02166C0613CF for ; Tue, 17 Aug 2021 05:25:41 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id gt38so17089133ejc.13 for ; Tue, 17 Aug 2021 05:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ehYfeCKaZsQiuL6rOGdqMuEfjMSHQFgZSBwxefedO90=; b=uOi0pVyKP8I+9XLD80J6lRFU/URewMGwoILyautsas/7KScjvsQ/U24ZZeS/IZe6mE bB+xh+CzSBYsE9jtPcONi6dhkOwV52vljKiPZtWrdNkv7SqSMP1FVHnR8eRMwDJLCLGJ p/v54ufwgiOe49rYEHXbp5bS5C6PdLTqUvMiCgT2jbZcwrZlMnR9cWTziTlG/Xk7VkfR IlsgeO0GJNYgK/pR3/SfGmAwYwJ+0lRGvH5ikwVpf0+5IhT1eZp86KxZYEnIDMv46UvU WfMz8DRRKfwdPCt0LsyOqWLjT4EgLnxO42HuP/WAjOJpw9dy5rQGQYdx5e7dxnUlxt2Q 9ubQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ehYfeCKaZsQiuL6rOGdqMuEfjMSHQFgZSBwxefedO90=; b=Wl8ae5lNI0g0dIEHyW5yTpO9KTLe9d18Udy+8vFLEzSXqqFgzPDUfb36CwXt5EC5iC GbRJvmisVqlGornxPm9wi5lKbOaE2IG5CRVepI3wti/nuIrny7cVaUtlTjrQWEKPnnNF I2GKTbVUJ3cr5Ul5jB1FowlqB/ujrbqTSP1aF+YabHlip0PXFYrDprEGKWuFFhGURgCV oaa02LHMrKRLMDaWF8LM8kmRdbKWoNhQdLJMNgT48hjhaUECL1JSNqcbpU78B7hmq0CH XsXSC6Wd5Z5YDIFozJVMaLMWNf8gxXo/yjdd0DzWcMBuD+Ug8n5UvxY66otp+IiYUute c8XA== X-Gm-Message-State: AOAM532gMsBtuDLIUDVkM6Q0m4LkJAzOv9e7Mr7EFcTFCFbtoqEbFCQT 4DI9uYHuArvIkZsbXd7TqEYm56QDQDg= X-Received: by 2002:a17:906:6d11:: with SMTP id m17mr3719942ejr.325.1629203139609; Tue, 17 Aug 2021 05:25:39 -0700 (PDT) Received: from ?IPv6:2a02:8108:96c0:3b88::687e? ([2a02:8108:96c0:3b88::687e]) by smtp.gmail.com with ESMTPSA id q18sm702041ejc.84.2021.08.17.05.25.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Aug 2021 05:25:39 -0700 (PDT) Subject: Re: [PATCH] staging: r8188eu: Remove LINUX_VERSION_CODE check To: Cai Huoqing , Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, martin@kaiser.cx, insafonov@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210817081204.2232-1-caihuoqing@baidu.com> From: Michael Straube Message-ID: <20992337-fac8-64c8-887f-ee4cd79bf391@gmail.com> Date: Tue, 17 Aug 2021 14:24:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210817081204.2232-1-caihuoqing@baidu.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/17/21 10:12 AM, Cai Huoqing wrote: > no need to check linux version, depending on the latest version > > Signed-off-by: Cai Huoqing > --- > drivers/staging/r8188eu/core/rtw_mlme.c | 5 ---- > drivers/staging/r8188eu/os_dep/os_intfs.c | 26 ++------------------ > drivers/staging/r8188eu/os_dep/rtw_android.c | 6 ----- > drivers/staging/r8188eu/os_dep/xmit_linux.c | 6 ----- > 4 files changed, 2 insertions(+), 41 deletions(-) > > diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c > index 5088b555f55d..ef9d5ad17632 100644 > --- a/drivers/staging/r8188eu/core/rtw_mlme.c > +++ b/drivers/staging/r8188eu/core/rtw_mlme.c > @@ -3,7 +3,6 @@ > > #define _RTW_MLME_C_ > > -#include > #include "../include/osdep_service.h" > #include "../include/drv_types.h" > #include "../include/recv_osdep.h" > @@ -1499,11 +1498,7 @@ void rtw_dynamic_check_timer_handlder(struct adapter *adapter) > Hi Cai, the LINUX_VERSION_CODE checks already have been removed in commit 027ed956b526 ("staging: r8188eu: remove kernel version depended code paths") But I forgot to remove the includes, nicely spotted. You can send a patch that removes them. :) Thanks, Michael