Re: [PATCH] lightnvm: remove unused rq parameter of nvme_nvm_rqtocmd() to kill warning
From: Arnd Bergmann
Date: Mon May 08 2017 - 03:52:01 EST
On Mon, May 8, 2017 at 9:25 AM, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> Hi Jens,
>
> On Mon, May 8, 2017 at 3:53 AM, Jens Axboe <axboe@xxxxxx> wrote:
>> On 05/07/2017 08:14 AM, Geert Uytterhoeven wrote:
>>> With gcc 4.1.2:
>>
>> Wow, that's ancient.
>
> But it helps to find things like this, and improve the code ;-)
For reference, the warning shows up in gcc-4.2 and 4.3 as well, but
not in gcc-4.4 or
higher unless you disable all optimizations (e.g. gcc-7.1 -O0 warns).
Arnd