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
32c5c072
Commit
32c5c072
authored
Feb 19, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5
parents
91fce280
0dd22e54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
include/linux/compiler.h
include/linux/compiler.h
+17
-0
kernel/posix-timers.c
kernel/posix-timers.c
+1
-1
scripts/modpost.c
scripts/modpost.c
+2
-0
No files found.
include/linux/compiler.h
View file @
32c5c072
...
@@ -25,6 +25,23 @@
...
@@ -25,6 +25,23 @@
#define __deprecated
#define __deprecated
#endif
#endif
/*
* Allow us to avoid 'defined but not used' warnings on functions and data,
* as well as force them to be emitted to the assembly file.
*
* As of gcc 3.3, static functions that are not marked with attribute((used))
* may be elided from the assembly file. As of gcc 3.3, static data not so
* marked will not be elided, but this may change in a future gcc version.
*
* In prior versions of gcc, such functions and data would be emitted, but
* would be warned about except with attribute((unused)).
*/
#if __GNUC__ == 3 && __GNUC_MINOR__ >= 3 || __GNUC__ > 3
#define __attribute_used__ __attribute__((__used__))
#else
#define __attribute_used__ __attribute__((__unused__))
#endif
/* This macro obfuscates arithmetic on a variable address so that gcc
/* This macro obfuscates arithmetic on a variable address so that gcc
shouldn't recognize the original var, and make assumptions about it */
shouldn't recognize the original var, and make assumptions about it */
#define RELOC_HIDE(ptr, off) \
#define RELOC_HIDE(ptr, off) \
...
...
kernel/posix-timers.c
View file @
32c5c072
...
@@ -1294,7 +1294,7 @@ do_clock_nanosleep(clockid_t which_clock, int flags, struct timespec *tsave)
...
@@ -1294,7 +1294,7 @@ do_clock_nanosleep(clockid_t which_clock, int flags, struct timespec *tsave)
}
}
restart_block
->
fn
=
clock_nanosleep_restart
;
restart_block
->
fn
=
clock_nanosleep_restart
;
restart_block
->
arg0
=
which_clock
;
restart_block
->
arg0
=
which_clock
;
restart_block
->
arg1
=
(
int
)
tsave
;
restart_block
->
arg1
=
(
unsigned
long
)
tsave
;
restart_block
->
arg2
=
new_timer
.
expires
;
restart_block
->
arg2
=
new_timer
.
expires
;
return
-
ERESTART_RESTARTBLOCK
;
return
-
ERESTART_RESTARTBLOCK
;
}
}
...
...
scripts/modpost.c
View file @
32c5c072
...
@@ -384,6 +384,7 @@ add_header(struct buffer *b)
...
@@ -384,6 +384,7 @@ add_header(struct buffer *b)
{
{
buf_printf
(
b
,
"#include <linux/module.h>
\n
"
);
buf_printf
(
b
,
"#include <linux/module.h>
\n
"
);
buf_printf
(
b
,
"#include <linux/vermagic.h>
\n
"
);
buf_printf
(
b
,
"#include <linux/vermagic.h>
\n
"
);
buf_printf
(
b
,
"#include <linux/compiler.h>
\n
"
);
buf_printf
(
b
,
"
\n
"
);
buf_printf
(
b
,
"
\n
"
);
buf_printf
(
b
,
"const char vermagic[]
\n
"
);
buf_printf
(
b
,
"const char vermagic[]
\n
"
);
buf_printf
(
b
,
"__attribute__((section(
\"
__vermagic
\"
))) =
\n
"
);
buf_printf
(
b
,
"__attribute__((section(
\"
__vermagic
\"
))) =
\n
"
);
...
@@ -449,6 +450,7 @@ add_depends(struct buffer *b, struct module *mod, struct module *modules)
...
@@ -449,6 +450,7 @@ add_depends(struct buffer *b, struct module *mod, struct module *modules)
buf_printf
(
b
,
"
\n
"
);
buf_printf
(
b
,
"
\n
"
);
buf_printf
(
b
,
"static const char __module_depends[]
\n
"
);
buf_printf
(
b
,
"static const char __module_depends[]
\n
"
);
buf_printf
(
b
,
"__attribute_used__
\n
"
);
buf_printf
(
b
,
"__attribute__((section(
\"
.modinfo
\"
))) =
\n
"
);
buf_printf
(
b
,
"__attribute__((section(
\"
.modinfo
\"
))) =
\n
"
);
buf_printf
(
b
,
"
\"
depends="
);
buf_printf
(
b
,
"
\"
depends="
);
for
(
s
=
mod
->
unres
;
s
;
s
=
s
->
next
)
{
for
(
s
=
mod
->
unres
;
s
;
s
=
s
->
next
)
{
...
...
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