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
8432cdd0
Commit
8432cdd0
authored
Feb 03, 2004
by
Yoshinori Sato
Committed by
Linus Torvalds
Feb 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] H8/300 support update (2/3): compiler warnings
o gcc-3.4 warning fix.
parent
a899e3c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
arch/h8300/platform/h8300h/ints.c
arch/h8300/platform/h8300h/ints.c
+6
-7
arch/h8300/platform/h8s/ints.c
arch/h8300/platform/h8s/ints.c
+6
-7
No files found.
arch/h8300/platform/h8300h/ints.c
View file @
8432cdd0
...
@@ -140,8 +140,9 @@ int request_irq(unsigned int irq,
...
@@ -140,8 +140,9 @@ int request_irq(unsigned int irq,
if
(
use_kmalloc
)
if
(
use_kmalloc
)
irq_handle
=
(
irq_handler_t
*
)
kmalloc
(
sizeof
(
irq_handler_t
),
GFP_ATOMIC
);
irq_handle
=
(
irq_handler_t
*
)
kmalloc
(
sizeof
(
irq_handler_t
),
GFP_ATOMIC
);
else
{
else
{
irq_handle
=
alloc_bootmem
(
sizeof
(
irq_handler_t
));
/* use bootmem allocater */
(
unsigned
long
)
irq_handle
|=
0x80000000
;
/* bootmem allocater */
irq_handle
=
(
irq_handler_t
*
)
alloc_bootmem
(
sizeof
(
irq_handler_t
));
irq_handle
=
(
irq_handler_t
*
)((
unsigned
long
)
irq_handle
|
0x80000000
);
}
}
if
(
irq_handle
==
NULL
)
if
(
irq_handle
==
NULL
)
...
@@ -230,12 +231,10 @@ int show_interrupts(struct seq_file *p, void *v)
...
@@ -230,12 +231,10 @@ int show_interrupts(struct seq_file *p, void *v)
{
{
int
i
=
*
(
loff_t
*
)
v
;
int
i
=
*
(
loff_t
*
)
v
;
if
(
i
<
NR_IRQS
)
{
if
((
i
<
NR_IRQS
)
&&
(
irq_list
[
i
]
!=
NULL
))
{
if
(
irq_list
[
i
])
{
seq_printf
(
p
,
"%3d: %10u "
,
i
,
irq_list
[
i
]
->
count
);
seq_printf
(
p
,
"%3d: %10u "
,
i
,
irq_list
[
i
]
->
count
);
seq_printf
(
p
,
"%s
\n
"
,
irq_list
[
i
]
->
devname
);
seq_printf
(
p
,
"%s
\n
"
,
irq_list
[
i
]
->
devname
);
}
}
}
return
0
;
return
0
;
}
}
...
...
arch/h8300/platform/h8s/ints.c
View file @
8432cdd0
...
@@ -178,8 +178,9 @@ int request_irq(unsigned int irq,
...
@@ -178,8 +178,9 @@ int request_irq(unsigned int irq,
if
(
use_kmalloc
)
if
(
use_kmalloc
)
irq_handle
=
(
irq_handler_t
*
)
kmalloc
(
sizeof
(
irq_handler_t
),
GFP_ATOMIC
);
irq_handle
=
(
irq_handler_t
*
)
kmalloc
(
sizeof
(
irq_handler_t
),
GFP_ATOMIC
);
else
{
else
{
irq_handle
=
alloc_bootmem
(
sizeof
(
irq_handler_t
));
/* use bootmem allocater */
(
unsigned
long
)
irq_handle
|=
0x80000000
;
/* bootmem allocater */
irq_handle
=
(
irq_handler_t
*
)
alloc_bootmem
(
sizeof
(
irq_handler_t
));
irq_handle
=
(
irq_handler_t
*
)((
unsigned
long
)
irq_handle
|
0x80000000
);
}
}
if
(
irq_handle
==
NULL
)
if
(
irq_handle
==
NULL
)
...
@@ -282,12 +283,10 @@ int show_interrupts(struct seq_file *p, void *v)
...
@@ -282,12 +283,10 @@ int show_interrupts(struct seq_file *p, void *v)
{
{
int
i
=
*
(
loff_t
*
)
v
;
int
i
=
*
(
loff_t
*
)
v
;
if
(
i
<
NR_IRQS
)
{
if
((
i
<
NR_IRQS
)
&&
(
irq_list
[
i
]
!=
NULL
))
{
if
(
irq_list
[
i
])
{
seq_printf
(
p
,
"%3d: %10u "
,
i
,
irq_list
[
i
]
->
count
);
seq_printf
(
p
,
"%3d: %10u "
,
i
,
irq_list
[
i
]
->
count
);
seq_printf
(
p
,
"%s
\n
"
,
irq_list
[
i
]
->
devname
);
seq_printf
(
p
,
"%s
\n
"
,
irq_list
[
i
]
->
devname
);
}
}
}
return
0
;
return
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