Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1631515pxb; Fri, 20 Nov 2020 14:49:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw95L1s7vGF7NoFmbYhfjK3GdYKuRmblVjb8A91eARa1CoJZl01ZHlsW6HzEAP5Ma3CiXFU X-Received: by 2002:a05:6402:181a:: with SMTP id g26mr39337208edy.8.1605912594424; Fri, 20 Nov 2020 14:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605912594; cv=none; d=google.com; s=arc-20160816; b=rgeLZSCkcTqAlAi76aIrIwXo27vnQdm6ZAaQz5QZbicWDeEnVqJz82bQs1mDaz2Rsz al5nkJ4kzgMwDco/U7hFrkLAhoA0ZhGQ2N7wtnD42IW2P22xxF9HdbWmQG6f+BuNdPfS jGoQAAfpVV44yKkMV9MaTSTrMmcjzgpOuEuznau1APAJe0uFNqn/tR572LQw38lhfQhB GAIWANfnUiSfccY1WGNhrr27p9ydoBzdWy2hduoQ57v3FWiPO6lrFnPIAKPU+/OVsWZf cy0/FeDc2AwS5Zq0VQCOsO5CyC6lVby8tYLct7VqnlpF5BBT75B0mM98CV3aUHGJX6Qh h1PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=msHaTXB5HoBHUH4V2gHWsV+FHX0RxswPPxaq/2T34yw=; b=shz2OD4Km+kuKkNnOGvDYdqInN/A9oF5aBGimQ1i01cmS1SAEW2UD6GhQftHKnFzxB nOuJs1LFu5tNfOrXVBp6eXk5f/uoLRWmnTYtnJXtT0sHTKSHRQMS9ppdo3DppQR9e/Uj 2cHtyRsNOSXfbQeLULssVdCDJC4Xzma36uVNznA4qOaUJf9rUQvSjWnz0RnRz/QSnZjE l9LqsbMYrUfBiWcu7nXTy19l2uZJIsM3gnXB4fip68+EFIgemup/iX2fMtwxcNnUQIHp h0zZ4VY7KRLc/Q/csWaz0GnIR03VZ1BdwGyNZhhb2p0CuUnaaX/p6A9DO2UlZLwYfb2E LSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=COifunyR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si2517708edj.366.2020.11.20.14.49.24; Fri, 20 Nov 2020 14:49:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=default header.b=COifunyR; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728859AbgKTWs1 (ORCPT + 99 others); Fri, 20 Nov 2020 17:48:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:37852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727728AbgKTWs1 (ORCPT ); Fri, 20 Nov 2020 17:48:27 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F00732236F; Fri, 20 Nov 2020 22:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605912506; bh=xMNr71BNYsQHRN8HnEGa9yBKOceQUoklXMNC5J8nkGs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=COifunyRAOTpDmGcsGBJcHS/I+QjzNsOFSpH9B0AOXRY0mn2TVcsbM4szBcBnt1EB bnieLgERm26lcleQNGnqDaPd4smc6JR+GjF9hXokL/yQgt7UI0CLMXnH2kStF5x9UM 7ZzhRtF0+VgHrOwCaazROvwlyaZdf8m2a+X1eZ/Q= Date: Fri, 20 Nov 2020 14:48:24 -0800 From: Jakub Kicinski To: Johannes Berg Cc: davem@davemloft.net, netdev@vger.kernel.org, andrew@lunn.ch, mkubecek@suse.cz, linux-rdma@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH net-next] net: don't include ethtool.h from netdevice.h Message-ID: <20201120144824.2fc3eda0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <9b722328efd90104d0c0819f530c296213c19450.camel@sipsolutions.net> References: <20201120221328.1422925-1-kuba@kernel.org> <9b722328efd90104d0c0819f530c296213c19450.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 20 Nov 2020 23:28:28 +0100 Johannes Berg wrote: > On Fri, 2020-11-20 at 14:13 -0800, Jakub Kicinski wrote: > > linux/netdevice.h is included in very many places, touching any > > of its dependecies causes large incremental builds. > > > > Drop the linux/ethtool.h include, linux/netdevice.h just needs > > a forward declaration of struct ethtool_ops. > > > > Fix all the places which made use of this implicit include. > > > include/net/cfg80211.h | 1 + > > Sounds good to me, thanks. Will still cause all wireless drivers to > rebuild this way though. Maybe I'll see later if something can be done > about that. > > Acked-by: Johannes Berg Same for RDMA, sadly. Both need the firmware version string length. One simple way to narrow things down would be to include only the uapi version. Or we can duplicate the define, AFAIR duplicate defines are ok as long as they are identical. But not sure it's worth it, I'm happy enough with the 2x reduction in objects getting rebuilt :)