[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6301921.5KldR71luq@wuerfel>
Date: Tue, 10 Jan 2017 22:39:04 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Darren Hart <dvhart@...radead.org>
Cc: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] platform/x86: shut up unused-function warning
On Tuesday, January 10, 2017 12:41:17 PM CET Darren Hart wrote:
>
> Thanks Arnd,
>
> This appears to be the preferred approach from coding-style.rst 20) Conditional
> Compilation - we have some cleanup to do in this area I guess.
>
> Queued to next, thanks.
Thanks!
No need to do mass-conversions to __maybe_unused though,
Kirtika Ruchandani has started working on a way for the suspend/resume
functions to automatically get silently discarded when they are
unused, without having an #ifdef or __maybe_unused annotation.
For new code, using __maybe_unused helps avoid this bug though,
and the conversion to the future macros would be easy enough.
Arnd
Powered by blists - more mailing lists