Skip to content

Commit

Permalink
drm/amdkcl: fake macro MODULE_IMPORT_NS for legacy os
Browse files Browse the repository at this point in the history
Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
  • Loading branch information
OkabeRintarou authored and Flora Cui committed May 17, 2022
1 parent db1a7ee commit d30c224
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/backport/backport.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@
#include <kcl/kcl_capability.h>
#include <kcl/kcl_fdtable.h>
#include <kcl/kcl_hypervisor.h>
#include <kcl/kcl_module.h>

#endif /* AMDGPU_BACKPORT_H */
18 changes: 18 additions & 0 deletions include/kcl/kcl_module.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Dynamic loading of modules into the kernel.
*
* Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996
* Rewritten again by Rusty Russell, 2002
*/
#ifndef _KCL_KCL_LINUX_MODULE_H_H
#define _KCL_KCL_LINUX_MODULE_H_H

#include <linux/module.h>

/* Copied from v5.3-11739-g3e4d890a26d5 include/linux/module.h */
#ifndef MODULE_IMPORT_NS
#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns)
#endif

#endif

0 comments on commit d30c224

Please sign in to comment.