Re: linux-next: build warning after merge of the scsi tree

From: Masahiro Yamada
Date: Fri Aug 20 2021 - 02:31:51 EST


On Fri, Aug 20, 2021 at 3:14 PM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> Hi all,
>
> After merging the scsi tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
>
> drivers/scsi/Makefile:197: FORCE prerequisite is missing
>
> Exposed by commit
>
> 0fc7db58e2a6 ("kbuild: warn if FORCE is missing for if_changed(_dep,_rule) and filechk")
>
> I don't know why this warning only appeared after the merge of the scsi
> tree, since the offending line has been in this Makefile since 2017

You are doing incremental builds.

Presumably, because include/scsi/scsi_devinfo.h
is touched by the following commit in the scsi tree.

commit f591a2e0548da88130c7b1c79f1f735273adc683
Author: Martin Kepplinger <martink@xxxxxxxxx>
Date: Sun Jul 4 09:54:01 2021 +0200


Kbuild rebuilds scsi_devinfo_tbl.o due to the
timestamp update, then displays the warning.



If the scsi maintainers want to fix this issue,
a patch is already there.

https://lore.kernel.org/patchwork/patch/1478797/

Since this is a bug, it can get in the scsi tree
any time.





--
Best Regards
Masahiro Yamada