mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
69d846126e
The patch for commit6a2d2ddf2c
("drm: Move nomodeset kernel parameter to the DRM subsystem") was generated with config 'diff.noprefix true'. But later was applied using 'cat nomodeset.mbox | dim apply-branch' on a machine with 'diff.noprefix false'. And command 'git am --scissors -3' as used by the dim tool doesn't handle that case well, since the 3-way merge wrongly resolves the path for new file drivers/gpu/drm/drm_nomodeset.c as gpu/drm/drm_nomodeset.c instead. It led to the following build error as reported by the kernel test robot: make[4]: *** No rule to make target 'drivers/gpu/drm/drm_nomodeset.o', needed by 'drivers/gpu/drm/built-in.a'. Fixes:6a2d2ddf2c
("drm: Move nomodeset kernel parameter to the DRM subsystem") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20211127191910.709356-1-javierm@redhat.com
25 lines
480 B
C
25 lines
480 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
|
|
static bool drm_nomodeset;
|
|
|
|
bool drm_firmware_drivers_only(void)
|
|
{
|
|
return drm_nomodeset;
|
|
}
|
|
EXPORT_SYMBOL(drm_firmware_drivers_only);
|
|
|
|
static int __init disable_modeset(char *str)
|
|
{
|
|
drm_nomodeset = true;
|
|
|
|
pr_warn("Booted with the nomodeset parameter. Only the system framebuffer will be available\n");
|
|
|
|
return 1;
|
|
}
|
|
|
|
/* Disable kernel modesetting */
|
|
__setup("nomodeset", disable_modeset);
|