kmax icon indicating copy to clipboard operation
kmax copied to clipboard

klocalizer: localized config does not compile drivers/gpu/drm/i915/gvt/*.c

Open necipfazil opened this issue 3 years ago • 1 comments

At linux-next commit b01739fb865a:

klocalizer -a x86_64 drivers/gpu/drm/i915/gvt/display.o
make olddefconfig; make clean drivers/gpu/drm/i915/gvt/display.o

Results in:

[...]

  UPD     include/generated/timeconst.h
  UPD     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[6]: *** No rule to make target 'drivers/gpu/drm/i915/gvt/display.o'.  Stop.
make[5]: *** [scripts/Makefile.build:471: __build] Error 2
make[4]: *** [scripts/Makefile.build:496: drivers/gpu/drm/i915] Error 2
make[3]: *** [scripts/Makefile.build:496: drivers/gpu/drm] Error 2
make[2]: *** [scripts/Makefile.build:496: drivers/gpu] Error 2
make[1]: *** [Makefile:1805: drivers] Error 2
make: *** [Makefile:335: __build_one_by_one] Error 2

However, it can be compiled with allyesconfig:

make allyesconfig
make clean drivers/gpu/drm/i915/gvt/display.o

Some other files with the same issue are:

  • drivers/gpu/drm/i915/gvt/gvt.c
  • drivers/gpu/drm/i915/gvt/handlers.c
  • drivers/gpu/drm/i915/gvt/vgpu.c

necipfazil avatar Sep 20 '21 02:09 necipfazil

This bug is related to kmax.

klocalizer --view-kbuild -a x86_64 drivers/gpu/drm/i915/gvt/display.o
INFO: The Kbuild constraints for drivers/gpu/drm/i915/gvt/display.o:
drivers/gpu/drm/i915/gvt/display.o
[CONFIG_DRM_I915]

drivers/gpu/drm/i915/
[CONFIG_DRM_I915]

drivers/gpu/drm/
[]

drivers/gpu/
[]

However, drivers/gpu/drm/i915/gvt/ depends on CONFIG_DRM_I915_GVT:

288 ifeq ($(CONFIG_DRM_I915_GVT),y)                                            
289 i915-y += intel_gvt.o                                                      
290 include $(src)/gvt/Makefile                                                
291 endif 

necipfazil avatar Nov 14 '21 20:11 necipfazil