From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 06/15] lib/x86/smp: Fix compiler warnings Date: Tue, 17 Dec 2013 11:33:22 +0100 Message-ID: <52B02872.9060402@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , kvm , Arthur Chunqi Li To: Jan Kiszka Return-path: Received: from mail-ee0-f42.google.com ([74.125.83.42]:48333 "EHLO mail-ee0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750901Ab3LQKd0 (ORCPT ); Tue, 17 Dec 2013 05:33:26 -0500 Received: by mail-ee0-f42.google.com with SMTP id e53so2774911eek.29 for ; Tue, 17 Dec 2013 02:33:25 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 16/12/2013 10:57, Jan Kiszka ha scritto: > Add missing include of desc.h for prototypes of setup_idt and > set_idt_entry and cast away the volatile of ipi_data - it's not volatile > while we run the IPI handler. Why not? Paolo > Signed-off-by: Jan Kiszka > --- > lib/x86/smp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/x86/smp.c b/lib/x86/smp.c > index d4c8106..75ac081 100644 > --- a/lib/x86/smp.c > +++ b/lib/x86/smp.c > @@ -3,6 +3,7 @@ > #include "smp.h" > #include "apic.h" > #include "fwcfg.h" > +#include "desc.h" > > #define IPI_VECTOR 0x20 > > @@ -18,7 +19,7 @@ static int _cpu_count; > static __attribute__((used)) void ipi() > { > void (*function)(void *data) = ipi_function; > - void *data = ipi_data; > + void *data = (void *)ipi_data; > bool wait = ipi_wait; > > if (!wait) { >