linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compile problem in ath9k with ATH_DBG_WARN_ON_ONCE
@ 2010-12-09 13:47 Hauke Mehrtens
  2010-12-09 14:12 ` [PATCH] ath: fix build break " John W. Linville
  0 siblings, 1 reply; 4+ messages in thread
From: Hauke Mehrtens @ 2010-12-09 13:47 UTC (permalink / raw)
  To: Luis R. Rodriguez, Ben Greear; +Cc: linux-wireless@vger.kernel.org

Hi,

I got an compile problem in drivers/net/wireless/ath/ath9k/main.c

This is caused by commit ff9f0b639f33c92a89b0799263ab625444be6ee1
	ath9k: skip ATH9K_INT_TIM_TIMER when we are idle
and d7fd1b50a51be3fe6554fbab8953fa8a3ff4009b
	ath9k: Make DMA warning in ath_stoprecv WARN_ON_ONCE.

If CONFIG_ATH_DEBUG=y is set ATH_DBG_WARN_ON_ONCE uses WARN_ON_ONCE and
returns something, but if CONFIG_ATH_DEBUG is not set it does not return
anything. Now ATH_DBG_WARN_ON_ONCE is used in the boolean expression in
an if case and is not returning anything and causes a compile error.

  CC [M]  /drivers/net/wireless/ath/ath9k/main.o
/drivers/net/wireless/ath/ath9k/main.c: In function ‘ath_isr’:
/drivers/net/wireless/ath/ath9k/main.c:769: error: expected expression
before ‘do’
make[5]: *** [/drivers/net/wireless/ath/ath9k/main.o] Error 1
make[4]: *** [/drivers/net/wireless/ath/ath9k] Error 2

Hauke

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-09 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 13:47 Compile problem in ath9k with ATH_DBG_WARN_ON_ONCE Hauke Mehrtens
2010-12-09 14:12 ` [PATCH] ath: fix build break " John W. Linville
2010-12-09 14:17   ` Johannes Berg
2010-12-09 14:42     ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).