* [patch 1/5] acpi: toshiba_acpi.c fix sparse signedness mismatch warnings
@ 2008-09-22 21:37 akpm
2008-10-10 16:58 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-09-22 21:37 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, akpm, harvey.harrison, andi, hmh, mjg59
From: Harvey Harrison <harvey.harrison@gmail.com>
set_bit expects unsigned int, and we start with a u32 anyway.
drivers/acpi/toshiba_acpi.c:397:14: warning: incorrect type in argument 1 (different signedness)
drivers/acpi/toshiba_acpi.c:397:14: expected unsigned int [usertype] *word
drivers/acpi/toshiba_acpi.c:397:14: got int *<noident>
drivers/acpi/toshiba_acpi.c:399:14: warning: incorrect type in argument 1 (different signedness)
drivers/acpi/toshiba_acpi.c:399:14: expected unsigned int [usertype] *word
drivers/acpi/toshiba_acpi.c:399:14: got int *<noident>
drivers/acpi/toshiba_acpi.c:401:14: warning: incorrect type in argument 1 (different signedness)
drivers/acpi/toshiba_acpi.c:401:14: expected unsigned int [usertype] *word
drivers/acpi/toshiba_acpi.c:401:14: got int *<noident>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/acpi/toshiba_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/acpi/toshiba_acpi.c~acpi-toshiba_acpic-fix-sparse-signedness-mismatch-warnings drivers/acpi/toshiba_acpi.c
--- a/drivers/acpi/toshiba_acpi.c~acpi-toshiba_acpic-fix-sparse-signedness-mismatch-warnings
+++ a/drivers/acpi/toshiba_acpi.c
@@ -548,7 +548,7 @@ static unsigned long write_video(const c
hci_read1(HCI_VIDEO_OUT, &video_out, &hci_result);
if (hci_result == HCI_SUCCESS) {
- int new_video_out = video_out;
+ unsigned int new_video_out = video_out;
if (lcd_out != -1)
_set_bit(&new_video_out, HCI_VIDEO_OUT_LCD, lcd_out);
if (crt_out != -1)
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 1/5] acpi: toshiba_acpi.c fix sparse signedness mismatch warnings
2008-09-22 21:37 [patch 1/5] acpi: toshiba_acpi.c fix sparse signedness mismatch warnings akpm
@ 2008-10-10 16:58 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2008-10-10 16:58 UTC (permalink / raw)
To: akpm; +Cc: linux-acpi, harvey.harrison, andi, hmh, mjg59
applied.
thanks,
-Len
On Mon, 22 Sep 2008, akpm@linux-foundation.org wrote:
> From: Harvey Harrison <harvey.harrison@gmail.com>
>
> set_bit expects unsigned int, and we start with a u32 anyway.
> drivers/acpi/toshiba_acpi.c:397:14: warning: incorrect type in argument 1 (different signedness)
> drivers/acpi/toshiba_acpi.c:397:14: expected unsigned int [usertype] *word
> drivers/acpi/toshiba_acpi.c:397:14: got int *<noident>
> drivers/acpi/toshiba_acpi.c:399:14: warning: incorrect type in argument 1 (different signedness)
> drivers/acpi/toshiba_acpi.c:399:14: expected unsigned int [usertype] *word
> drivers/acpi/toshiba_acpi.c:399:14: got int *<noident>
> drivers/acpi/toshiba_acpi.c:401:14: warning: incorrect type in argument 1 (different signedness)
> drivers/acpi/toshiba_acpi.c:401:14: expected unsigned int [usertype] *word
> drivers/acpi/toshiba_acpi.c:401:14: got int *<noident>
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Cc: Matthew Garrett <mjg59@srcf.ucam.org>
> Cc: Andi Kleen <andi@firstfloor.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/acpi/toshiba_acpi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/acpi/toshiba_acpi.c~acpi-toshiba_acpic-fix-sparse-signedness-mismatch-warnings drivers/acpi/toshiba_acpi.c
> --- a/drivers/acpi/toshiba_acpi.c~acpi-toshiba_acpic-fix-sparse-signedness-mismatch-warnings
> +++ a/drivers/acpi/toshiba_acpi.c
> @@ -548,7 +548,7 @@ static unsigned long write_video(const c
>
> hci_read1(HCI_VIDEO_OUT, &video_out, &hci_result);
> if (hci_result == HCI_SUCCESS) {
> - int new_video_out = video_out;
> + unsigned int new_video_out = video_out;
> if (lcd_out != -1)
> _set_bit(&new_video_out, HCI_VIDEO_OUT_LCD, lcd_out);
> if (crt_out != -1)
> _
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-10 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 21:37 [patch 1/5] acpi: toshiba_acpi.c fix sparse signedness mismatch warnings akpm
2008-10-10 16:58 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox