From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4662BC433F5 for ; Tue, 10 May 2022 02:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232828AbiEJC1T (ORCPT ); Mon, 9 May 2022 22:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbiEJC1S (ORCPT ); Mon, 9 May 2022 22:27:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C05AD17EC20 for ; Mon, 9 May 2022 19:23:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9F191615E5 for ; Tue, 10 May 2022 02:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD81FC385B8; Tue, 10 May 2022 02:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652149400; bh=/lCXdcCqJvf5sXvHuy+hcTdU4qmOBSZXdeDDWgHD3vE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rtnsW88D2f40SQERR9JPtbaqXFOcIzLxUBEyTIxJmRoKyFYnGSXVvjXfGxndgvEQj sO3yT7c5RksU8Cenujdwwgixj1fdGvhOlzwVbH23iAEUsnRzt01MaHhZNdLviy2y42 kOSgHzGSwVx8o0AXmQkrL6pvXgY1gs4puiOXrvWvrSjwA7Ps1BnahHdgJ9Jmv4UY9d 5O4++bKXv+6dOrC7I0/53pce0zvegdhNYsVNGP9XSsqxPix9bnLZB1E6qdZLwwNo34 J73CgMNRGDoqey9BNb06EipvXjhZaD3QSU6A8ZMJ29RIsS22L/KE2bNxPt0zTOXLb2 DTLOC+cG+X6bg== Date: Mon, 9 May 2022 19:23:19 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: kernel test robot , Eric Dumazet , "David S . Miller" , Paolo Abeni , kbuild-all@lists.01.org, netdev Subject: Re: [PATCH net-next 3/4] net: warn if transport header was not set Message-ID: <20220509192319.1fc6729a@kernel.org> In-Reply-To: References: <20220509190851.1107955-4-eric.dumazet@gmail.com> <202205100723.9Wqso3nI-lkp@intel.com> <20220509183024.0edd698f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 9 May 2022 19:11:15 -0700 Eric Dumazet wrote: > On Mon, May 9, 2022 at 6:30 PM Jakub Kicinski wrote: > > Yeah the order of inclusion is skbuff -> netdevice, as you probably > > figured out by yourself. We may want to pull back the code move for > > the print helpers. Unless you have cycles to untangle that :S > > I added at the beginning of the new file : > > #include > struct net_device; > > Hopefully this is enough. Maybe toss in linux/kern_levels.h for a good measure? netdev_WARN() uses netdev_name() but it's a macro, so the users of that will need to include netdevice.h, or we could leave netdev_WARN() in netdevice.h. Doesn't matter in practice.