On Fri, May 23, 2014 at 10:15:08AM +0200, Zefir Kurtisi wrote: > On 05/22/2014 03:15 PM, Kalle Valo wrote: > > Zefir Kurtisi <zefir.kurtisi@xxxxxxxxxxx> writes: > > > >> DFS pulse interval printing is only available > >> when CONFIG_ATH9K_DEBUGFS is set. > >> > >> Signed-off-by: Zefir Kurtisi <zefir.kurtisi@xxxxxxxxxxx> > > > > [...] > > > >> --- a/drivers/net/wireless/ath/ath9k/dfs.c > >> +++ b/drivers/net/wireless/ath/ath9k/dfs.c > >> @@ -178,12 +178,14 @@ void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data, > >> pe.ts = mactime; > >> if (ath9k_postprocess_radar_event(sc, &ard, &pe)) { > >> struct dfs_pattern_detector *pd = sc->dfs_detector; > >> +#ifdef CONFIG_ATH9K_DEBUGFS > > > > IMHO config_enabled() is much nicer than ifdef. > > > > Actually, I dislike both of them. > > While this is for debug printing only, it is still a bad idea to use variables in > debugfs dependent space and splatter source code with required checks. I'll move > that into a different context and post a follow-up patch. > > > John, please drop this one. Actually, I merged it yesterday. Please submit your follow-up patch on top of this one. John -- John W. Linville Someday the world will need a hero, and you linville@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html