Skip to content

Commit 04c1c3c

Browse files
Sui Jingfengbjorn-helgaas
authored andcommitted
PCI/VGA: Correct vga_str_to_iostate() io_state parameter type
Previously vga_str_to_iostate() took "int *io_state", but vga_arb_write() is the only caller and it passes "unsigned int *". Make the vga_str_to_iostate() parameter type "unsigned int *" to match. [bhelgaas: commit log] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sui Jingfeng <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]>
1 parent 06c2afb commit 04c1c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/vgaarb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static const char *vga_iostate_to_str(unsigned int iostate)
7777
return "none";
7878
}
7979

80-
static int vga_str_to_iostate(char *buf, int str_size, int *io_state)
80+
static int vga_str_to_iostate(char *buf, int str_size, unsigned int *io_state)
8181
{
8282
/* we could in theory hand out locks on IO and mem
8383
* separately to userspace but it can cause deadlocks */

0 commit comments

Comments
 (0)