Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bfdf9ebc
Commit
bfdf9ebc
authored
Mar 26, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix sparse warnings in arch/sparc64/kernel/ptrace.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
d91aa123
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
arch/sparc64/kernel/entry.h
arch/sparc64/kernel/entry.h
+5
-1
arch/sparc64/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c
+8
-2
No files found.
arch/sparc64/kernel/entry.h
View file @
bfdf9ebc
#ifndef _ENTRY_H
#define _ENTRY_H
#include <linux/
init
.h>
#include <linux/
kernel
.h>
#include <linux/types.h>
#include <linux/init.h>
extern
char
*
sparc_cpu_type
;
extern
char
*
sparc_fpu_type
;
...
...
@@ -13,6 +14,9 @@ extern void __init boot_cpu_id_too_large(int cpu);
extern
unsigned
int
dcache_parity_tl1_occurred
;
extern
unsigned
int
icache_parity_tl1_occurred
;
extern
asmlinkage
void
syscall_trace
(
struct
pt_regs
*
regs
,
int
syscall_exit_p
);
extern
void
bad_trap_tl1
(
struct
pt_regs
*
regs
,
long
lvl
);
extern
void
do_fpe_common
(
struct
pt_regs
*
regs
);
...
...
arch/sparc64/kernel/ptrace.c
View file @
bfdf9ebc
...
...
@@ -35,6 +35,9 @@
#include <asm/spitfire.h>
#include <asm/page.h>
#include <asm/cpudata.h>
#include <asm/cacheflush.h>
#include "entry.h"
/* #define ALLOW_INIT_TRACING */
...
...
@@ -807,11 +810,14 @@ struct fps {
long
arch_ptrace
(
struct
task_struct
*
child
,
long
request
,
long
addr
,
long
data
)
{
const
struct
user_regset_view
*
view
=
task_user_regset_view
(
child
);
struct
pt_regs
__user
*
pregs
=
(
struct
pt_regs
__user
*
)
addr
;
unsigned
long
addr2
=
task_pt_regs
(
current
)
->
u_regs
[
UREG_I4
];
struct
fps
__user
*
fps
=
(
struct
fps
__user
*
)
addr
;
struct
pt_regs
__user
*
pregs
;
struct
fps
__user
*
fps
;
int
ret
;
pregs
=
(
struct
pt_regs
__user
*
)
(
unsigned
long
)
addr
;
fps
=
(
struct
fps
__user
*
)
(
unsigned
long
)
addr
;
switch
(
request
)
{
case
PTRACE_PEEKUSR
:
ret
=
(
addr
!=
0
)
?
-
EIO
:
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