Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258AbbKJXxP (ORCPT ); Tue, 10 Nov 2015 18:53:15 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:62479 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751798AbbKJXxO (ORCPT ); Tue, 10 Nov 2015 18:53:14 -0500 From: Arnd Bergmann To: Joe Perches Cc: Greg Kroah-Hartman , Johnny Kim , Austin Shin , Chris Park , Tony Cho , Glen Lee , Leo Kim , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/20] staging/wilc1000: add struct net_device declaration Date: Wed, 11 Nov 2015 00:53:01 +0100 Message-ID: <15534132.UNG42q60hp@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1447199222.2701.109.camel@perches.com> References: <1447198960-2760143-1-git-send-email-arnd@arndb.de> <1447198960-2760143-2-git-send-email-arnd@arndb.de> <1447199222.2701.109.camel@perches.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:R9H7PKQhvPXxgE5lo/KqDcryib2XDCsDIVx0ejSdHlelkXJ3Zii 92wLy9yX/Pqzt9Wfxz4qAJMXi9r+TQkQH1O3MSXH/m+UPHlpRH57VQ3/d6rt5iIg2iAZG89 WwCVitQv8fVb/tidT4bisqXRZD69yhBDJJGVJbgkWlhsaBOAl/uHNa1yzCnJAUnuD3pX1CX T5qu9EvrJOZuOb0GUcstg== X-UI-Out-Filterresults: notjunk:1;V01:K0:6zpaZ/mjxN4=:jWxMx7If7BqHi12KGZsUdN 6mmhUVSdMlATgLwJJqel2CLCyGPGwx6B4U0VWT+DHR0Rny40Tn7RlkNiXKbrTcAtYygJbHO8w ZPfFZcwmmyYkQLSRN3XO6VngMKqhFx2raCq5m42EUZFSL12kayPzI96j5+EXEbd3nsCiblgk9 2jxAIwM3FXgKeYNCz+YXWq8Iz2qhn6ULtI734tdQCh5Atkpx5bu4Jzlmzkl8oMs36bTNRB37+ 38tPYqeky5gLfnH5fylnecc7Olr2RD6hhSlGYlXIShINnsuH+IEn6/AL7pVYY78udYu8Li0pA Gn0EUqbReEgHF5IaWR6gFThRdBrz8eA+bTNiji42FAppsgpOMn0v+oUa8Pzo997DWWQ4M49m0 MWO/FijsNO6/hi5EB77TD12p+QQkCUOHM588wBKOfhGMZv+TJ/k7lN95f5cu6XSgkDi5SbTbK Zf5ynI8kgP5kdXNXSQnd//Kxic3g8veOl2z+9Klh1yjGxC8SiCVqC/kP4hEqyP262C2PKqG8L i6UiGsjwo79JUDrSvN1m8+pAXyhQQb8pTTF0OVh0I+1lDfKyLP1FYZfMHoUikbkuRk5zwbq5K CeKhSziRnBLlt2P761M8Kp/khd9inFGkFtWhQ6ejC9s4EEw+GOcF7EFy0slKCDKnVH1LUGLMw Ewn49sAocT0h73T5LY7TVxXBPFlAKNl2MqUhDRdOePh8G6gYt9yuo/J+efBkq7MY+m9v/ObBX TucoOm/KqK5YbFsZ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 26 On Tuesday 10 November 2015 15:47:02 Joe Perches wrote: > On Wed, 2015-11-11 at 00:42 +0100, Arnd Bergmann wrote: > > A recent cleanup added a reference to struct net_device, but > > that structure is not always visible in the context of the > > declaration, so we may get a compile-time error: > > > > In file included from wilc1000/host_interface.c:5:0: > > wilc1000/host_interface.h:705:46: warning: 'struct net_device' declared inside parameter list > > s32 wilc_init(struct net_device *dev, struct host_if_drv **phWFIDrv); > > > > This adds a forward-declaration for the structure name to avoid > > that error. > > why not #include ? > The headers in this driver are still a bit fragile, better not add in too many other headers, especially before the rest of my series is applied. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/