lkml.org 
[lkml]   [2012]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86: edd: fix wrong return type for read_mbr_sig() function
Date
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
---
arch/x86/boot/edd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/boot/edd.c b/arch/x86/boot/edd.c
index c501a5b..7209b2d 100644
--- a/arch/x86/boot/edd.c
+++ b/arch/x86/boot/edd.c
@@ -36,7 +36,7 @@ static int read_mbr(u8 devno, void *buf)
return -(oreg.eflags & X86_EFLAGS_CF); /* 0 or -1 */
}

-static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)
+static int read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)
{
int sector_size;
char *mbrbuf_ptr, *mbrbuf_end;
--
1.7.7.4


\
 
 \ /
  Last update: 2012-01-03 01:27    [W:0.044 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site