bcm27xx: 6.1: add kernel patches
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0486-drm-tests-helpers-Add-missing-export.patch
1 From 06a4752fb31b0b4abf0f31301cec18b59f6454bd Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Mon, 28 Nov 2022 09:19:38 +0100
4 Subject: [PATCH] drm/tests: helpers: Add missing export
5
6 drm_kunit_device_init() is a public function meant to be used by other
7 tests, but isn't exported. This leads to modpost errors when the other
8 tests are compiled as module.
9
10 Reported-by: kernel test robot <lkp@intel.com>
11 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
12 ---
13 drivers/gpu/drm/tests/drm_kunit_helpers.c | 1 +
14 1 file changed, 1 insertion(+)
15
16 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c
17 +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c
18 @@ -66,6 +66,7 @@ struct drm_device *drm_kunit_device_init
19
20 return drm;
21 }
22 +EXPORT_SYMBOL(drm_kunit_device_init);
23
24 MODULE_AUTHOR("Maxime Ripard <maxime@cerno.tech>");
25 MODULE_LICENSE("GPL");