From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:24475 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201Ab1CGIRT (ORCPT ); Mon, 7 Mar 2011 03:17:19 -0500 Date: Mon, 7 Mar 2011 09:12:45 +0100 From: Stanislaw Gruszka To: Daniel Halperin , Peter Zijlstra , Ingo Molnar Cc: "Guy, Wey-Yi" , Intel Linux Wireless , "linux-wireless@vger.kernel.org" , linux-kernel@vger.kernel.org Subject: Undefined TASK_INTERRUPTIBLE (Was: Re: [PATCH 1/3] iwlwifi: move rx handlers code to iwl-rx.c) Message-ID: <20110307081241.GA2216@redhat.com> References: <1299257511-5241-1-git-send-email-sgruszka@redhat.com> <1299447258.5082.164.camel@wwguy-huron> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, Mar 06, 2011 at 03:47:55PM -0800, Daniel Halperin wrote: > This fixes the error for me. Code compile on 64 bits, but fail on 32, hmm ... > Dan > > index 7dc2d39..e3ba4d5 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-rx.c > +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c > @@ -30,6 +30,7 @@ > #include > #include > #include > +#include > #include > #include "iwl-eeprom.h" > #include "iwl-dev.h" This fixes the problem, I will post signed-off patch to John in a second. But perhaps we need a more generic fix in wait.h for the future. Maybe we should decouple definitions of TASK_INTERRUPTIBLE and friends from sched.h into separate header and include that header in wait.h as well? Stanislaw > On Sun, Mar 6, 2011 at 1:34 PM, Guy, Wey-Yi wrote: > > Hi Stanislaw, > > > > On Fri, 2011-03-04 at 08:51 -0800, Stanislaw Gruszka wrote: > >> Put generic rx_handlers (except iwlagn_rx_reply_compressed_ba) to > >> iwl-rx.c . Make functions static and change prefix from iwlagn_ to > >> iwl_ . Beautify iwl_setup_rx_handlers and do some other minor coding > >> style changes. > >> > >> Signed-off-by: Stanislaw Gruszka > >> --- > > this patch break the compiling > > > > drivers/net/wireless/iwlwifi/iwl-rx.c:778:17: error: undefined > > identifier 'TASK_INTERRUPTIBLE' > >  CC [M]  drivers/net/wireless/iwlwifi/iwl-rx.o > > drivers/net/wireless/iwlwifi/iwl-rx.c: In function > > ‘iwl_rx_card_state_notif’: > > drivers/net/wireless/iwlwifi/iwl-rx.c:778: error: ‘TASK_INTERRUPTIBLE’ > > undeclared (first use in this function) > > drivers/net/wireless/iwlwifi/iwl-rx.c:778: error: (Each undeclared > > identifier is reported only once > > drivers/net/wireless/iwlwifi/iwl-rx.c:778: error: for each function it > > appears in.) > > make[1]: *** [drivers/net/wireless/iwlwifi/iwl-rx.o] Error 1 > > make: *** [_module_drivers/net/wireless/iwlwifi] Error 2 > > > > > > Thanks > > Wey > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at  http://vger.kernel.org/majordomo-info.html > >