Re: [PATCH] powerpc: Make some functions static

From: Michael Ellerman
Date: Wed Mar 20 2019 - 08:52:59 EST


Mathieu Malaterre <malat@xxxxxxxxxx> writes:
> On Tue, Mar 12, 2019 at 10:14 PM Christophe Leroy
> <christophe.leroy@xxxxxx> wrote:
>>
>>
>>
>> Le 12/03/2019 Ã 21:31, Mathieu Malaterre a Ãcrit :
>> > In commit cb9e4d10c448 ("[POWERPC] Add support for 750CL Holly board")
>> > new functions were added. Since these functions can be made static,
>> > make it so. While doing so, it turns out that holly_power_off and
>> > holly_halt are unused, so remove them.
>>
>> I would have said 'since these functions are only used in this C file,
>> make them static'.
>>
>> I think this could be split in two patches:
>> 1/ Remove unused functions, ie holly_halt() and holly_power_off().
>> 2/ Make the other ones static.
>
> Michael do you want two patches ?

That would be better if it's not too much trouble. A patch with a title
of "Make some functions static" shouldn't really be deleting functions
entirely.

cheers