lkml.org 
[lkml]   [2020]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused


Le mar. 8 déc. 2020 à 15:04, Arnd Bergmann <arnd@kernel.org> a écrit
:
> On Mon, Dec 7, 2020 at 1:33 PM Paul Cercueil <paul@crapouillou.net>
> wrote:
>> Le ven. 4 déc. 2020 à 15:14, Arnd Bergmann <arnd@kernel.org> a
>> écrit
>
>> By the way, as I'm ending up doing the same in a different context,
>> I
>> think it would be useful to have a IF_ENABLED() macro defined like
>> this:
>>
>> #define IF_ENABLED(_cfg, _ptr) (IS_ENABLED(_cfg) ? (_ptr) : NULL)
>>
>> Then the pm_ptr(_ptr) macro could be defined like this:
>>
>> #define pm_ptr(_ptr) IF_ENABLED(CONFIG_PM, _ptr)
>
> I like that. Do you just want to go ahead and start with adding
> IF_ENABLED() to your own branch then?

Sure. I'll send a patch later today and Cc you (and linux-arm?).

Cheers,
-Paul


\
 
 \ /
  Last update: 2020-12-08 16:39    [W:0.178 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site