mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 09:15:11 +07:00
ffdfa071bd
Fix problem with double export of certain symbols from vsprintf.c which we do not wish to export from the kvm-intel.ko module. In addition, we do not have access to kallsyms_lookup() from the module, so make sure to #undef CONFIG_KALLSYMS Signed-off-by: Jes Sorensen <jes@sgi.com> Acked-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
22 lines
655 B
C
22 lines
655 B
C
/*
|
|
* kvm_lib.c: Compile some libraries for kvm-intel module.
|
|
*
|
|
* Just include kernel's library, and disable symbols export.
|
|
* Copyright (C) 2008, Intel Corporation.
|
|
* Xiantao Zhang (xiantao.zhang@intel.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
#undef CONFIG_MODULES
|
|
#include <linux/module.h>
|
|
#undef CONFIG_KALLSYMS
|
|
#undef EXPORT_SYMBOL
|
|
#undef EXPORT_SYMBOL_GPL
|
|
#define EXPORT_SYMBOL(sym)
|
|
#define EXPORT_SYMBOL_GPL(sym)
|
|
#include "../../../lib/vsprintf.c"
|
|
#include "../../../lib/ctype.c"
|