[jammy xilinx-zynqmp 2/2] UBUNTU: modpost: Add staging flag to drivers in ubuntu/staging

Portia Stephens portia.stephens at canonical.com
Mon Sep 18 03:48:57 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2036370 (Move experimental ubuntu drivers to staging)

This adds a staging flag for any drivers in ubuntu/staging.

Signed-off-by: Portia Stephens <portia.stephens at canonical.com>
---
 scripts/mod/modpost.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 3ac2f0232946..d9639bf45b05 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -2252,6 +2252,8 @@ static void add_staging_flag(struct buffer *b, const char *name)
 {
 	if (strstarts(name, "drivers/staging"))
 		buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n");
+	if (strstarts(name, "ubuntu/staging"))
+		buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n");
 }
 
 /**
-- 
2.34.1




More information about the kernel-team mailing list