Re: [PATCH 1/2] thermal/drivers/core: Add init section table for self-encapsulation

From: Daniel Lezcano
Date: Thu Jun 27 2019 - 09:31:39 EST


On 27/06/2019 15:21, Zhang Rui wrote:
> On ä, 2019-06-24 at 09:32 +0200, Daniel Lezcano wrote:
>> Any chance this patch gets merged for v5.4?
>>
>> Thanks
>> Â -- Daniel
>>
>
> have you run compile test for the patch?
> I got the following errors when compiling.

Yes I did and also booted, changed the governor at runtime, etc ... I
already got this error and fixed it. I probably forgot to fold or commit
the fix ... :/


> In file included from drivers/thermal/fair_share.c:16:0:
> drivers/thermal/thermal_core.h:23:3: error: expected identifier or â(â
> before âstaticâ
> Â (static typeof(name) *__thermal_table_entry_##name \
> ÂÂÂ^
> drivers/thermal/thermal_core.h:26:40: note: in expansion of macro
> âTHERMAL_TABLE_ENTRYâ
> Â#define THERMAL_GOVERNOR_DECLARE(name) THERMAL_TABLE_ENTRY(governor,
> name)
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^

[ ... ]

> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^
> make[2]: *** [drivers/thermal/gov_bang_bang.o] Error 1
> make[1]: *** [drivers/thermal] Error 2
> make[1]: *** Waiting for unfinished jobs....
> make: *** [drivers] Error 2
>
> Fix the problem by removing theÂround brackets
> ofÂTHERMAL_TABLE_ENTRY(), and applied.

Ok, thanks for fixing it!

-- Daniel



--
<http://www.linaro.org/> Linaro.org â Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog