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
Kirill Smelkov
linux
Commits
34610152
Commit
34610152
authored
Oct 11, 2002
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix defined but not used warnings by marking variables
with attribute unused.
parent
820f841a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
include/linux/module.h
include/linux/module.h
+8
-6
No files found.
include/linux/module.h
View file @
34610152
...
...
@@ -274,8 +274,8 @@ static const struct gtype##_id * __module_##gtype##_table \
*/
#define MODULE_LICENSE(license) \
static const char __module_license[]
__attribute__((section(".modinfo"))) =
\
"license=" license
static const char __module_license[]
\
__attribute__((section(".modinfo"), unused)) =
"license=" license
/* Define the module variable, and usage macros. */
extern
struct
module
__this_module
;
...
...
@@ -286,11 +286,13 @@ extern struct module __this_module;
#define MOD_IN_USE __MOD_IN_USE(THIS_MODULE)
#include <linux/version.h>
static
const
char
__module_kernel_version
[]
__attribute__
((
section
(
".modinfo"
)))
=
"kernel_version="
UTS_RELEASE
;
static
const
char
__module_kernel_version
[]
__attribute__
((
section
(
".modinfo"
),
unused
))
=
"kernel_version="
UTS_RELEASE
;
#ifdef CONFIG_MODVERSIONS
static
const
char
__module_using_checksums
[]
__attribute__
((
section
(
".modinfo"
)))
=
"using_checksums=1"
;
static
const
char
__module_using_checksums
[]
__attribute__
((
section
(
".modinfo"
),
unused
))
=
"using_checksums=1"
;
#endif
#else
/* MODULE */
...
...
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