]> Gentwo Git Trees - linux/.git/commit
Fix access to video_is_primary_device() when compiled without CONFIG_VIDEO
authorMario Limonciello (AMD) <superm1@kernel.org>
Mon, 11 Aug 2025 16:26:03 +0000 (11:26 -0500)
committerMario Limonciello (AMD) <superm1@kernel.org>
Wed, 10 Sep 2025 14:35:33 +0000 (09:35 -0500)
commit6e490dea61b88aac9762c9f79a54aad4ea2e6cd1
treecfdf7c516a98a45a8aec4b24fb2e85bf14bc9922
parent7acbe30813f04cccf7b2e8b571eb7936cfec0a87
Fix access to video_is_primary_device() when compiled without CONFIG_VIDEO

When compiled without CONFIG_VIDEO the architecture specific
implementations of video_is_primary_device() include prototypes and
assume that video-common.c will be linked. Guard against this so that the
fallback inline implementation that returns false will be used when
compiled without CONFIG_VIDEO.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506221312.49Fy1aNA-lkp@intel.com/
Link: https://lore.kernel.org/r/20250811162606.587759-2-superm1@kernel.org
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
arch/parisc/include/asm/video.h
arch/sparc/include/asm/video.h
arch/x86/include/asm/video.h