Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: remove object duplication in Makefile

The objects in $(fb-objs) $(fb-y) $(fb-m) are linked to fb.ko .

This line adds $(fb-y) to fb-objs, so the objects from $(fb-y) are
listed twice as the dependency of the module.

It works because Kbuild trims the duplicated objects from linking,
but there is no good reason to have this line.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200106081352.27730-1-masahiroy@kernel.org

authored by

Masahiro Yamada and committed by
Bartlomiej Zolnierkiewicz
31a2a329 914d6631

-1
-1
drivers/video/fbdev/core/Makefile
··· 16 16 fbcon_ccw.o 17 17 endif 18 18 endif 19 - fb-objs := $(fb-y) 20 19 21 20 obj-$(CONFIG_FB_CFB_FILLRECT) += cfbfillrect.o 22 21 obj-$(CONFIG_FB_CFB_COPYAREA) += cfbcopyarea.o