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
Show 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);
EXPORT_SYMBOL
(
ucSystemType
);
#endif
#if !
__INLINE_BITOPS
#if !
defined(__INLINE_BITOPS)
EXPORT_SYMBOL
(
set_bit
);
EXPORT_SYMBOL
(
clear_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,
struct
task_struct
*
last
;
local_irq_save
(
s
);
#if CHECK_STACK
#if
def
CHECK_STACK
check_stack
(
prev
);
check_stack
(
new
);
#endif
...
...
arch/ppc/platforms/residual.c
View file @
9d0f5605
...
...
@@ -476,7 +476,9 @@ static void __init printlargepacket(PnP_TAG_PACKET * pkt, int size) {
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
)
{
printk
(
" No packets describing %s resources.
\n
"
,
cat
);
return
;
...
...
@@ -493,7 +495,7 @@ static void __init printpackets(PnP_TAG_PACKET * pkt, const char * cat) {
size
=
tag_small_count
(
pkt
->
S1_Pack
.
Tag
)
+
1
;
printsmallpacket
(
pkt
,
size
);
}
(
unsigned
char
*
)
pkt
+=
size
;
pkt
=
(
PnP_TAG_PACKET
*
)((
unsigned
char
*
)
pkt
+
size
)
;
}
while
(
pkt
->
S1_Pack
.
Tag
!=
END_TAG
);
}
...
...
arch/ppc/syslib/prom.c
View file @
9d0f5605
...
...
@@ -464,7 +464,7 @@ relocate_nodes(void)
struct
device_node
*
np
;
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
;
allnodes
=
(
struct
device_node
*
)(
base
+
4
);
...
...
arch/ppc/xmon/start.c
View file @
9d0f5605
...
...
@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sysrq.h>
#include <asm/xmon.h>
#include <asm/prom.h>
#include <asm/bootx.h>
#include <asm/machdep.h>
...
...
@@ -397,7 +398,7 @@ static unsigned char scc_inittab[] = {
};
void
xmon_init_scc
()
xmon_init_scc
(
void
)
{
if
(
_machine
==
_MACH_chrp
)
{
...
...
include/asm-ppc/hardirq.h
View file @
9d0f5605
...
...
@@ -5,6 +5,7 @@
#include <linux/config.h>
#include <linux/cache.h>
#include <linux/smp_lock.h>
#include <asm/irq.h>
/* 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
...
...
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,
#define LAST_CONTEXT 15
#define FIRST_CONTEXT 0
#elif
CONFIG_4xx
#elif
defined(CONFIG_4xx)
#define NO_CONTEXT 256
#define LAST_CONTEXT 255
#define FIRST_CONTEXT 1
...
...
include/asm-ppc/prep_nvram.h
View file @
9d0f5605
...
...
@@ -89,7 +89,7 @@ typedef enum _OSAREA_USAGE {
typedef
enum
_PM_MODE
{
Suspend
=
0x80
,
/* Part of state is in memory */
Normal
=
0x00
/* No power management in effect */
}
PMM
ode
;
}
PMM
ODE
;
typedef
struct
_HEADER
{
unsigned
short
Size
;
/* NVRAM size in K(1024) */
...
...
include/asm-ppc/processor.h
View file @
9d0f5605
...
...
@@ -691,8 +691,10 @@ struct thread_struct {
unsigned
long
fpscr_pad
;
/* fpr ... fpscr must be contiguous */
unsigned
long
fpscr
;
/* Floating point status */
#ifdef CONFIG_ALTIVEC
vector128
vr
[
32
];
/* Complete AltiVec set */
vector128
vscr
;
/* AltiVec status */
/* Complete AltiVec register set */
vector128
vr
[
32
]
__attribute
((
aligned
(
16
)));
/* AltiVec status */
vector128
vscr
__attribute
((
aligned
(
16
)));
unsigned
long
vrsave
;
#endif
/* CONFIG_ALTIVEC */
};
...
...
include/asm-ppc/semaphore.h
View file @
9d0f5605
...
...
@@ -29,12 +29,12 @@ struct semaphore {
*/
atomic_t
count
;
wait_queue_head_t
wait
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
long
__magic
;
#endif
};
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
# define __SEM_DEBUG_INIT(name) \
, (long)&(name).__magic
#else
...
...
@@ -59,7 +59,7 @@ static inline void sema_init (struct semaphore *sem, int val)
{
atomic_set
(
&
sem
->
count
,
val
);
init_waitqueue_head
(
&
sem
->
wait
);
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
sem
->
__magic
=
(
long
)
&
sem
->
__magic
;
#endif
}
...
...
@@ -80,7 +80,7 @@ extern void __up(struct semaphore * sem);
extern
inline
void
down
(
struct
semaphore
*
sem
)
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
#endif
might_sleep
();
...
...
@@ -97,7 +97,7 @@ extern inline int down_interruptible(struct semaphore * sem)
{
int
ret
=
0
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
#endif
might_sleep
();
...
...
@@ -112,7 +112,7 @@ extern inline int down_trylock(struct semaphore * sem)
{
int
ret
;
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
#endif
...
...
@@ -123,7 +123,7 @@ extern inline int down_trylock(struct semaphore * sem)
extern
inline
void
up
(
struct
semaphore
*
sem
)
{
#if WAITQUEUE_DEBUG
#if
def
WAITQUEUE_DEBUG
CHECK_MAGIC
(
sem
->
__magic
);
#endif
...
...
include/asm-ppc/types.h
View file @
9d0f5605
...
...
@@ -19,7 +19,7 @@ typedef unsigned long long __u64;
typedef
struct
{
__u32
u
[
4
];
}
__
attribute
((
aligned
(
16
)))
__
vector128
;
}
__vector128
;
/*
* 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