Now that the driver compiles without IWX_DEBUG awlays enabled, someone
can consider making it a kernel option.
Fixes: 2ad0f7e91582, a615ded5bf2d
Differential D53776
iwx: make compile withtout IWX_DEBUG being on Authored by bz on Sat, Nov 15, 9:31 PM. Tags None Referenced Files
Details Now that the driver compiles without IWX_DEBUG awlays enabled, someone Fixes: 2ad0f7e91582, a615ded5bf2d
Diff Detail
Event TimelineComment Actions This is incomplete. There is a ton of code in sys/dev/iwx/if_iwx_debug.c which will now be compiled but not used.
Comment Actions That may be true but the point was "the driver does not compile without it". Now it does. Comment Actions The compile fixes LGTM. I'm indifferent on enabling IWX_DEBUG by default or not -- AFAIK it also has a run-time knob and has no user-facing effect unless turned on, and might be reasonable to leave compiled in given this driver's current status. Comment Actions I think @adrian or @thj will have the best idea as to that (if it makes sense and how to possibly control the debugging). I'll just wait, also in case one of them will want to address @des' comments about covering all the debug parts properly. Alternatively we could just remove all the #ifdef IWX_DEBUG and always have it avail (@thj @adrian)? Comment Actions I don't mind either; in fact the above diffs just remind me i need to finish cleaning up the iwx debug printing so this stuff doesn't require #ifdef IWX_DEBUG everywhere. :-) I'm happy with landing this and fixnig it in post. Comment Actions If you want to remove IWX_DEBUG anyway there is no point in landing this... Then the answer is to simply remove IWX_DEBUG entirely Comment Actions nono i mean the places in the diff where #ifdef IWX_DEBUG instead of using IWX_DPRINTF(), and an IWX_DPRINTF_CHECK() macro ... Comment Actions This is fine to me, I'm not sure what adrian means with his outstanding item, but we can just keep hitting iwx with a stick until we are happy. Comment Actions Can you please put all of if_iwx_debug.c under #ifdef IWX_DEBUG? A quick LINT build should confirm that none of it is needed (and fwiw print_opcodes() appears not to be used at all, ever). Comment Actions Yes, I'll have a go at that; also given adrian's comments I'll also cleanup the Makefile line you asked. | ||||||||||||||||||||||||||||||||||||||