400-ath_move_debug_code.patch 741 B

12345678910111213141516171819202122232425262728
  1. --- a/drivers/net/wireless/ath/Makefile
  2. +++ b/drivers/net/wireless/ath/Makefile
  3. @@ -11,7 +11,7 @@ obj-$(CPTCFG_ATH_COMMON) += ath.o
  4. ath-objs := main.o \
  5. regd.o \
  6. hw.o \
  7. - key.o
  8. + key.o \
  9. + debug.o
  10. -ath-$(CPTCFG_ATH_DEBUG) += debug.o
  11. ccflags-y += -D__CHECK_ENDIAN__
  12. --- a/drivers/net/wireless/ath/ath.h
  13. +++ b/drivers/net/wireless/ath/ath.h
  14. @@ -280,13 +280,6 @@ void _ath_dbg(struct ath_common *common,
  15. #endif /* CPTCFG_ATH_DEBUG */
  16. /** Returns string describing opmode, or NULL if unknown mode. */
  17. -#ifdef CPTCFG_ATH_DEBUG
  18. const char *ath_opmode_to_string(enum nl80211_iftype opmode);
  19. -#else
  20. -static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode)
  21. -{
  22. - return "UNKNOWN";
  23. -}
  24. -#endif
  25. #endif /* ATH_H */