Skip to content

Commit d55d7d5

Browse files
committed
[redhat] HID: intel-THC: add overrides for NS defines
JIRA: https://issues.redhat.com/browse/RHEL-65754 Upstream Status: RHEL9 only Tested: sanity only, I don't have the HW commit cdd30eb module: Convert symbol namespace to string literal is not included in RHEL9 and will likely never be given on how intrusive it is. To keep Intel-THC close to upstream, we override the 2 NS defines we are using to keep them equivalent to the upstream version. Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 0ffd6c1 commit d55d7d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010

1111
#include "intel-thc-dma.h"
1212

13+
/*
14+
* Following is for RHEL 9 only:
15+
* commit cdd30ebb1b9f module: Convert symbol namespace to string literal
16+
* is missing so we locally overwrite the defines to not differ
17+
* too much from upstream
18+
*/
19+
#undef MODULE_IMPORT_NS
20+
#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns)
21+
#undef EXPORT_SYMBOL_NS_GPL
22+
#define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "GPL", ns)
23+
24+
/* End of RHEL 9 customization */
25+
1326
#define THC_REGMAP_COMMON_OFFSET 0x10
1427
#define THC_REGMAP_MMIO_OFFSET 0x1000
1528

0 commit comments

Comments
 (0)