Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbbKIIvV (ORCPT ); Mon, 9 Nov 2015 03:51:21 -0500 Received: from mail-ig0-f180.google.com ([209.85.213.180]:36093 "EHLO mail-ig0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbbKIIvU (ORCPT ); Mon, 9 Nov 2015 03:51:20 -0500 MIME-Version: 1.0 In-Reply-To: <20151109081842.GR18797@mwanda> References: <1447018310-4524-1-git-send-email-punitvara@gmail.com> <20151108215953.GO18797@mwanda> <563FFEEB.1090307@atmel.com> <56405328.4040004@atmel.com> <20151109081842.GR18797@mwanda> Date: Mon, 9 Nov 2015 14:21:19 +0530 Message-ID: Subject: Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq From: punit vara To: Dan Carpenter Cc: glen lee , devel@driverdev.osuosl.org, chris.park@atmel.com, Austin Shin , Greg KH , linux-wireless@vger.kernel.org, johnny.kim@atmel.com, linux-kernel@vger.kernel.org, tony.cho@atmel.com, leo.kim@atmel.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 39 On Mon, Nov 9, 2015 at 1:48 PM, Dan Carpenter wrote: > On Mon, Nov 09, 2015 at 05:02:48PM +0900, glen lee wrote: >> Hi Punit Vara, >> >> I cannot find build errors on my build machines. >> >> According the log which you have posted before says *wilc is undeclared in the function init_wilc_driver, >> which means WILC_SPI is selected because one of SPI or SDIO should be chosen at the moment. >> Hence, struct wilc *wilc should be compiled together. >> It looks like wilc1000 is compiled without SPI or SDIO. >> >> Of course, there are many cases that I don't know, so you could let me know the wilc1000 build configuration? >> >> static int __init init_wilc_driver(void) >> { >> #ifdef WILC_SPI > > This should be #ifndef WILC_SDIO > > >> struct wilc *wilc; >> #endif > > But the large question remains of why do we have this variable here any > way? > > regards, > dan carpenter > I do not know why it is there .that is why I did not touch it first my proposed patch was like #if (defined WILC_SPI) || (!defined WILC_SDIO) struct wilc *wilc; #endif -- 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/