[PATCH] riscv: Fix compilation warning

Damien Le Moal Damien.LeMoal at wdc.com
Tue Sep 15 23:10:52 EDT 2020


On 2020/09/16 11:02, Palmer Dabbelt wrote:
>> On Tue, 15 Sep 2020 18:29:52 PDT (-0700), Damien Le Moal wrote:
>>> On 2020/09/16 4:44, Atish Patra wrote:
>>> On Tue, Sep 15, 2020 at 2:16 AM Damien Le Moal <damien.lemoal at wdc.com> wrote:
>>>>
>>>> Move the declaration of pt_ops under "#ifdef iCONFIG_MMU" to avoid the
>>>> compilation warning:
>>>>
>>>> arch/riscv/mm/init.c:44:28: warning: ‘pt_ops’ defined but not used
>>>> [-Wunused-variable]
>>>>    44 | static struct pt_alloc_ops pt_ops;
>>>>       |                            ^~~~~~
>>>>
>>>> with NO MMU builds (e.g. nommu_k210_defconfig).
>>>>
>>>
>>> Thanks for the fix. pt_ops was added as a part of EFI series.
>>> I am planning to send v8 to include some more generic EFI changes.
>>>
>>> Do you mind if I just include this fix in my series ?
>>
>> Please feel free to integrate/squash this change in your series. No need for a
>> separate patch for just that. But: If your EFI series is not final, what is it
>> doing on the for-next branch ???
>>
>> Palmer,
>>
>> What is going on here ? If Atish V7 series has problems and is not final, why is
>> it already in for-next ?
> 
> I'm behind on this thread, I just saw this as I was sitting down to do
> something else.
> 
> It was supposed to be ready to go, but it had to be rolled back.  As far as I
> understand it my for-next doesn't actually have broken stuff on it, the issue
> is more that some other EFI tree changes landed that would make merging the
> trees more difficult.  IIRC Ard was going to an EFI tree tag for me to merge,
> and I was waiting until that to show up for the rebase so we didn't juggle
> things too much.  I guess I'd assumed that the actual patches weren't changing
> that much in the process, but if Atish is going to be sending another version
> with meaningful changes then I suppose it's best to drop the EFI stuff for now.
> 
> I just rebased for-next, dropping the EFI patches.

OK.

Atish,

Feel free to squash the compile warning patch into yours for v8.

-- 
Damien Le Moal
Western Digital Research



More information about the linux-riscv mailing list