[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=Rj+hmYthVcwYksSxUqFF+117FxVvdnuDCLxVY@mail.gmail.com>
Date: Tue, 12 Oct 2010 11:13:31 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "John W. Linville" <linville@...driver.com>
Cc: linux-wireless@...r.kernel.org,
Stephen Rothwell <sfr@...b.auug.org.au>,
Ben Greear <greearb@...delatech.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ath5k: fix build break from "ath5k: Print out opmode in debugfs"
On Tue, Oct 12, 2010 at 7:53 AM, John W. Linville
<linville@...driver.com> wrote:
>
> Please don't make me commit such an ugly patch...
Why don't you just create a dummy inline ath_opmode_to_string() that
returns NULL in the non-debug case? The compiler will make the
conditionals all go away, and it will end up being "UNKNOWN" which is
just what you want. No?
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists