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
a1676f3b
Commit
a1676f3b
authored
Mar 21, 2002
by
William Stinson
Committed by
David S. Miller
Mar 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove explicit initialization of static vars to zero
in Sparc ports.
parent
47f29261
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
36 additions
and
36 deletions
+36
-36
arch/sparc/kernel/ioport.c
arch/sparc/kernel/ioport.c
+1
-1
arch/sparc/kernel/irq.c
arch/sparc/kernel/irq.c
+1
-1
arch/sparc/kernel/pcic.c
arch/sparc/kernel/pcic.c
+1
-1
arch/sparc/kernel/process.c
arch/sparc/kernel/process.c
+3
-3
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4d_smp.c
+1
-1
arch/sparc/kernel/time.c
arch/sparc/kernel/time.c
+1
-1
arch/sparc/kernel/traps.c
arch/sparc/kernel/traps.c
+1
-1
arch/sparc/mm/iommu.c
arch/sparc/mm/iommu.c
+1
-1
arch/sparc/mm/srmmu.c
arch/sparc/mm/srmmu.c
+1
-1
arch/sparc64/kernel/ioctl32.c
arch/sparc64/kernel/ioctl32.c
+6
-6
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+1
-1
arch/sparc64/kernel/pci_sabre.c
arch/sparc64/kernel/pci_sabre.c
+1
-1
arch/sparc64/kernel/power.c
arch/sparc64/kernel/power.c
+2
-2
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+3
-3
arch/sparc64/kernel/sys_sparc.c
arch/sparc64/kernel/sys_sparc.c
+3
-3
arch/sparc64/kernel/sys_sunos32.c
arch/sparc64/kernel/sys_sunos32.c
+1
-1
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+2
-2
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+1
-1
arch/sparc64/prom/bootstr.c
arch/sparc64/prom/bootstr.c
+2
-2
arch/sparc64/prom/misc.c
arch/sparc64/prom/misc.c
+1
-1
arch/sparc64/solaris/misc.c
arch/sparc64/solaris/misc.c
+1
-1
arch/sparc64/solaris/timod.c
arch/sparc64/solaris/timod.c
+1
-1
No files found.
arch/sparc/kernel/ioport.c
View file @
a1676f3b
...
...
@@ -161,7 +161,7 @@ void sbus_iounmap(unsigned long addr, unsigned long size)
static
void
*
_sparc_alloc_io
(
unsigned
int
busno
,
unsigned
long
phys
,
unsigned
long
size
,
char
*
name
)
{
static
int
printed_full
=
0
;
static
int
printed_full
;
struct
xresource
*
xres
;
struct
resource
*
res
;
char
*
tack
;
...
...
arch/sparc/kernel/irq.c
View file @
a1676f3b
...
...
@@ -91,7 +91,7 @@ void (*init_timers)(void (*)(int, void *,struct pt_regs *)) =
*/
#define MAX_STATIC_ALLOC 4
struct
irqaction
static_irqaction
[
MAX_STATIC_ALLOC
];
int
static_irq_count
=
0
;
int
static_irq_count
;
struct
irqaction
*
irq_action
[
NR_IRQS
+
1
]
=
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
...
...
arch/sparc/kernel/pcic.c
View file @
a1676f3b
...
...
@@ -185,7 +185,7 @@ static struct pcic_sn2list pcic_known_sysnames[] = {
* Only one PCIC per IIep,
* and since we have no SMP IIep, only one per system.
*/
static
int
pcic0_up
=
0
;
static
int
pcic0_up
;
static
struct
linux_pcic
pcic0
;
unsigned
int
pcic_regs
;
...
...
arch/sparc/kernel/process.c
View file @
a1676f3b
...
...
@@ -63,9 +63,9 @@ int cpu_idle(void)
for
(;;)
{
if
(
ARCH_SUN4C_SUN4
)
{
static
int
count
=
HZ
;
static
unsigned
long
last_jiffies
=
0
;
static
unsigned
long
last_faults
=
0
;
static
unsigned
long
fps
=
0
;
static
unsigned
long
last_jiffies
;
static
unsigned
long
last_faults
;
static
unsigned
long
fps
;
unsigned
long
now
;
unsigned
long
faults
;
unsigned
long
flags
;
...
...
arch/sparc/kernel/sun4d_smp.c
View file @
a1676f3b
...
...
@@ -47,7 +47,7 @@ extern struct task_struct *current_set[NR_CPUS];
extern
volatile
int
smp_processors_ready
;
extern
unsigned
long
cpu_present_map
;
extern
int
smp_num_cpus
;
static
int
smp_highest_cpu
=
0
;
static
int
smp_highest_cpu
;
extern
int
smp_threads_ready
;
extern
unsigned
char
mid_xlate
[
NR_CPUS
];
extern
volatile
unsigned
long
cpu_callin_map
[
NR_CPUS
];
...
...
arch/sparc/kernel/time.c
View file @
a1676f3b
...
...
@@ -115,7 +115,7 @@ __volatile__ unsigned int *master_l10_limit;
void
timer_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
/* last time the cmos clock got updated */
static
long
last_rtc_update
=
0
;
static
long
last_rtc_update
;
#ifndef CONFIG_SMP
if
(
!
user_mode
(
regs
))
...
...
arch/sparc/kernel/traps.c
View file @
a1676f3b
...
...
@@ -272,7 +272,7 @@ extern int do_mathemu(struct pt_regs *, struct task_struct *);
void
do_fpe_trap
(
struct
pt_regs
*
regs
,
unsigned
long
pc
,
unsigned
long
npc
,
unsigned
long
psr
)
{
static
int
calls
=
0
;
static
int
calls
;
siginfo_t
info
;
unsigned
long
fsr
;
int
ret
=
0
;
...
...
arch/sparc/mm/iommu.c
View file @
a1676f3b
...
...
@@ -25,7 +25,7 @@ extern int viking_mxcc_present;
BTFIXUPDEF_CALL
(
void
,
flush_page_for_dma
,
unsigned
long
)
#define flush_page_for_dma(page) BTFIXUP_CALL(flush_page_for_dma)(page)
extern
int
flush_page_for_dma_global
;
static
int
viking_flush
=
0
;
static
int
viking_flush
;
/* viking.S */
extern
void
viking_flush_page
(
unsigned
long
page
);
extern
void
viking_mxcc_flush_page
(
unsigned
long
page
);
...
...
arch/sparc/mm/srmmu.c
View file @
a1676f3b
...
...
@@ -1739,7 +1739,7 @@ static void __init init_tsunami(void)
static
void
__init
poke_viking
(
void
)
{
unsigned
long
mreg
=
srmmu_get_mmureg
();
static
int
smp_catch
=
0
;
static
int
smp_catch
;
if
(
viking_mxcc_present
)
{
unsigned
long
mxcc_control
=
mxcc_get_creg
();
...
...
arch/sparc64/kernel/ioctl32.c
View file @
a1676f3b
...
...
@@ -1061,7 +1061,7 @@ static int fb_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
break
;
default:
do
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"%s: Unknown fb ioctl cmd fd(%d) "
"cmd(%08x) arg(%08lx)
\n
"
,
...
...
@@ -1714,7 +1714,7 @@ static int ppp_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
break
;
default:
do
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"ppp_ioctl: Unknown cmd fd(%d) "
"cmd(%08x) arg(%08x)
\n
"
,
...
...
@@ -1824,7 +1824,7 @@ static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg)
break
;
default:
do
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"mt_ioctl: Unknown cmd fd(%d) "
"cmd(%08x) arg(%08x)
\n
"
,
...
...
@@ -1942,7 +1942,7 @@ static int cdrom_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long ar
break
;
default:
do
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"cdrom_ioctl: Unknown cmd fd(%d) "
"cmd(%08x) arg(%08x)
\n
"
,
...
...
@@ -2029,7 +2029,7 @@ static int loop_status(unsigned int fd, unsigned int cmd, unsigned long arg)
}
break
;
default:
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"%s: Unknown loop ioctl cmd, fd(%d) "
"cmd(%08x) arg(%08lx)
\n
"
,
...
...
@@ -4882,7 +4882,7 @@ asmlinkage int sys32_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
handler
=
(
void
*
)(
long
)
t
->
handler
;
error
=
handler
(
fd
,
cmd
,
arg
,
filp
);
}
else
{
static
int
count
=
0
;
static
int
count
;
if
(
++
count
<=
20
)
printk
(
"sys32_ioctl(%s:%d): Unknown cmd fd(%d) "
"cmd(%08x) arg(%08x)
\n
"
,
...
...
arch/sparc64/kernel/irq.c
View file @
a1676f3b
...
...
@@ -82,7 +82,7 @@ unsigned char dma_sync_reg_table_entry = 0;
*/
#define MAX_STATIC_ALLOC 4
static
struct
irqaction
static_irqaction
[
MAX_STATIC_ALLOC
];
static
int
static_irq_count
=
0
;
static
int
static_irq_count
;
/* This is exported so that fast IRQ handlers can get at it... -DaveM */
struct
irqaction
*
irq_action
[
NR_IRQS
+
1
]
=
{
...
...
arch/sparc64/kernel/pci_sabre.c
View file @
a1676f3b
...
...
@@ -1159,7 +1159,7 @@ static struct pcidev_cookie *alloc_bridge_cookie(struct pci_pbm_info *pbm)
static
void
__init
sabre_scan_bus
(
struct
pci_controller_info
*
p
)
{
static
int
once
=
0
;
static
int
once
;
struct
pci_bus
*
sabre_bus
;
struct
pci_pbm_info
*
pbm
;
struct
pcidev_cookie
*
cookie
;
...
...
arch/sparc64/kernel/power.c
View file @
a1676f3b
...
...
@@ -22,7 +22,7 @@ static unsigned long power_reg = 0UL;
#define POWER_COURTESY_OFF (1 << 1)
static
DECLARE_WAIT_QUEUE_HEAD
(
powerd_wait
);
static
int
button_pressed
=
0
;
static
int
button_pressed
;
static
void
power_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
...
...
@@ -81,7 +81,7 @@ void __init power_init(void)
{
struct
linux_ebus
*
ebus
;
struct
linux_ebus_device
*
edev
;
static
int
invoked
=
0
;
static
int
invoked
;
if
(
invoked
)
return
;
...
...
arch/sparc64/kernel/smp.c
View file @
a1676f3b
...
...
@@ -46,8 +46,8 @@ volatile int __cpu_number_map[NR_CPUS] __attribute__ ((aligned (SMP_CACHE_BYTES
volatile
int
__cpu_logical_map
[
NR_CPUS
]
__attribute__
((
aligned
(
SMP_CACHE_BYTES
)));
/* Please don't make this stuff initdata!!! --DaveM */
static
unsigned
char
boot_cpu_id
=
0
;
static
int
smp_activated
=
0
;
static
unsigned
char
boot_cpu_id
;
static
int
smp_activated
;
/* Kernel spinlock */
spinlock_t
kernel_flag
__cacheline_aligned_in_smp
=
SPIN_LOCK_UNLOCKED
;
...
...
@@ -898,7 +898,7 @@ extern unsigned long xcall_capture;
static
atomic_t
smp_capture_depth
=
ATOMIC_INIT
(
0
);
static
atomic_t
smp_capture_registry
=
ATOMIC_INIT
(
0
);
static
unsigned
long
penguins_are_doing_time
=
0
;
static
unsigned
long
penguins_are_doing_time
;
void
smp_capture
(
void
)
{
...
...
arch/sparc64/kernel/sys_sparc.c
View file @
a1676f3b
...
...
@@ -380,7 +380,7 @@ asmlinkage unsigned long sys64_mremap(unsigned long addr,
asmlinkage
unsigned
long
c_sys_nis_syscall
(
struct
pt_regs
*
regs
)
{
static
int
count
=
0
;
static
int
count
;
/* Don't make the system unusable, if someone goes stuck */
if
(
count
++
>
5
)
...
...
@@ -450,7 +450,7 @@ asmlinkage int sys_aplib(void)
asmlinkage
int
solaris_syscall
(
struct
pt_regs
*
regs
)
{
static
int
count
=
0
;
static
int
count
;
regs
->
tpc
=
regs
->
tnpc
;
regs
->
tnpc
+=
4
;
...
...
@@ -470,7 +470,7 @@ asmlinkage int solaris_syscall(struct pt_regs *regs)
#ifndef CONFIG_SUNOS_EMUL
asmlinkage
int
sunos_syscall
(
struct
pt_regs
*
regs
)
{
static
int
count
=
0
;
static
int
count
;
regs
->
tpc
=
regs
->
tnpc
;
regs
->
tnpc
+=
4
;
...
...
arch/sparc64/kernel/sys_sunos32.c
View file @
a1676f3b
...
...
@@ -210,7 +210,7 @@ static char *vstrings[] = {
asmlinkage
void
sunos_vadvise
(
u32
strategy
)
{
static
int
count
=
0
;
static
int
count
;
/* I wanna see who uses this... */
if
(
count
++
<
5
)
...
...
arch/sparc64/kernel/time.c
View file @
a1676f3b
...
...
@@ -62,7 +62,7 @@ unsigned long timer_ticks_per_usec_quotient;
static
__inline__
void
timer_check_rtc
(
void
)
{
/* last time the cmos clock got updated */
static
long
last_rtc_update
=
0
;
static
long
last_rtc_update
;
/* Determine when to update the Mostek clock. */
if
((
time_status
&
STA_UNSYNC
)
==
0
&&
...
...
@@ -410,7 +410,7 @@ void __init clock_probe(void)
struct
linux_ebus
*
ebus
=
NULL
;
struct
isa_bridge
*
isa_br
=
NULL
;
#endif
static
int
invoked
=
0
;
static
int
invoked
;
if
(
invoked
)
return
;
...
...
arch/sparc64/mm/init.c
View file @
a1676f3b
...
...
@@ -699,7 +699,7 @@ static void __flush_nucleus_vptes(void)
}
}
static
int
prom_ditlb_set
=
0
;
static
int
prom_ditlb_set
;
struct
prom_tlb_entry
{
int
tlb_ent
;
unsigned
long
tlb_tag
;
...
...
arch/sparc64/prom/bootstr.c
View file @
a1676f3b
...
...
@@ -11,8 +11,8 @@
#define BARG_LEN 256
int
bootstr_len
=
BARG_LEN
;
static
int
bootstr_valid
=
0
;
static
char
bootstr_buf
[
BARG_LEN
]
=
{
0
}
;
static
int
bootstr_valid
;
static
char
bootstr_buf
[
BARG_LEN
];
char
*
__init
prom_getbootargs
(
void
)
...
...
arch/sparc64/prom/misc.c
View file @
a1676f3b
...
...
@@ -171,7 +171,7 @@ int prom_get_mmu_ihandle(void)
static
int
prom_get_memory_ihandle
(
void
)
{
static
int
memory_ihandle_cache
=
0
;
static
int
memory_ihandle_cache
;
int
node
,
ret
;
if
(
memory_ihandle_cache
!=
0
)
...
...
arch/sparc64/solaris/misc.c
View file @
a1676f3b
...
...
@@ -57,7 +57,7 @@ static u32 do_solaris_mmap(u32 addr, u32 len, u32 prot, u32 flags, u32 fd, u64 o
/* Do we need it here? */
set_personality
(
PER_SVR4
);
if
(
flags
&
MAP_NORESERVE
)
{
static
int
cnt
=
0
;
static
int
cnt
;
if
(
cnt
<
5
)
{
printk
(
"%s: unimplemented Solaris MAP_NORESERVE mmap() flag
\n
"
,
...
...
arch/sparc64/solaris/timod.c
View file @
a1676f3b
...
...
@@ -46,7 +46,7 @@ static char * page = NULL ;
void
*
mykmalloc
(
size_t
s
,
int
gfp
)
{
static
char
*
page
;
static
size_t
free
=
0
;
static
size_t
free
;
void
*
r
;
s
=
((
s
+
63
)
&
~
63
);
if
(
s
>
PAGE_SIZE
)
{
...
...
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