Received: from eggs.gnu.org ([2001:4830:134:3::10]:54899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcPyB-000277-QZ for qemu-devel@nongnu.org; Wed, 24 Aug 2016 00:39:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcPyA-000178-Pd for qemu-devel@nongnu.org; Wed, 24 Aug 2016 00:39:19 -0400 Sender: Paolo Bonzini References: <1472012279-20581-1-git-send-email-rth@twiddle.net> <20160824043048.109542.39014@ex-std-node742.prod.rhcloud.com> From: Paolo Bonzini Message-ID: <535318f1-8178-714d-7487-5aeb0661280b@redhat.com> Date: Wed, 24 Aug 2016 06:38:10 +0200 MIME-Version: 1.0 In-Reply-To: <20160824043048.109542.39014@ex-std-node742.prod.rhcloud.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/7] Improve buffer_is_zero List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, rth@twiddle.net Cc: peter.maydell@linaro.org, famz@redhat.com, vijay.kilari@gmail.com, qemu-arm@nongnu.org On 24/08/2016 06:30, no-reply@patchew.org wrote: > ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt > #44: FILE: util/cutils.c:289: > + __asm volatile("vmovdqu -0x80(%1),%0\n\t" Other errors can be ignored, but please use __asm__ __volatile__ here or just __asm__ (I don't think volatile is useful). Also, perhaps move this function to its own file since you're rewriting it anyway? Thanks, Paolo > ERROR: externs should be avoided in .c files > #44: FILE: util/cutils.c:289: > + __asm volatile("vmovdqu -0x80(%1),%0\n\t" > > ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt > #72: FILE: util/cutils.c:317: > + __asm volatile("vmovdqu -0x40(%1),%0\n\t" > > ERROR: externs should be avoided in .c files > #72: FILE: util/cutils.c:317: > + __asm volatile("vmovdqu -0x40(%1),%0\n\t" > > ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt > #98: FILE: util/cutils.c:343: > + __asm volatile("movdqu -0x40(%4),%0\n\t" > > ERROR: externs should be avoided in .c files > #98: FILE: util/cutils.c:343: > + __asm volatile("movdqu -0x40(%4),%0\n\t" > > ERROR: Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt > #132: FILE: util/cutils.c:374: > + __asm volatile("movdqu -0x40(%4),%0\n\t" > > ERROR: externs should be avoided in .c files > #132: FILE: util/cutils.c:374: > + __asm volatile("movdqu -0x40(%4),%0\n\t"