[RFC,v2,7/8] drm/i915: now that all functions are used, remove __maybe_unused

Message ID 499491f3b7307648fcf6c31c45713d26331d76d7.1667486144.git.mchehab@kernel.org
State New
Headers
Series Add KUnit support for i915 driver |

Commit Message

Mauro Carvalho Chehab Nov. 3, 2022, 2:51 p.m. UTC
  The PCI-specific KUnit tests that run in bare metal got added,
so we can remove the __maybe_unused from such functions.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---

To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover.
See [PATCH RFC v2 0/8] at: https://lore.kernel.org/all/cover.1667486144.git.mchehab@kernel.org/

 drivers/gpu/drm/i915/selftests/i915_kunit.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/drivers/gpu/drm/i915/selftests/i915_kunit.c b/drivers/gpu/drm/i915/selftests/i915_kunit.c
index 6de5d3fa8920..e6dbffe919e6 100644
--- a/drivers/gpu/drm/i915/selftests/i915_kunit.c
+++ b/drivers/gpu/drm/i915/selftests/i915_kunit.c
@@ -26,7 +26,7 @@ 
 
 static int n_boards;
 static struct pci_dev *dev_i915[MAX_PCI_BOARDS];
-static int __maybe_unused i915_pci_init_suite(struct kunit_suite *suite)
+static int i915_pci_init_suite(struct kunit_suite *suite)
 {
 	struct pci_dev *pdev = NULL;
 	int i;
@@ -64,7 +64,7 @@  static int __maybe_unused i915_pci_init_suite(struct kunit_suite *suite)
 	return 0;
 }
 
-static void __maybe_unused i915_pci_exit_suite(struct kunit_suite *suite)
+static void i915_pci_exit_suite(struct kunit_suite *suite)
 {
 	int i;
 
@@ -74,8 +74,8 @@  static void __maybe_unused i915_pci_exit_suite(struct kunit_suite *suite)
 	n_boards = 0;
 }
 
-static void __maybe_unused run_pci_test(struct kunit *test,
-					int (*f)(struct drm_i915_private *i915))
+static void run_pci_test(struct kunit *test,
+			 int (*f)(struct drm_i915_private *i915))
 {
 	struct drm_i915_private *i915;
 	int i, ret, disable_display;