2014-05-19 16:31:17

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

Building with the attached random configuration file,

In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
from drivers/net/wireless/ath/ath9k/hw.h:27,
from drivers/net/wireless/ath/ath9k/dfs.c:18:
drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
has no member named ‘debug’
pe.ts - sc->debug.stats.dfs_stats.last_ts);
^
drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
macro ‘ath_dbg’
ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
^
drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
has no member named ‘debug’
sc->debug.stats.dfs_stats.last_ts = pe.ts;
^
make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1


Attachments:
randconfig-1400497355.txt (102.61 kB)

2014-05-21 23:31:57

by Julian Calaby

[permalink] [raw]
Subject: Re: [ath9k-devel] randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

Hi Rajkumar,

On Thu, May 22, 2014 at 12:38 AM, Rajkumar Manoharan
<[email protected]> wrote:
> On Wed, May 21, 2014 at 10:12:26PM +1000, Julian Calaby wrote:
>> Hi Rajkumar,
>>
>> On Wed, May 21, 2014 at 9:01 PM, Rajkumar Manoharan
>> <[email protected]> wrote:
>> > On Mon, May 19, 2014 at 09:31:16AM -0700, Jim Davis wrote:
>> >> Building with the attached random configuration file,
>> >>
>> >> In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
>> >> from drivers/net/wireless/ath/ath9k/hw.h:27,
>> >> from drivers/net/wireless/ath/ath9k/dfs.c:18:
>> >> drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
>> >> drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
>> >> has no member named ‘debug’
>> >> pe.ts - sc->debug.stats.dfs_stats.last_ts);
>> >> ^
>> >> drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
>> >> macro ‘ath_dbg’
>> >> ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
>> >> ^
>> >> drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
>> >> has no member named ‘debug’
>> >> sc->debug.stats.dfs_stats.last_ts = pe.ts;
>> >> ^
>> >> make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1
>> >
>> > Please select CONFIG_ATH9K_DEBUGFS.
>>
>> The point of randconfig builds is to ensure that there it's really
>> unlikely that there are any config combinations that don't build, even
>> if they're utterly insane.
>>
>> You should really change the ath9k Kconfig rules or move or add ifdefs
>> to prevent this from being possible.
>>
> Completely agree. But ath9k Kconfig has proper dependecy for
> ATH9K_DFS_DEBUGFS. I am wondering how it is selected w/o ATH9K_DEBUGFS.
>
> config ATH9K_DFS_DEBUGFS
> def_bool y
> depends on ATH9K_DEBUGFS && ATH9K_DFS_CERTIFIED
>
> Should it be like this?
>
> config ATH9K_DFS_DEBUGFS
> def_bool y if (ATH9K_DEBUGFS && ATH9K_DFS_CERTIFIED)

Zefir already posted a patch to fix this particular issue.

Judging by the patch, not all of the debugfs using code was properly
enclosed in #ifdefs.

Thanks,

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

2014-05-21 14:38:01

by Rajkumar Manoharan

[permalink] [raw]
Subject: Re: [ath9k-devel] randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

On Wed, May 21, 2014 at 10:12:26PM +1000, Julian Calaby wrote:
> Hi Rajkumar,
>
> On Wed, May 21, 2014 at 9:01 PM, Rajkumar Manoharan
> <[email protected]> wrote:
> > On Mon, May 19, 2014 at 09:31:16AM -0700, Jim Davis wrote:
> >> Building with the attached random configuration file,
> >>
> >> In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
> >> from drivers/net/wireless/ath/ath9k/hw.h:27,
> >> from drivers/net/wireless/ath/ath9k/dfs.c:18:
> >> drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
> >> drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
> >> has no member named ‘debug’
> >> pe.ts - sc->debug.stats.dfs_stats.last_ts);
> >> ^
> >> drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
> >> macro ‘ath_dbg’
> >> ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
> >> ^
> >> drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
> >> has no member named ‘debug’
> >> sc->debug.stats.dfs_stats.last_ts = pe.ts;
> >> ^
> >> make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1
> >
> > Please select CONFIG_ATH9K_DEBUGFS.
>
> The point of randconfig builds is to ensure that there it's really
> unlikely that there are any config combinations that don't build, even
> if they're utterly insane.
>
> You should really change the ath9k Kconfig rules or move or add ifdefs
> to prevent this from being possible.
>
Completely agree. But ath9k Kconfig has proper dependecy for
ATH9K_DFS_DEBUGFS. I am wondering how it is selected w/o ATH9K_DEBUGFS.

config ATH9K_DFS_DEBUGFS
def_bool y
depends on ATH9K_DEBUGFS && ATH9K_DFS_CERTIFIED

Should it be like this?

config ATH9K_DFS_DEBUGFS
def_bool y if (ATH9K_DEBUGFS && ATH9K_DFS_CERTIFIED)

-Rajkumar

2014-05-21 12:12:47

by Julian Calaby

[permalink] [raw]
Subject: Re: [ath9k-devel] randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

Hi Rajkumar,

On Wed, May 21, 2014 at 9:01 PM, Rajkumar Manoharan
<[email protected]> wrote:
> On Mon, May 19, 2014 at 09:31:16AM -0700, Jim Davis wrote:
>> Building with the attached random configuration file,
>>
>> In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
>> from drivers/net/wireless/ath/ath9k/hw.h:27,
>> from drivers/net/wireless/ath/ath9k/dfs.c:18:
>> drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
>> drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
>> has no member named ‘debug’
>> pe.ts - sc->debug.stats.dfs_stats.last_ts);
>> ^
>> drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
>> macro ‘ath_dbg’
>> ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
>> ^
>> drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
>> has no member named ‘debug’
>> sc->debug.stats.dfs_stats.last_ts = pe.ts;
>> ^
>> make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1
>
> Please select CONFIG_ATH9K_DEBUGFS.

The point of randconfig builds is to ensure that there it's really
unlikely that there are any config combinations that don't build, even
if they're utterly insane.

You should really change the ath9k Kconfig rules or move or add ifdefs
to prevent this from being possible.

Thanks,

--
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

2014-05-21 11:01:11

by Rajkumar Manoharan

[permalink] [raw]
Subject: Re: [ath9k-devel] randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

On Mon, May 19, 2014 at 09:31:16AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
> from drivers/net/wireless/ath/ath9k/hw.h:27,
> from drivers/net/wireless/ath/ath9k/dfs.c:18:
> drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
> drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
> has no member named ‘debug’
> pe.ts - sc->debug.stats.dfs_stats.last_ts);
> ^
> drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
> macro ‘ath_dbg’
> ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
> ^
> drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
> has no member named ‘debug’
> sc->debug.stats.dfs_stats.last_ts = pe.ts;
> ^
> make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1

Please select CONFIG_ATH9K_DEBUGFS.

-Rajkumar

2014-05-21 13:55:58

by Zefir Kurtisi

[permalink] [raw]
Subject: Re: [ath9k-devel] randconfig build error with next-20140519, in drivers/net/wireless/ath/ath9k/dfs.c

Hi,

sorry, I posted a related patch today ('[PATCH] ath9k: fix build error with
disabled debug'), but seems did not manage to set the correct in-reply-to field.


On 05/21/2014 02:12 PM, Julian Calaby wrote:
> Hi Rajkumar,
>
> On Wed, May 21, 2014 at 9:01 PM, Rajkumar Manoharan
> <[email protected]> wrote:
>> On Mon, May 19, 2014 at 09:31:16AM -0700, Jim Davis wrote:
>>> Building with the attached random configuration file,
>>>
>>> In file included from drivers/net/wireless/ath/ath9k/eeprom.h:22:0,
>>> from drivers/net/wireless/ath/ath9k/hw.h:27,
>>> from drivers/net/wireless/ath/ath9k/dfs.c:18:
>>> drivers/net/wireless/ath/ath9k/dfs.c: In function ‘ath9k_dfs_process_phyerr’:
>>> drivers/net/wireless/ath/ath9k/dfs.c:185:14: error: ‘struct ath_softc’
>>> has no member named ‘debug’
>>> pe.ts - sc->debug.stats.dfs_stats.last_ts);
>>> ^
>>> drivers/net/wireless/ath/ath9k/../ath.h:273:41: note: in definition of
>>> macro ‘ath_dbg’
>>> ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
>>> ^
>>> drivers/net/wireless/ath/ath9k/dfs.c:186:5: error: ‘struct ath_softc’
>>> has no member named ‘debug’
>>> sc->debug.stats.dfs_stats.last_ts = pe.ts;
>>> ^
>>> make[5]: *** [drivers/net/wireless/ath/ath9k/dfs.o] Error 1
>>
>> Please select CONFIG_ATH9K_DEBUGFS.
>
> The point of randconfig builds is to ensure that there it's really
> unlikely that there are any config combinations that don't build, even
> if they're utterly insane.
>
> You should really change the ath9k Kconfig rules or move or add ifdefs
> to prevent this from being possible.
>
> Thanks,
>