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
9d0f5605
Commit
9d0f5605
authored
Jun 08, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Fix various minor problems pointed out by Linus' check program.
parent
d1fc7b62
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
24 additions
and
18 deletions
+24
-18
arch/ppc/kernel/ppc_ksyms.c
arch/ppc/kernel/ppc_ksyms.c
+1
-1
arch/ppc/kernel/process.c
arch/ppc/kernel/process.c
+1
-1
arch/ppc/platforms/residual.c
arch/ppc/platforms/residual.c
+4
-2
arch/ppc/syslib/prom.c
arch/ppc/syslib/prom.c
+1
-1
arch/ppc/xmon/start.c
arch/ppc/xmon/start.c
+2
-1
include/asm-ppc/hardirq.h
include/asm-ppc/hardirq.h
+1
-0
include/asm-ppc/mmu_context.h
include/asm-ppc/mmu_context.h
+1
-1
include/asm-ppc/prep_nvram.h
include/asm-ppc/prep_nvram.h
+1
-1
include/asm-ppc/processor.h
include/asm-ppc/processor.h
+4
-2
include/asm-ppc/semaphore.h
include/asm-ppc/semaphore.h
+7
-7
include/asm-ppc/types.h
include/asm-ppc/types.h
+1
-1
No files found.
arch/ppc/kernel/ppc_ksyms.c
View file @
9d0f5605
...
@@ -99,7 +99,7 @@ EXPORT_SYMBOL(_prep_type);
...
@@ -99,7 +99,7 @@ EXPORT_SYMBOL(_prep_type);
EXPORT_SYMBOL
(
ucSystemType
);
EXPORT_SYMBOL
(
ucSystemType
);
#endif
#endif
#if !
__INLINE_BITOPS
#if !
defined(__INLINE_BITOPS)
EXPORT_SYMBOL
(
set_bit
);
EXPORT_SYMBOL
(
set_bit
);
EXPORT_SYMBOL
(
clear_bit
);
EXPORT_SYMBOL
(
clear_bit
);
EXPORT_SYMBOL
(
change_bit
);
EXPORT_SYMBOL
(
change_bit
);
...
...
arch/ppc/kernel/process.c
View file @
9d0f5605
...
@@ -205,7 +205,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
...
@@ -205,7 +205,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
struct
task_struct
*
last
;
struct
task_struct
*
last
;
local_irq_save
(
s
);
local_irq_save
(
s
);
#if CHECK_STACK
#if
def
CHECK_STACK
check_stack
(
prev
);
check_stack
(
prev
);
check_stack
(
new
);
check_stack
(
new
);
#endif
#endif
...
...
arch/ppc/platforms/residual.c
View file @
9d0f5605
...
@@ -476,7 +476,9 @@ static void __init printlargepacket(PnP_TAG_PACKET * pkt, int size) {
...
@@ -476,7 +476,9 @@ static void __init printlargepacket(PnP_TAG_PACKET * pkt, int size) {
break
;
break
;
}
}
}
}
static
void
__init
printpackets
(
PnP_TAG_PACKET
*
pkt
,
const
char
*
cat
)
{
static
void
__init
printpackets
(
PnP_TAG_PACKET
*
pkt
,
const
char
*
cat
)
{
if
(
pkt
->
S1_Pack
.
Tag
==
END_TAG
)
{
if
(
pkt
->
S1_Pack
.
Tag
==
END_TAG
)
{
printk
(
" No packets describing %s resources.
\n
"
,
cat
);
printk
(
" No packets describing %s resources.
\n
"
,
cat
);
return
;
return
;
...
@@ -493,7 +495,7 @@ static void __init printpackets(PnP_TAG_PACKET * pkt, const char * cat) {
...
@@ -493,7 +495,7 @@ static void __init printpackets(PnP_TAG_PACKET * pkt, const char * cat) {
size
=
tag_small_count
(
pkt
->
S1_Pack
.
Tag
)
+
1
;
size
=
tag_small_count
(
pkt
->
S1_Pack
.
Tag
)
+
1
;
printsmallpacket
(
pkt
,
size
);
printsmallpacket
(
pkt
,
size
);
}
}
(
unsigned
char
*
)
pkt
+=
size
;
pkt
=
(
PnP_TAG_PACKET
*
)((
unsigned
char
*
)
pkt
+
size
)
;
}
while
(
pkt
->
S1_Pack
.
Tag
!=
END_TAG
);
}
while
(
pkt
->
S1_Pack
.
Tag
!=
END_TAG
);
}
}
...
...
arch/ppc/syslib/prom.c
View file @
9d0f5605
...
@@ -464,7 +464,7 @@ relocate_nodes(void)
...
@@ -464,7 +464,7 @@ relocate_nodes(void)
struct
device_node
*
np
;
struct
device_node
*
np
;
struct
property
*
pp
;
struct
property
*
pp
;
#define ADDBASE(x) (x = (
x)? ((typeof (x))((unsigned long)(x) + base)): 0
)
#define ADDBASE(x) (x = (
typeof (x))((x)? ((unsigned long)(x) + base): 0)
)
base
=
(
unsigned
long
)
boot_infos
+
boot_infos
->
deviceTreeOffset
;
base
=
(
unsigned
long
)
boot_infos
+
boot_infos
->
deviceTreeOffset
;
allnodes
=
(
struct
device_node
*
)(
base
+
4
);
allnodes
=
(
struct
device_node
*
)(
base
+
4
);
...
...
arch/ppc/xmon/start.c
View file @
9d0f5605
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/sysrq.h>
#include <linux/sysrq.h>
#include <asm/xmon.h>
#include <asm/prom.h>
#include <asm/prom.h>
#include <asm/bootx.h>
#include <asm/bootx.h>
#include <asm/machdep.h>
#include <asm/machdep.h>
...
@@ -397,7 +398,7 @@ static unsigned char scc_inittab[] = {
...
@@ -397,7 +398,7 @@ static unsigned char scc_inittab[] = {
};
};
void
void
xmon_init_scc
()
xmon_init_scc
(
void
)
{
{
if
(
_machine
==
_MACH_chrp
)
if
(
_machine
==
_MACH_chrp
)
{
{
...
...
include/asm-ppc/hardirq.h
View file @
9d0f5605
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include <linux/config.h>
#include <linux/config.h>
#include <linux/cache.h>
#include <linux/cache.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <asm/irq.h>
/* The __last_jiffy_stamp field is needed to ensure that no decrementer
/* The __last_jiffy_stamp field is needed to ensure that no decrementer
* interrupt is lost on SMP machines. Since on most CPUs it is in the same
* interrupt is lost on SMP machines. Since on most CPUs it is in the same
...
...
include/asm-ppc/mmu_context.h
View file @
9d0f5605
...
@@ -57,7 +57,7 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk,
...
@@ -57,7 +57,7 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk,
#define LAST_CONTEXT 15
#define LAST_CONTEXT 15
#define FIRST_CONTEXT 0
#define FIRST_CONTEXT 0
#elif
CONFIG_4xx
#elif
defined(CONFIG_4xx)
#define NO_CONTEXT 256
#define NO_CONTEXT 256
#define LAST_CONTEXT 255
#define LAST_CONTEXT 255
#define FIRST_CONTEXT 1
#define FIRST_CONTEXT 1
...
...
include/asm-ppc/prep_nvram.h
View file @
9d0f5605
...
@@ -89,7 +89,7 @@ typedef enum _OSAREA_USAGE {
...
@@ -89,7 +89,7 @@ typedef enum _OSAREA_USAGE {
typedef
enum
_PM_MODE
{
typedef
enum
_PM_MODE
{
Suspend
=
0x80
,
/* Part of state is in memory */
Suspend
=
0x80
,
/* Part of state is in memory */
Normal
=
0x00
/* No power management in effect */
Normal
=
0x00
/* No power management in effect */
}
PMM
ode
;
}
PMM
ODE
;
typedef
struct
_HEADER
{
typedef
struct
_HEADER
{
unsigned
short
Size
;
/* NVRAM size in K(1024) */
unsigned
short
Size
;
/* NVRAM size in K(1024) */
...
...
include/asm-ppc/processor.h
View file @
9d0f5605
...
@@ -691,8 +691,10 @@ struct thread_struct {
...
@@ -691,8 +691,10 @@ struct thread_struct {
unsigned
long
fpscr_pad
;
/* fpr ... fpscr must be contiguous */
unsigned
long
fpscr_pad
;
/* fpr ... fpscr must be contiguous */
unsigned
long
fpscr
;
/* Floating point status */
unsigned
long
fpscr
;
/* Floating point status */
#ifdef CONFIG_ALTIVEC
#ifdef CONFIG_ALTIVEC
vector128
vr
[
32
];
/* Complete AltiVec set */
/* Complete AltiVec register set */
vector128
vscr
;
/* AltiVec status */
vector128
vr
[
32
]
__attribute
((
aligned
(
16
)));
/* AltiVec status */
vector128
vscr
__attribute
((
aligned
(
16
)));
unsigned
long
vrsave
;
unsigned
long
vrsave
;
#endif
/* CONFIG_ALTIVEC */
#endif
/* CONFIG_ALTIVEC */
};
};
...
...
include/asm-ppc/semaphore.h
View file @
9d0f5605
...
@@ -29,12 +29,12 @@ struct semaphore {
...
@@ -29,12 +29,12 @@ struct semaphore {
*/
*/
atomic_t
count
;
atomic_t
count
;
wait_queue_head_t
wait
;
wait_queue_head_t
wait
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
long
__magic
;
long
__magic
;
#endif
#endif
};
};
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
# define __SEM_DEBUG_INIT(name) \
# define __SEM_DEBUG_INIT(name) \
, (long)&(name).__magic
, (long)&(name).__magic
#else
#else
...
@@ -59,7 +59,7 @@ static inline void sema_init (struct semaphore *sem, int val)
...
@@ -59,7 +59,7 @@ static inline void sema_init (struct semaphore *sem, int val)
{
{
atomic_set
(
&
sem
->
count
,
val
);
atomic_set
(
&
sem
->
count
,
val
);
init_waitqueue_head
(
&
sem
->
wait
);
init_waitqueue_head
(
&
sem
->
wait
);
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
sem
->
__magic
=
(
long
)
&
sem
->
__magic
;
sem
->
__magic
=
(
long
)
&
sem
->
__magic
;
#endif
#endif
}
}
...
@@ -80,7 +80,7 @@ extern void __up(struct semaphore * sem);
...
@@ -80,7 +80,7 @@ extern void __up(struct semaphore * sem);
extern
inline
void
down
(
struct
semaphore
*
sem
)
extern
inline
void
down
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
might_sleep
();
might_sleep
();
...
@@ -97,7 +97,7 @@ extern inline int down_interruptible(struct semaphore * sem)
...
@@ -97,7 +97,7 @@ extern inline int down_interruptible(struct semaphore * sem)
{
{
int
ret
=
0
;
int
ret
=
0
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
might_sleep
();
might_sleep
();
...
@@ -112,7 +112,7 @@ extern inline int down_trylock(struct semaphore * sem)
...
@@ -112,7 +112,7 @@ extern inline int down_trylock(struct semaphore * sem)
{
{
int
ret
;
int
ret
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
...
@@ -123,7 +123,7 @@ extern inline int down_trylock(struct semaphore * sem)
...
@@ -123,7 +123,7 @@ extern inline int down_trylock(struct semaphore * sem)
extern
inline
void
up
(
struct
semaphore
*
sem
)
extern
inline
void
up
(
struct
semaphore
*
sem
)
{
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
CHECK_MAGIC
(
sem
->
__magic
);
#endif
#endif
...
...
include/asm-ppc/types.h
View file @
9d0f5605
...
@@ -19,7 +19,7 @@ typedef unsigned long long __u64;
...
@@ -19,7 +19,7 @@ typedef unsigned long long __u64;
typedef
struct
{
typedef
struct
{
__u32
u
[
4
];
__u32
u
[
4
];
}
__
attribute
((
aligned
(
16
)))
__
vector128
;
}
__vector128
;
/*
/*
* XXX allowed outside of __KERNEL__ for now, until glibc gets
* XXX allowed outside of __KERNEL__ for now, until glibc gets
...
...
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