From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLup-0007CA-CV for qemu-devel@nongnu.org; Thu, 05 May 2016 12:14:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayLud-0004Rg-Mj for qemu-devel@nongnu.org; Thu, 05 May 2016 12:14:09 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLuc-0004Dh-EH for qemu-devel@nongnu.org; Thu, 05 May 2016 12:14:03 -0400 Received: by mail-wm0-x235.google.com with SMTP id a17so35959822wme.0 for ; Thu, 05 May 2016 09:13:48 -0700 (PDT) Date: Thu, 5 May 2016 18:13:43 +0200 From: "Edgar E. Iglesias" Message-ID: <20160505161343.GD16305@toto> References: <1458631893-12812-1-git-send-email-sw@weilnetz.de> <20160406091619.GO16305@toto> <5704DE6D.1020902@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5704DE6D.1020902@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH] disas/microblaze: Add missing 'const' attributes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org On Wed, Apr 06, 2016 at 12:01:17PM +0200, Stefan Weil wrote: > Am 06.04.2016 um 11:16 schrieb Edgar E. Iglesias: > > On Tue, Mar 22, 2016 at 08:31:33AM +0100, Stefan Weil wrote: > >> Making the opcode list 'const' saves memory. > >> Some function arguments and local variables needed 'const', too. > >> > >> Add also 'static' to two local functions. > > Hi Stefan, > > > > Sorry for the delays... > > > > I gave this a try but it fails for me: > > > > /home/edgar/src/c/qemu/qemu/disas/microblaze.c:668:1: error: conflicting types for ‘get_field_special’ > > get_field_special(long instr, const struct op_code_struct *op) > > ^ > > /home/edgar/src/c/qemu/qemu/disas/microblaze.c:599:8: note: previous declaration of ‘get_field_special’ was here > > char * get_field_special (long instr, struct op_code_struct * op); > > ^ > > /home/edgar/src/c/qemu/qemu/disas/microblaze.c:733:1: error: conflicting types for ‘read_insn_microblaze’ > > read_insn_microblaze (bfd_vma memaddr, > > ^ > > /home/edgar/src/c/qemu/qemu/disas/microblaze.c:600:15: note: previous declaration of ‘read_insn_microblaze’ was here > > unsigned long read_insn_microblaze (bfd_vma memaddr, > > ^ > > make: *** [disas/microblaze.o] Error 1 > > make: *** Waiting for unfinished jobs.... > > > > > > It looks like if you may have forgotten to update or remove the function prototypes... > > > > Best regards, > > Edgar > > > > Hello Edgar, > > you are right, I forgot to remove the two function prototypes. > They are not needed, so removing is the best solution which > I also used in most of my working trees. Obviously I had > chosen a bad tree for sending the patch, sorry for that. > > Should I send an update, or can you just remove the two > conflicting prototypes? Hi Stefan, Nah, I've added a modified version of your patch into my mb-next branch. Thanks! Edgar