Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1334120lqa; Mon, 29 Apr 2024 05:58:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVObwnJcviao0z3XABB1e8Revn+wxnZRhW5qItbat2D2DbKK5PuQu6alLr5ZkuklvnYu4P85V47NGTW4XNpA0lkz8F30t1ynWJ7st6svA== X-Google-Smtp-Source: AGHT+IENjMuLHkHuFBcojklI4qCUwJ3JGXe9UDd7KB64EheGVOrL5XQcyKGltkgBZxS20+pk9olS X-Received: by 2002:a05:6a20:4386:b0:1ac:3eb4:b91a with SMTP id i6-20020a056a20438600b001ac3eb4b91amr13130930pzl.11.1714395485709; Mon, 29 Apr 2024 05:58:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714395485; cv=pass; d=google.com; s=arc-20160816; b=z9SFrYg4VjZp4hmv2HW7XWKeVU55hCfh3kzYD0KVlGiBJtnGT3aXP8Fh0nI783gzQ8 2YfhngzbibP8szQ4E88W/GaTnrDLCzMSU3ThFEQKDAfZ9cPFNnfBzvrWijahtcAACGKV J6pjigIbtx2nAraU/EbIrUZRg6/sLFiRub0CixywoAZ7PzimCIsbuIwzlJtxjibtQ3/p 16258nzf8Ha9sLGZjiOVbHsPXhUeLVT8IhbE3Gt/kg1m7GR1o4QIWbwelYY0l5E3ulAs WwwMPvUsqiOAbUbPpMYMaLz+SZRKpzzjCUXitrE7d6h1fiKXIoShII4YcKRSfewdoWWG jywA== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=pkX3wCOdJAum1C9FcTlETN2R4vV0kSBmjQlJkknJdu4=; fh=zFCB9yj6tbPtiNOgT9n/qK9LnQKfgtX1AWhCxXtoerY=; b=jdKJDrznyG0/YQ8waUXhU4+AagnHdLsNfdfWc+FVwlg3DboFD5M23ZadG16XYFe73E t7JjLHcAuplB7dLP5ThHmdEbQ4rTy05kLcTdsBeJg1Lvp5BcGm7/zBbSurRimeQZVHut u+dmpP8uFjuEr04XqtP4Rez91a5cHBBAfMTCnUiHiNyWGaIQZ0t0Ij2vlpgRJDet2tIl 5P6YWXSGMlH4CwBZpJWopK7tNrginsT8bz/x80QVMQj6FDGgX48nu7fpN/qSGo9Qrk6t 9Gsy7kge4u3KVTH6Y0CVSwsEVUgLtioltflwTlagBv17W4Pm0/xMD6z0j0hK3pU5kLmy QkKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pfWBlDWb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e8-20020a656788000000b005dc85b86649si19518363pgr.686.2024.04.29.05.58.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pfWBlDWb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 284F6B28C5E for ; Mon, 29 Apr 2024 12:24:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A470E74BF0; Mon, 29 Apr 2024 12:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pfWBlDWb" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80A83548E8 for ; Mon, 29 Apr 2024 12:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714393387; cv=none; b=jlyPUcECP66GjYIataT6GoswNRQpHrQmiPhod61Sr+uoJFe/2FM2bpiL7zdkLIVyTbwwT38r7w2/US83UZvK3Zui3L7AJgpwWXzFJF7pfNG2p9iDvAr+H5cG+mTFtg5Z2Xu6R3m/TEYzivOD7jjHyWSGagDtR3+K6crieW58bp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714393387; c=relaxed/simple; bh=NRWzX2QjlWDINijdQ9t0S3/I1bRQCVhBqIirrOAWS0U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=mhspPZ/7KFFbFdtg8m1aMvbWWX2oilLw2CiiZ6/IJ9pJl/4zzABEcZVJx2r5FvBcbF7n9+a3cI4dRM2LzwbAxhhKpKJ+k7t4vfZ5qeP4G3QPoySDE5y4h3KHmpdwHYY/p2s/VWstZItiYfxQ8LRvpRPnewx5VG6FcryOxBWLrtk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pfWBlDWb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62339C4AF17; Mon, 29 Apr 2024 12:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714393387; bh=NRWzX2QjlWDINijdQ9t0S3/I1bRQCVhBqIirrOAWS0U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=pfWBlDWbMHf80p6/sEXUcqVLLaZAQMV48lgFzcsnIxLktKPJFLZQ2LBZzH55DKDoa kVPNL/R6maUo457E71W/4eyxfG2aJi+O1Lt9CLxSSjSUasyNzCbLlhyYVt3oHFLWxQ xIqCSDXznYhJ+ZBvup4+h/wO9ltJUgm2nVHY3gokxNTjryBJTpk95dK5Ns7SibalxX +jXuB9PZ8De+v7toNxDzhT1G/o7PpFqMED+JReaY+wEH7Lx0/UCMjq2FN4zzEGzx/V cKALQ7/CxV+IZseqmjYAM71Si49SFN8xzFPqInsGYTQkRVYyBNNbOZe1GfME81j5Su DTCthHyIvxyFA== From: Kalle Valo To: Ping-Ke Shih Cc: "linux-wireless@vger.kernel.org" Subject: Re: [PATCH 1/2] wifi: rtl8xxxu: remove some unused includes References: <20240426141939.3881678-1-kvalo@kernel.org> <2a9fdafb5b5843c58cb080f8933b1e0a@realtek.com> Date: Mon, 29 Apr 2024 15:23:04 +0300 In-Reply-To: <2a9fdafb5b5843c58cb080f8933b1e0a@realtek.com> (Ping-Ke Shih's message of "Mon, 29 Apr 2024 02:54:55 +0000") Message-ID: <87frv4fjdj.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Ping-Ke Shih writes: > Ping-Ke Shih wrote: >> Kalle Valo wrote: >> > I noticed by random that rtl8xxxu includes linux/wireless.h even though it >> > doesn't need it. While investigating a bit more I found even more unused >> > include files: >> > >> > #include >> > #include >> > #include >> > >> > It looks like that the includes are just copied to every file without checking >> > if the file really needs the include. So more includes could be removed but >> > 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-error >> to remove includes from existing C files. > > I made a patch [1] followed above ways based on these two patches. Excellent, thanks Ping. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches