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
d899c1d0
Commit
d899c1d0
authored
Nov 17, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Module loading API updates.
parent
eeb83d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
34 deletions
+2
-34
arch/sparc/kernel/module.c
arch/sparc/kernel/module.c
+1
-17
arch/sparc64/kernel/module.c
arch/sparc64/kernel/module.c
+1
-17
No files found.
arch/sparc/kernel/module.c
View file @
d899c1d0
...
...
@@ -11,7 +11,7 @@
#include <linux/fs.h>
#include <linux/string.h>
static
void
*
alloc_and_zero
(
unsigned
long
size
)
void
*
module_alloc
(
unsigned
long
size
)
{
void
*
ret
;
...
...
@@ -36,22 +36,6 @@ void module_free(struct module *mod, void *module_region)
table entries. */
}
void
*
module_core_alloc
(
const
Elf32_Ehdr
*
hdr
,
const
Elf32_Shdr
*
sechdrs
,
const
char
*
secstrings
,
struct
module
*
module
)
{
return
alloc_and_zero
(
module
->
core_size
);
}
void
*
module_init_alloc
(
const
Elf32_Ehdr
*
hdr
,
const
Elf32_Shdr
*
sechdrs
,
const
char
*
secstrings
,
struct
module
*
module
)
{
return
alloc_and_zero
(
module
->
init_size
);
}
int
apply_relocate
(
Elf32_Shdr
*
sechdrs
,
const
char
*
strtab
,
unsigned
int
symindex
,
...
...
arch/sparc64/kernel/module.c
View file @
d899c1d0
...
...
@@ -118,7 +118,7 @@ static void *module_map(unsigned long size)
return
NULL
;
}
static
void
*
alloc_and_zero
(
unsigned
long
size
)
void
*
module_alloc
(
unsigned
long
size
)
{
void
*
ret
;
...
...
@@ -143,22 +143,6 @@ void module_free(struct module *mod, void *module_region)
table entries. */
}
void
*
module_core_alloc
(
const
Elf64_Ehdr
*
hdr
,
const
Elf64_Shdr
*
sechdrs
,
const
char
*
secstrings
,
struct
module
*
module
)
{
return
alloc_and_zero
(
module
->
core_size
);
}
void
*
module_init_alloc
(
const
Elf64_Ehdr
*
hdr
,
const
Elf64_Shdr
*
sechdrs
,
const
char
*
secstrings
,
struct
module
*
module
)
{
return
alloc_and_zero
(
module
->
init_size
);
}
int
apply_relocate
(
Elf64_Shdr
*
sechdrs
,
const
char
*
strtab
,
unsigned
int
symindex
,
...
...
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