From 3138d999ddb4d60f36b4daa3703c79f7a4bc3602 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 20 May 2017 09:04:23 +0200 Subject: [PATCH] remove compiler warnings --- arch/x86/kernel/processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/processor.c b/arch/x86/kernel/processor.c index 7b1cf0073..d0bd0f0a8 100644 --- a/arch/x86/kernel/processor.c +++ b/arch/x86/kernel/processor.c @@ -175,7 +175,7 @@ static uint32_t get_frequency_from_mbinfo(void) if (mb_info && (mb_info->flags & MULTIBOOT_INFO_CMDLINE)) { // search in the command line for cpu frequency - char* found = strstr((char*) mb_info->cmdline, "-freq"); + char* found = strstr((char*) (size_t)mb_info->cmdline, "-freq"); if (!found) return 0;