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
26fb218e
Commit
26fb218e
authored
May 20, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: fix compile warnings
parent
4e608f26
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
42 deletions
+31
-42
arch/ppc64/kernel/prom.c
arch/ppc64/kernel/prom.c
+2
-3
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+3
-3
arch/ppc64/kernel/signal.c
arch/ppc64/kernel/signal.c
+2
-6
arch/ppc64/kernel/signal32.c
arch/ppc64/kernel/signal32.c
+0
-18
arch/ppc64/kernel/traps.c
arch/ppc64/kernel/traps.c
+3
-3
include/asm-ppc64/signal.h
include/asm-ppc64/signal.h
+20
-9
include/asm-ppc64/system.h
include/asm-ppc64/system.h
+1
-0
No files found.
arch/ppc64/kernel/prom.c
View file @
26fb218e
...
@@ -1060,12 +1060,11 @@ unsigned long __init
...
@@ -1060,12 +1060,11 @@ unsigned long __init
prom_init
(
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
pp
,
prom_init
(
unsigned
long
r3
,
unsigned
long
r4
,
unsigned
long
pp
,
unsigned
long
r6
,
unsigned
long
r7
)
unsigned
long
r6
,
unsigned
long
r7
)
{
{
int
chrp
=
0
;
unsigned
long
mem
;
unsigned
long
mem
;
ihandle
prom_
mmu
,
prom_op
,
prom_
root
,
prom_cpu
;
ihandle
prom_root
,
prom_cpu
;
phandle
cpu_pkg
;
phandle
cpu_pkg
;
unsigned
long
offset
=
reloc_offset
();
unsigned
long
offset
=
reloc_offset
();
long
l
,
sz
;
long
l
;
char
*
p
,
*
d
;
char
*
p
,
*
d
;
unsigned
long
phys
;
unsigned
long
phys
;
u32
getprop_rval
;
u32
getprop_rval
;
...
...
arch/ppc64/kernel/setup.c
View file @
26fb218e
...
@@ -193,9 +193,9 @@ void setup_system(unsigned long r3, unsigned long r4, unsigned long r5,
...
@@ -193,9 +193,9 @@ void setup_system(unsigned long r3, unsigned long r4, unsigned long r5,
printk
(
"naca = 0x%p
\n
"
,
naca
);
printk
(
"naca = 0x%p
\n
"
,
naca
);
printk
(
"naca->pftSize = 0x%lx
\n
"
,
naca
->
pftSize
);
printk
(
"naca->pftSize = 0x%lx
\n
"
,
naca
->
pftSize
);
printk
(
"naca->debug_switch = 0x%lx
\n
"
,
naca
->
debug_switch
);
printk
(
"naca->debug_switch = 0x%lx
\n
"
,
naca
->
debug_switch
);
printk
(
"naca->interrupt_controller = 0x%
d
\n
"
,
naca
->
interrupt_controller
);
printk
(
"naca->interrupt_controller = 0x%
lx
\n
"
,
naca
->
interrupt_controller
);
printk
(
"systemcf = 0x%p
\n
"
,
systemcfg
);
printk
(
"systemcf
g
= 0x%p
\n
"
,
systemcfg
);
printk
(
"systemcfg->processorCount = 0x%x
\n
"
,
systemcfg
->
processorCount
);
printk
(
"systemcfg->processorCount = 0x%
l
x
\n
"
,
systemcfg
->
processorCount
);
printk
(
"systemcfg->physicalMemorySize = 0x%lx
\n
"
,
systemcfg
->
physicalMemorySize
);
printk
(
"systemcfg->physicalMemorySize = 0x%lx
\n
"
,
systemcfg
->
physicalMemorySize
);
printk
(
"systemcfg->dCacheL1LineSize = 0x%x
\n
"
,
systemcfg
->
dCacheL1LineSize
);
printk
(
"systemcfg->dCacheL1LineSize = 0x%x
\n
"
,
systemcfg
->
dCacheL1LineSize
);
printk
(
"systemcfg->iCacheL1LineSize = 0x%x
\n
"
,
systemcfg
->
iCacheL1LineSize
);
printk
(
"systemcfg->iCacheL1LineSize = 0x%x
\n
"
,
systemcfg
->
iCacheL1LineSize
);
...
...
arch/ppc64/kernel/signal.c
View file @
26fb218e
...
@@ -69,13 +69,11 @@ struct rt_sigframe {
...
@@ -69,13 +69,11 @@ struct rt_sigframe {
};
};
extern
int
do_signal
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
);
/*
/*
* Atomically swap in the new signal mask, and wait for a signal.
* Atomically swap in the new signal mask, and wait for a signal.
*/
*/
long
sys_rt_sigsuspend
(
sigset_t
*
unewset
,
size_t
sigsetsize
,
int
p3
,
int
p4
,
int
p6
,
long
sys_rt_sigsuspend
(
sigset_t
*
unewset
,
size_t
sigsetsize
,
int
p3
,
int
p4
,
int
p7
,
struct
pt_regs
*
regs
)
int
p6
,
int
p7
,
struct
pt_regs
*
regs
)
{
{
sigset_t
saveset
,
newset
;
sigset_t
saveset
,
newset
;
...
@@ -390,8 +388,6 @@ syscall_restart(struct pt_regs *regs, struct k_sigaction *ka)
...
@@ -390,8 +388,6 @@ syscall_restart(struct pt_regs *regs, struct k_sigaction *ka)
* want to handle. Thus you cannot kill init even with a SIGKILL even by
* want to handle. Thus you cannot kill init even with a SIGKILL even by
* mistake.
* mistake.
*/
*/
extern
int
do_signal32
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
);
int
do_signal
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
)
int
do_signal
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
)
{
{
siginfo_t
info
;
siginfo_t
info
;
...
...
arch/ppc64/kernel/signal32.c
View file @
26fb218e
...
@@ -563,10 +563,6 @@ long sys32_rt_sigaction(int sig, const struct sigaction32 *act,
...
@@ -563,10 +563,6 @@ long sys32_rt_sigaction(int sig, const struct sigaction32 *act,
return
ret
;
return
ret
;
}
}
extern
long
sys_rt_sigprocmask
(
int
how
,
sigset_t
*
set
,
sigset_t
*
oset
,
size_t
sigsetsize
);
/*
/*
* Note: it is necessary to treat how as an unsigned int, with the
* Note: it is necessary to treat how as an unsigned int, with the
* corresponding cast to a signed int to insure that the proper
* corresponding cast to a signed int to insure that the proper
...
@@ -613,10 +609,6 @@ long sys32_rt_sigprocmask(u32 how, compat_sigset_t *set,
...
@@ -613,10 +609,6 @@ long sys32_rt_sigprocmask(u32 how, compat_sigset_t *set,
return
0
;
return
0
;
}
}
extern
long
sys_rt_sigpending
(
sigset_t
*
set
,
size_t
sigsetsize
);
long
sys32_rt_sigpending
(
compat_sigset_t
*
set
,
compat_size_t
sigsetsize
)
long
sys32_rt_sigpending
(
compat_sigset_t
*
set
,
compat_size_t
sigsetsize
)
{
{
sigset_t
s
;
sigset_t
s
;
...
@@ -683,11 +675,6 @@ static int copy_siginfo_to_user32(siginfo_t32 *d, siginfo_t *s)
...
@@ -683,11 +675,6 @@ static int copy_siginfo_to_user32(siginfo_t32 *d, siginfo_t *s)
return
err
;
return
err
;
}
}
extern
long
sys_rt_sigtimedwait
(
const
sigset_t
*
uthese
,
siginfo_t
*
uinfo
,
const
struct
timespec
*
uts
,
size_t
sigsetsize
);
long
sys32_rt_sigtimedwait
(
compat_sigset_t
*
uthese
,
siginfo_t32
*
uinfo
,
long
sys32_rt_sigtimedwait
(
compat_sigset_t
*
uthese
,
siginfo_t32
*
uinfo
,
struct
compat_timespec
*
uts
,
compat_size_t
sigsetsize
)
struct
compat_timespec
*
uts
,
compat_size_t
sigsetsize
)
{
{
...
@@ -758,9 +745,6 @@ static siginfo_t * siginfo32to64(siginfo_t *d, siginfo_t32 *s)
...
@@ -758,9 +745,6 @@ static siginfo_t * siginfo32to64(siginfo_t *d, siginfo_t32 *s)
return
d
;
return
d
;
}
}
extern
long
sys_rt_sigqueueinfo
(
int
pid
,
int
sig
,
siginfo_t
*
uinfo
);
/*
/*
* Note: it is necessary to treat pid and sig as unsigned ints, with the
* Note: it is necessary to treat pid and sig as unsigned ints, with the
* corresponding cast to a signed int to insure that the proper conversion
* corresponding cast to a signed int to insure that the proper conversion
...
@@ -786,8 +770,6 @@ long sys32_rt_sigqueueinfo(u32 pid, u32 sig, siginfo_t32 *uinfo)
...
@@ -786,8 +770,6 @@ long sys32_rt_sigqueueinfo(u32 pid, u32 sig, siginfo_t32 *uinfo)
return
ret
;
return
ret
;
}
}
extern
int
do_signal
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
);
int
sys32_rt_sigsuspend
(
compat_sigset_t
*
unewset
,
size_t
sigsetsize
,
int
p3
,
int
sys32_rt_sigsuspend
(
compat_sigset_t
*
unewset
,
size_t
sigsetsize
,
int
p3
,
int
p4
,
int
p6
,
int
p7
,
struct
pt_regs
*
regs
)
int
p4
,
int
p6
,
int
p7
,
struct
pt_regs
*
regs
)
{
{
...
...
arch/ppc64/kernel/traps.c
View file @
26fb218e
...
@@ -346,11 +346,11 @@ ProgramCheckException(struct pt_regs *regs)
...
@@ -346,11 +346,11 @@ ProgramCheckException(struct pt_regs *regs)
}
}
}
}
void
void
KernelFPUnavailableException
(
struct
pt_regs
*
regs
)
KernelFPUnavailableException
(
struct
pt_regs
*
regs
)
{
{
printk
(
"Illegal floating point used in kernel (task=0x%
016lx, pc=0x%016lx, trap=0x%08x)
\n
"
,
printk
(
"Illegal floating point used in kernel (task=0x%
p, "
current
,
regs
->
nip
,
regs
->
trap
);
"pc=0x%016lx, trap=0x%lx)
\n
"
,
current
,
regs
->
nip
,
regs
->
trap
);
panic
(
"Unrecoverable FP Unavailable Exception in Kernel"
);
panic
(
"Unrecoverable FP Unavailable Exception in Kernel"
);
}
}
...
...
include/asm-ppc64/signal.h
View file @
26fb218e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#define _ASMPPC64_SIGNAL_H
#define _ASMPPC64_SIGNAL_H
#include <linux/types.h>
#include <linux/types.h>
#include <asm/siginfo.h>
/* Avoid too many header ordering problems. */
/* Avoid too many header ordering problems. */
struct
siginfo
;
struct
siginfo
;
...
@@ -72,19 +73,19 @@ typedef struct {
...
@@ -72,19 +73,19 @@ typedef struct {
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
* Unix names RESETHAND and NODEFER respectively.
* Unix names RESETHAND and NODEFER respectively.
*/
*/
#define SA_NOCLDSTOP 0x00000001
#define SA_NOCLDSTOP 0x00000001
u
#define SA_NOCLDWAIT 0x00000002
#define SA_NOCLDWAIT 0x00000002
u
#define SA_SIGINFO 0x00000004
#define SA_SIGINFO 0x00000004
u
#define SA_ONSTACK 0x08000000
#define SA_ONSTACK 0x08000000
u
#define SA_RESTART 0x10000000
#define SA_RESTART 0x10000000
u
#define SA_NODEFER 0x40000000
#define SA_NODEFER 0x40000000
u
#define SA_RESETHAND 0x80000000
#define SA_RESETHAND 0x80000000
u
#define SA_NOMASK SA_NODEFER
#define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND
#define SA_ONESHOT SA_RESETHAND
#define SA_INTERRUPT 0x20000000
/* dummy -- ignored */
#define SA_INTERRUPT 0x20000000
u
/* dummy -- ignored */
#define SA_RESTORER 0x04000000
#define SA_RESTORER 0x04000000
u
/*
/*
* sigaltstack controls
* sigaltstack controls
...
@@ -143,6 +144,16 @@ typedef struct sigaltstack {
...
@@ -143,6 +144,16 @@ typedef struct sigaltstack {
size_t
ss_size
;
size_t
ss_size
;
}
stack_t
;
}
stack_t
;
struct
pt_regs
;
struct
timespec
;
extern
int
do_signal
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
);
extern
int
do_signal32
(
sigset_t
*
oldset
,
struct
pt_regs
*
regs
);
extern
long
sys_rt_sigprocmask
(
int
how
,
sigset_t
*
set
,
sigset_t
*
oset
,
size_t
sigsetsize
);
extern
long
sys_rt_sigpending
(
sigset_t
*
set
,
size_t
sigsetsize
);
extern
long
sys_rt_sigtimedwait
(
const
sigset_t
*
uthese
,
siginfo_t
*
uinfo
,
const
struct
timespec
*
uts
,
size_t
sigsetsize
);
extern
long
sys_rt_sigqueueinfo
(
int
pid
,
int
sig
,
siginfo_t
*
uinfo
);
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
#endif
/* _ASMPPC64_SIGNAL_H */
#endif
/* _ASMPPC64_SIGNAL_H */
include/asm-ppc64/system.h
View file @
26fb218e
...
@@ -83,6 +83,7 @@ extern void show_regs(struct pt_regs * regs);
...
@@ -83,6 +83,7 @@ extern void show_regs(struct pt_regs * regs);
extern
void
flush_instruction_cache
(
void
);
extern
void
flush_instruction_cache
(
void
);
extern
int
_get_PVR
(
void
);
extern
int
_get_PVR
(
void
);
extern
void
giveup_fpu
(
struct
task_struct
*
);
extern
void
giveup_fpu
(
struct
task_struct
*
);
extern
void
disable_kernel_fp
(
void
);
extern
void
enable_kernel_fp
(
void
);
extern
void
enable_kernel_fp
(
void
);
extern
void
cvt_fd
(
float
*
from
,
double
*
to
,
unsigned
long
*
fpscr
);
extern
void
cvt_fd
(
float
*
from
,
double
*
to
,
unsigned
long
*
fpscr
);
extern
void
cvt_df
(
double
*
from
,
float
*
to
,
unsigned
long
*
fpscr
);
extern
void
cvt_df
(
double
*
from
,
float
*
to
,
unsigned
long
*
fpscr
);
...
...
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