From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 11 23:38:38 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12192251 for ; Mon, 11 Mar 2013 23:38:38 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id C2825A05 for ; Mon, 11 Mar 2013 23:38:37 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k14so5545572iea.41 for ; Mon, 11 Mar 2013 16:38:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gV7oK2vQzzkRRZjJd+O5/JUlI5QWux5CuyOHeZiOwFI=; b=gcu1qg27H4dJSd45Oca58Kr9I3SGEBL8EIv0M6Dv8V6/iAmfUlz4463ji/VvkKaaFo i1nORXoyjLzvTGzVa4yY3HwR+iyEDL7/m4TiC67pG/uvPEamipjME/6z2RC8nnvIJX34 1FExatzo/BCrVRtPassXKdB4hfs0BYBnxrgUQaJyrT4xPEMflbE5xaxRmFYhx+L79UUq eUKAbPtBWJjJn59Xvxj9ehz1DJ7LKH1pu6VOSVYCWRYZgYZ/IfspSWRTcXRyogGm2PKx HEaF60FCMNQlO262RKovqwaGlCq0jx0YNrY8xAJKcNxAWmxSTIfqnAr4n+bVHUrMSgya EKlQ== X-Received: by 10.42.58.67 with SMTP id g3mr10505224ich.56.1363045117518; Mon, 11 Mar 2013 16:38:37 -0700 (PDT) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id ew5sm17183371igc.2.2013.03.11.16.38.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 16:38:36 -0700 (PDT) Message-ID: <513E6AF5.9010304@gmail.com> Date: Mon, 11 Mar 2013 18:38:29 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: "freebsd-wireless@freebsd.org" Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 23:38:38 -0000 Here's me retrying everything. I also tried running make with -DAH_DEBUG and -DAH_DEBUG_ALQ, but I also got errors messages that made me think the variables didn't propagate to the source files. > [jri:~/ATH/head] root# uname -a > FreeBSD jri.homeunix.com 9.1-STABLE FreeBSD 9.1-STABLE #1: Thu Jan 24 22:19:24 UTC 2013 root@buildjail:/usr/obj/usr/src/sys/GENERIC amd64 > [jri:~/ATH/head] root# svn info > Path: . > Working Copy Root Path: /root/ATH/head > URL: https://svn0.us-east.freebsd.org/base/head > Repository Root: https://svn0.us-east.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 248174 > Node Kind: directory > Schedule: normal > Last Changed Author: tuexen > Last Changed Rev: 248172 > Last Changed Date: 2013-03-11 12:43:55 -0500 (Mon, 11 Mar 2013) > > [jri:~/ATH/head] root# svn diff > Index: sys/modules/ath/Makefile > =================================================================== > --- sys/modules/ath/Makefile (revision 248174) > +++ sys/modules/ath/Makefile (working copy) > @@ -124,13 +124,13 @@ > SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c > > # + AR9300 HAL > -# .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 > -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > -#SRCS+= ar9300_power.c ar9300_timer.c > + .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar9003 > +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > +SRCS+= ar9300_power.c ar9300_timer.c > > # NB: rate control is bound to the driver by symbol names so only pick one > .if ${ATH_RATE} == "sample" > [jri:~/ATH/qcamain_open_hal_public] root# git status > # On branch local/freebsd > nothing to commit, working directory clean > [jri:~/ATH/qcamain_open_hal_public] root# cat .git/config > [core] > repositoryformatversion = 0 > filemode = true > bare = false > logallrefupdates = true > [remote "origin"] > url = https://github.com/erikarn/qcamain_open_hal_public.git > fetch = +refs/heads/*:refs/remotes/origin/* > [branch "master"] > remote = origin > merge = refs/heads/master > [branch "local/freebsd"] > remote = origin > merge = refs/heads/local/freebsd > [jri:ath/ath_hal/ar9003] root# pwd > /root/ATH/head/sys/dev/ath/ath_hal/ar9003 > [jri:ath/ath_hal/ar9003] root# ln -s /root/ATH/qcamain_open_hal_public/hal/ar9300/* . > ln: ./ar9300_devid.h: File exists > [jri:~/ATH/head] root# ls /usr/obj > [jri:~/ATH/head] root# make -j 3 buildworld > ../buildworld.txt > [jri:~/ATH/head] root# make -j 6 -k buildkernel > ../buildkernel.txt > [jri:~/ATH/head] root# make -DNO_CLEAN -k buildkernel > ../buildkernel-next.txt > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83:27: error: unused variable 'ichan' [-Werror,-Wunused-variable] > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > ^ > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: use '&' for a bitwise operation > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ^~ > & > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_misc.c:853:38: note: remove constant to silence this warning > if ((ahp->ah_enterprise_mode && AR_ENT_OTP_MIN_PKT_SIZE_DISABLE) && > ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 error generated. > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:107:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:108:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -472 to 40 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2437, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:109:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -465 to 47 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2472, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:122:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:123:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -463 to 49 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2484, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:128:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2412, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:129:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -472 to 40 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2437, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:130:3: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -465 to 47 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2472, 1) > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:203:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -476 to 36 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2417, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:204:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -468 to 44 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2457, 1), > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:205:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -467 to 45 [-Werror,-Wconstant-conversion] > FREQ2FBIN(2462, 1)}, > ^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > In file included from /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:21: > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300template_generic.h:207:4: error: implicit conversion from 'int' to 'u_int8_t' (aka 'unsigned char') > changes value from -477 to 35 [-Werror,-Wconstant-conversion] > {FREQ2FBIN(2412, 1), > ~^~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300eep.h:136:65: note: expanded from macro 'FREQ2FBIN' > (((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5)) > ~~~~~~~~~~~~~^~~ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > 20 errors generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849:27: error: unused variable 'ichan' [-Werror,-Wunused-variable] > HAL_CHANNEL_INTERNAL *ichan = ath_hal_checkchannel(ah, chan); > ^ > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809:52: error: variable 'modes_txgaintable_index' is uninitialized when used here > [-Werror,-Wuninitialized] > REG_WRITE_ARRAY(&ahp->ah_ini_modes_txgain, modes_txgaintable_index, > ^~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:904:85: note: expanded from macro 'REG_WRITE_ARRAY' > OS_REG_WRITE(ah, INI_RA((iniarray), (r), 0), INI_RA((iniarray), r, (column)));\ > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300.h:323:99: note: expanded from macro 'INI_RA' > #define INI_RA(iniarray, row, column) (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)]) > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ah_osdep.h:127:49: note: expanded from macro 'OS_REG_WRITE' > (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val)) > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609:47: note: initialize the variable 'modes_txgaintable_index' to silence this warning > u_int modes_index, modes_txgaintable_index, freq_index; > ^ > = 0 > 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63:15: error: cast to 'volatile u_int32_t *' (aka 'volatile unsigned int *') from smaller > integer type 'unsigned int' [-Werror,-Wint-to-pointer-cast] > address = (volatile u_int32_t *)(AR9340_SOC_GPIO_FUN0 + (out_func*4)); > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:159:25: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is > always true [-Wtautological-constant-out-of-range-compare] > if (hal_signal_type < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:271:23: warning: comparison of constant 20 with expression of type 'HAL_GPIO_MUX_TYPE' is > always true [-Wtautological-constant-out-of-range-compare] > if (halSignalType < ARRAY_LENGTH(mux_signal_conversion_table)) > ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 2 warnings and 1 error generated. > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: error: 'AH_DEBUG' is not defined, evaluates to 0 [-Werror,-Wundef] > #if AH_DEBUG || AH_PRINT_FILTER > ^ > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: error: 'AH_PRINT_FILTER' is not defined, evaluates to 0 [-Werror,-Wundef] > #if AH_DEBUG || AH_PRINT_FILTER > ^ > 2 errors generated. > objcopy: 'if_ath.ko.debug': No such file > 1 error > 1 error > 1 error > 1 error > 1 error > [jri:sys/modules/ath] root# pwd > /root/ATH/head/sys/modules/ath > [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k -j 8 > /dev/null > 6 errors > [jri:sys/modules/ath] root# make -DAH_DEBUG -DAH_DEBUG_ALQ -k > Warning: Object directory not changed from original /root/ATH/head/sys/modules/ath > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c: In function 'ar9300_set_channel': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_radio.c:83: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_radio.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c: In function 'ar9300_eeprom_set_power_per_rate_table': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_eeprom.c:2297: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_eeprom.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c: In function 'ar9300_populate_paprd_single_table': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_paprd.c:1849: warning: unused variable 'ichan' [-Wunused-variable] > *** [ar9300_paprd.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c: In function 'ar9300_reset': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2809: warning: 'modes_txgaintable_index' is used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:2609: note: 'modes_txgaintable_index' was declared here > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: warning: 'cal_done' may be used uninitialized in this function > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_reset.c:3252: note: 'cal_done' was declared here > *** [ar9300_reset.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c > cc1: warnings being treated as errors > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c: In function 'ar9340_soc_gpio_cfg_output_mux': > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_gpio.c:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] > *** [ar9300_gpio.o] Error code 1 (continuing) > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/root/ATH/head/sys/modules/ath/../../dev/ath -I/root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:5: error: "AH_DEBUG" is not defined > /root/ATH/head/sys/modules/ath/../../dev/ath/ath_hal/ar9003/ar9300_power.c:650:17: error: "AH_PRINT_FILTER" is not defined > *** [ar9300_power.o] Error code 1 (continuing) > `all' not remade because of errors. > 1 error