Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5ffdb206
Commit
5ffdb206
authored
Nov 12, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Nov 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more CONFIG_MODULE_UNLOAD issues
parent
9ce91f36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/linux/module.h
include/linux/module.h
+3
-1
No files found.
include/linux/module.h
View file @
5ffdb206
...
@@ -54,7 +54,6 @@ extern struct module __this_module;
...
@@ -54,7 +54,6 @@ extern struct module __this_module;
void
*
__symbol_get
(
const
char
*
symbol
);
void
*
__symbol_get
(
const
char
*
symbol
);
void
*
__symbol_get_gpl
(
const
char
*
symbol
);
void
*
__symbol_get_gpl
(
const
char
*
symbol
);
#define symbol_get(x) ((typeof(&x))(__symbol_get(#x)))
#define symbol_get(x) ((typeof(&x))(__symbol_get(#x)))
#define symbol_put(x) __symbol_put(#x)
/* For every exported symbol, place a struct in the __ksymtab section */
/* For every exported symbol, place a struct in the __ksymtab section */
#define EXPORT_SYMBOL(sym) \
#define EXPORT_SYMBOL(sym) \
...
@@ -192,7 +191,9 @@ int module_finalize(const Elf_Ehdr *hdr,
...
@@ -192,7 +191,9 @@ int module_finalize(const Elf_Ehdr *hdr,
void
module_free
(
struct
module
*
mod
,
void
*
module_region
);
void
module_free
(
struct
module
*
mod
,
void
*
module_region
);
#ifdef CONFIG_MODULE_UNLOAD
#ifdef CONFIG_MODULE_UNLOAD
void
__symbol_put
(
const
char
*
symbol
);
void
__symbol_put
(
const
char
*
symbol
);
#define symbol_put(x) __symbol_put(#x)
void
symbol_put_addr
(
void
*
addr
);
void
symbol_put_addr
(
void
*
addr
);
/* We only need protection against local interrupts. */
/* We only need protection against local interrupts. */
...
@@ -259,6 +260,7 @@ do { \
...
@@ -259,6 +260,7 @@ do { \
/* Get/put a kernel symbol (calls should be symmetric) */
/* Get/put a kernel symbol (calls should be symmetric) */
#define symbol_get(x) (&(x))
#define symbol_get(x) (&(x))
#define symbol_put(x) do { } while(0)
#define symbol_put(x) do { } while(0)
#define symbol_put_addr(x) do { } while(0)
#define try_module_get(module) 1
#define try_module_get(module) 1
#define module_put(module) do { } while(0)
#define module_put(module) do { } while(0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment