From patchwork Mon Feb 3 06:11:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 11362115 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEB311398 for ; Mon, 3 Feb 2020 06:24:25 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C399520658 for ; Mon, 3 Feb 2020 06:24:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b="g6Pb6f49" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C399520658 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyV9k-0002Mu-Uw for patchwork-qemu-devel@patchwork.kernel.org; Mon, 03 Feb 2020 01:24:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyUxo-0003ZF-3o for qemu-devel@nongnu.org; Mon, 03 Feb 2020 01:12:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyUxn-0003Qn-3A for qemu-devel@nongnu.org; Mon, 03 Feb 2020 01:12:04 -0500 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:57141 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iyUxm-0002go-OJ; Mon, 03 Feb 2020 01:12:03 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 489yBr3B2Qz9sT0; Mon, 3 Feb 2020 17:11:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1580710292; bh=3GGHmTqGUj7+eFhoY9ratQw9EQ42IJhrwzVbsH3efOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g6Pb6f49JYd64GRsKyz6m+88Xtzpd2TJm4Ya421El0OtgW9XLNIoXkFpWkiWBVS6I UvyzxuW23K0NP02XqRJE1MP1Yttihte+iMiILnduZk9NgpgwkaT6mEpNEOdpNfCOP8 G3GWbLUQPiGlbHS/f9/rixzalVQ0yhCCVsndn+eQ= From: David Gibson To: peter.maydell@linaro.org Subject: [PULL 23/35] target/ppc/cpu.h: Put macro parameter in parentheses Date: Mon, 3 Feb 2020 17:11:11 +1100 Message-Id: <20200203061123.59150-24-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200203061123.59150-1-david@gibson.dropbear.id.au> References: <20200203061123.59150-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: BALATON Zoltan Fix PPC_INPUT macro to work with more complex expressions by protecting its argument with parentheses. Signed-off-by: BALATON Zoltan Message-Id: <20200130021619.65FAB747871@zero.eik.bme.hu> Signed-off-by: David Gibson --- target/ppc/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 96aeea1934..3a1eb76004 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -180,7 +180,7 @@ enum { POWERPC_EXCP_TRAP = 0x40, }; -#define PPC_INPUT(env) (env->bus_model) +#define PPC_INPUT(env) ((env)->bus_model) /*****************************************************************************/ typedef struct opc_handler_t opc_handler_t;