Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 16:41:50 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Joshua Isom <jrisom@gmail.com>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: Fine, OK, here's my initial AR9380/AR9485 support
Message-ID:  <CAJ-Vmo=9Kj41=J3m6SapXi0y6t9cF-A=XCX8AWz0qirLnrwX=Q@mail.gmail.com>
In-Reply-To: <513E6AF5.9010304@gmail.com>
References:  <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <CAJ-Vmo=uSeKK1SV3k_nRLDSHShobiyN6ky861b5NDn_U8NxukQ@mail.gmail.com> <513E6AF5.9010304@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ooh.. add the debug options to your kernel, sorry!

options ATH_DEBUG
options AH_DEBUG
options ATH_DIAGAPI

I'm sorry, I've never tested it outside of a debug build before.




Adrian


On 11 March 2013 16:38, Joshua Isom <jrisom@gmail.com> wrote:
> 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
>
> _______________________________________________
> freebsd-wireless@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=9Kj41=J3m6SapXi0y6t9cF-A=XCX8AWz0qirLnrwX=Q>