From patchwork Tue Aug 23 21:56:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1090112 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7NLv453026680 for ; Tue, 23 Aug 2011 21:57:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755533Ab1HWV5B (ORCPT ); Tue, 23 Aug 2011 17:57:01 -0400 Received: from oproxy9.bluehost.com ([69.89.24.6]:37568 "HELO oproxy9.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754103Ab1HWV5B (ORCPT ); Tue, 23 Aug 2011 17:57:01 -0400 Received: (qmail 1313 invoked by uid 0); 23 Aug 2011 21:57:00 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by oproxy9.bluehost.com with SMTP; 23 Aug 2011 21:57:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:Message-Id:Subject:Cc:To:From:Date; bh=0fEbRcY/2VzqoUS2NyFmuCEXKd/T8DPMOORqkfC0Kpg=; b=e9MV8JHdtrqIqjdei1mAVQslYgcbE/TuyCtsepQBBBSiOuHo21yJFjB9dS3AyeTldpMlsGfITOJMUxGoYpP9LOvShcJBJRt3T+nOe43e1SJZM803upy9+2GUrnXEI7hu; Received: from static-50-53-38-135.bvtn.or.frontiernet.net ([50.53.38.135] helo=chimera.site) by box742.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qvyxw-00077k-8v; Tue, 23 Aug 2011 15:57:00 -0600 Date: Tue, 23 Aug 2011 14:56:59 -0700 From: Randy Dunlap To: driverdevel , linux-wireless@vger.kernel.org Cc: gregkh@suse.de, Arend van Spriel Subject: [PATCH] staging: brcmsmac, fix build for SMP disabled Message-Id: <20110823145659.a22e1860.rdunlap@xenotime.net> Organization: YPO4 X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 23 Aug 2011 21:57:04 +0000 (UTC) From: Randy Dunlap Fix build when CONFIG_SMP is not enabled. Fixes many build errors (subset listed here): drivers/staging/brcm80211/brcmsmac/ampdu.c: In function 'brcms_c_ampdu_dotxstatus': drivers/staging/brcm80211/brcmsmac/ampdu.c:833: error: implicit declaration of function 'readb' drivers/staging/brcm80211/brcmsmac/ampdu.c:833: error: implicit declaration of function 'readw' drivers/staging/brcm80211/brcmsmac/ampdu.c:833: error: implicit declaration of function 'readl' drivers/staging/brcm80211/brcmsmac/main.c: In function 'brcms_c_init': drivers/staging/brcm80211/brcmsmac/main.c:494: error: implicit declaration of function 'writeb' drivers/staging/brcm80211/brcmsmac/main.c:494: error: implicit declaration of function 'writew' drivers/staging/brcm80211/brcmsmac/main.c:494: error: implicit declaration of function 'writel' drivers/staging/brcm80211/brcmsmac/main.c:529: error: implicit declaration of function 'readb' drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c: In function 'wlc_radioreg_exit': drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c:208: error: implicit declaration of function 'readb' drivers/staging/brcm80211/brcmsmac/phy/phy_cmn.c:208: error: implicit declaration of function 'readw' drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c: In function 'wlc_lcnphy_idle_tssi_est': drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c:2080: error: implicit declaration of function 'readb' drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c: In function 'wlc_lcnphy_samp_cap': drivers/staging/brcm80211/brcmsmac/phy/phy_lcn.c:3837: error: implicit declaration of function 'writeb' vers/staging/brcm80211/brcmsmac/phy/phy_n.c: In function 'wlc_phy_init_nphy': drivers/staging/brcm80211/brcmsmac/phy/phy_n.c:14561: error: implicit declaration of function 'readb' Signed-off-by: Randy Dunlap --- drivers/staging/brcm80211/brcmsmac/types.h | 1 + 1 file changed, 1 insertion(+) -- 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 --- lnx-31-rc3.orig/drivers/staging/brcm80211/brcmsmac/types.h +++ lnx-31-rc3/drivers/staging/brcm80211/brcmsmac/types.h @@ -18,6 +18,7 @@ #define _BRCM_TYPES_H_ #include +#include /* Bus types */ #define SI_BUS 0 /* SOC Interconnect */