Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1094612lqa; Sun, 28 Apr 2024 19:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUoarkzuml3lOgcRru+mxaybtUGIpS5yuw/VUI13ZhoKYciNhMiSlRLo8mjHFgr/GMDfycbaawFonDMzrpUI14gfBfdEr+ssTStQhA9hw== X-Google-Smtp-Source: AGHT+IEehVGkQOtXyLGbJ6gNM+Yx9ZbZ+ZknJWFni0v2vQVBqj7BsxfJyxMduA744RDnVV3LUciv X-Received: by 2002:a05:6870:47a1:b0:238:b140:1ab with SMTP id c33-20020a05687047a100b00238b14001abmr10491846oaq.48.1714356498923; Sun, 28 Apr 2024 19:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714356498; cv=pass; d=google.com; s=arc-20160816; b=0/FdjHh4PBVUhYEY6fWaQP4S3Ad+sL4NsJb5b8NILZ9xu/zKsgYl6T484386guH9J8 jcJGMes0cT/ePpoqJz235bSRhap192rVHdJMVidGFKttitpFf9Q0/h4+wYFjK0pxGt7W Lp2aG1JnQaNA1bx9Fu7aa6rBK/ZsVUVCpQNrhfXHJXxOaZy8CmiZJQ0wakN5ywSxzLBA lZ/lG+RBlkFkmetPk2oKdYHTnvtu4EqFRLilCzdEmDs8U2ppeWIh2WEZlwbOH/6KdgCw RJcSqojSp6ZZebIFiLLTksoHmla4Wu2F2DeaKGf99HcOc0YV1WUyQ9LlaBug2i34v9rA xquw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=2cHzbQnZ8P5rfhgkkdfVldg9IegxgDky17cx65iff8A=; fh=MOttFzK8XV0CScVUKzadSD4uG8TJx64eW7N1yGJvzNA=; b=wV+ms4ZKn3PfYkeWPw5ILWTIaiRQXIJwN8DgJV9QruJQQW40AkVim1h6/0x2PK9eCi 2/+4gBc4z9qwE1v81D7ATqW4GglgENFYoAZo/HZe2Rm0W88HXF/uQ60fYKjD2/9nYwl+ 0EawSewDQmeNZjxR6opnnMOE+gc8qLcAXfJTCRdSqBA4MCnIuddT1mBss80KcZ7cZGiC gGuMOZ7oh/WYvzVWHT4M5gzih36UlD+k2EWpZICdPGH7g4SqyQnGgJ4+DQ5S+SZH4rkP 8X7HSUjIyHs/CRLowTx+mmf4qNnSIoCM8ezLzJrjIXibBaj00PUdt+H4v2Gln6ju78l8 Fp6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6955-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d18-20020aa78e52000000b006f3aa6a03ddsi8219628pfr.327.2024.04.28.19.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 19:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6955-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6955-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EF204281A47 for ; Mon, 29 Apr 2024 02:08:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3F5B63E; Mon, 29 Apr 2024 02:08:12 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 006797F for ; Mon, 29 Apr 2024 02:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714356492; cv=none; b=LIQFRwQSbKKPmp1dmA0p9rQ2xjF+9OYbXAvDWrlSzKOfx+etVkeZI0s6TcmvDtskcMRs71axUImbOG+KpRq8Ah7WStySXsCKYwHuYnEueUN5DgMTRp74iKWDgpNlrZiNFsYp3ABs0zm/kzUQFoXSU1MDoh4mMa/yFD6KcbQXFfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714356492; c=relaxed/simple; bh=2cHzbQnZ8P5rfhgkkdfVldg9IegxgDky17cx65iff8A=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=UisNAm9xOnFuluqA/SaPnohJ8oOrL/0T7VKGpxlC0qcJj83zXuRK0Suwtj7WLmTnVrH6lVNR2YCsW2DhyXVS52ilkmKLsauTdEcRm3gDP9lW7cHQIMOnfESTG62jvjSroJEcOiBumickbB1Ksh2OKONSzs7iFSB8Jv1SoXaQz3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43T285fzC2936347, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43T285fzC2936347 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2024 10:08:05 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 29 Apr 2024 10:08:05 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 29 Apr 2024 10:08:05 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Mon, 29 Apr 2024 10:08:05 +0800 From: Ping-Ke Shih To: Kalle Valo CC: "linux-wireless@vger.kernel.org" Subject: RE: [PATCH 1/2] wifi: rtl8xxxu: remove some unused includes Thread-Topic: [PATCH 1/2] wifi: rtl8xxxu: remove some unused includes Thread-Index: AQHal+TKjpgPPiYrQUiGyEHZzIn5BLF+gaLg Date: Mon, 29 Apr 2024 02:08:04 +0000 Message-ID: <76b9ba19dd4642ed98975e62bc3ebca4@realtek.com> References: <20240426141939.3881678-1-kvalo@kernel.org> In-Reply-To: <20240426141939.3881678-1-kvalo@kernel.org> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Kalle Valo wrote: > I noticed by random that rtl8xxxu includes linux/wireless.h even though i= t > doesn't need it. While investigating a bit more I found even more unused > include files: >=20 > #include > #include > #include >=20 > It looks like that the includes are just copied to every file without che= cking > if the file really needs the include. So more includes could be removed b= ut > that would need more careful analysis per each file. I can do that. My ways will be to create an empty (new) C file to examine every driver's header file can be included individually, and then try-and-e= rror to remove includes from existing C files.=20 However, this driver uses #ifdef. I will check if autoconf.h is included. >=20 > No functional changes, compile tested only. >=20 > Signed-off-by: Kalle Valo Reviewed-by: Ping-Ke Shih