Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbbKJXnB (ORCPT ); Tue, 10 Nov 2015 18:43:01 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:58850 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbbKJXm5 (ORCPT ); Tue, 10 Nov 2015 18:42:57 -0500 From: Arnd Bergmann To: Greg Kroah-Hartman Cc: 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, Arnd Bergmann Subject: [PATCH 01/20] staging/wilc1000: add struct net_device declaration Date: Wed, 11 Nov 2015 00:42:21 +0100 Message-Id: <1447198960-2760143-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1447198960-2760143-1-git-send-email-arnd@arndb.de> References: <1447198960-2760143-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:pm15sdvvHUyIu+YLxsLWdCogD+TFfoSM99JvBf7DP2iEjjirOrf gZmvR7g/Ojq5aUs1kSOpuBuWQosrPhk5oghBg4gKKYdckBElg0tPuZMNb9FcRB1EY+YXOzw 6DBz/MuBfJaPExjW/kv645m23YJPq/RsO+xvQOLrNkQ1jU0EYXrwxXNklNujM+yHPpai2lz 1r15Tyn9tcbIfrt5sEhmw== X-UI-Out-Filterresults: notjunk:1;V01:K0:YGOaMn41AZE=:DJ57t4AbjX6CMuV/lFDWUk t+QizVrhT8ur4gOoJFERJFKZK2MnFkQuMj8IpRvivrwstOsxuYww7iOyN+qVyp7i8pC5NNHez kIDnoH1Qv+3merDxgAR9vubYLk2j1/pqku5joHONsiuIhgRVpxCjSzDOKFluhbuWR91DxN+LE 2Lp2c3GqMb9eaNNxWgSDqF7CrKIxLsWzshklm0EVmAfTCCHq2Z5RO4WRfU/tMx/mOuhfkyHeL j85kfH9S+dd+2nuQYc88bsrD+B2rLBrHCTwiP5kA2W0Y0jvXalS1YEQAZVtiVwoJ5Fok/en1y heriOKE8TaWsU+6JX/VoPsuXBhDYSlM7eMAbefx76YD0vNMG9rQTuc+HzVLMZKirHK9FChv2Y FWUmzJOyesv0KjJ9JMBwA2XXyVT/VQgv92XLvvXC9c0ssAhnd4FhSQmeXfMAFPwPLGMKXcZdI l6NyC75iqEsa7NxtzBm8JaOp504Sb3GfDeSnGGbe0rrBZXk1Av28WXyxTWCdHCMyC6xn0SUrt skYw06ho6lKfhNXyzo6Uip/RaszXrUJHc57G4Y0zigWWxeWaTOlagyFpAzd35ZuLvyTOKKN0J 0EM5o1bsj9jlvaNLAkgqipx3RKvsFnbAASLEuJWYMZsCfsEYLpcw+frKg6dezWR0HzI3ds2dk DQ19TmPNyue+iag5wt8ex2aaP49SXH9VeS+kMD67xq9LDIryqgfOHjqXdy2AUAqk9vMQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1643 Lines: 37 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. Signed-off-by: Arnd Bergmann Fixes: d5382219138d ("staging: wilc1000: host_int_init: add argument net_device") --- drivers/staging/wilc1000/host_interface.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 57e1d424afdc..29a92d690384 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -369,6 +369,7 @@ s32 host_int_scan(struct host_if_drv *hWFIDrv, u8 u8ScanSource, s32 hif_set_cfg(struct host_if_drv *hWFIDrv, struct cfg_param_val *pstrCfgParamVal); s32 hif_get_cfg(struct host_if_drv *hWFIDrv, u16 u16WID, u16 *pu16WID_Value); +struct net_device; s32 host_int_init(struct net_device *dev, struct host_if_drv **phWFIDrv); s32 host_int_deinit(struct host_if_drv *hWFIDrv); s32 host_int_add_beacon(struct host_if_drv *hWFIDrv, u32 u32Interval, -- 2.1.0.rc2 -- 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/