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
345fb3a2
Commit
345fb3a2
authored
Jan 01, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MODULES] Fix compiler warning wrt try_module_get when
modules are disabled.
parent
f53cbaab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
include/linux/module.h
include/linux/module.h
+8
-2
No files found.
include/linux/module.h
View file @
345fb3a2
...
...
@@ -268,8 +268,14 @@ const char *module_address_lookup(unsigned long addr,
#define symbol_put(x) do { } while(0)
#define symbol_put_addr(x) do { } while(0)
#define try_module_get(module) 1
#define module_put(module) do { } while(0)
static
inline
int
try_module_get
(
struct
module
*
module
)
{
return
1
;
}
static
inline
void
module_put
(
struct
module
*
module
)
{
}
#define module_name(mod) "kernel"
...
...
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