Received: from eggs.gnu.org ([2001:4830:134:3::10]:40874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZId9-0008Qs-In for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:08:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZId6-0005mi-7L for qemu-devel@nongnu.org; Tue, 08 Sep 2015 09:08:11 -0400 From: Markus Armbruster References: <1441621264-23812-1-git-send-email-pbonzini@redhat.com> <87h9n5p3ou.fsf@blackfin.pond.sub.org> <1829681137.27366603.1441716293187.JavaMail.zimbra@redhat.com> Date: Tue, 08 Sep 2015 15:08:05 +0200 In-Reply-To: <1829681137.27366603.1441716293187.JavaMail.zimbra@redhat.com> (Paolo Bonzini's message of "Tue, 8 Sep 2015 08:44:53 -0400 (EDT)") Message-ID: <87io7lkqiy.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2] add macro file for coccinelle List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-trivial@nongnu.org, peter maydell , qemu-devel@nongnu.org Paolo Bonzini writes: >> > +/* From qemu/compiler.h */ >> > +#define QEMU_GNUC_PREREQ(maj, min) 1 >> > +#define QEMU_NORETURN __attribute__ ((__noreturn__)) >> > +#define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) >> > +#define QEMU_SENTINEL __attribute__((sentinel)) >> > +#define QEMU_ARTIFICIAL __attribute__((always_inline, artificial)) >> > +#define QEMU_PACKED __attribute__((gcc_struct, packed)) >> > + >> > +#define cat(x,y) x ## y >> > +#define cat2(x,y) cat(x,y) >> >> Why not reuse glue()? > > Because the duplication is already in compiler.h, which should > use glue() instead of cat2(). Separate patch IMHO, but thanks > for noticing. :-) The separate patch is commit 24134c4 :)