From patchwork Thu Jun 8 14:28:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9775699 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F2CB2601C3 for ; Thu, 8 Jun 2017 14:39:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3083283C0 for ; Thu, 8 Jun 2017 14:39:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7C1528415; Thu, 8 Jun 2017 14:39:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42909283C0 for ; Thu, 8 Jun 2017 14:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y0jHaE3hn0FZ7y3X0Iu3PqKdznCRM0I06oKMZCkymN8=; b=IXfaJA4mem8Y7S eUWvJ7JjvkydKpd/hIrzK1fGwHyCNBLMNyRFnfWqJjRReFfacIEgI3Z2caaUHrx9waxCCgvCUiINM bCAT4pJzUjqAa1wvXSro6EKVvk6OiM4q7g47noDZ9NT8kZZ0KtcvNeDoDjTM5E7/JFbzYfOdBuY9A qRcviceh513ECbU8dvrZcjYVXySy0tdH6VwnT1q0cRLL+2g4/95qXrsQ61NMqtlpVdFJ+u2DNdRiZ dOvNfCdvtqypMwC+jjZHIti096xHrTYeU1JudNEO2Ya+EIOn0/IAfSK1CfGmIgfOJ+Ih1y2jZfcag 3J3BUkJj5/FRxmlyv7/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIyaU-0006oe-Js; Thu, 08 Jun 2017 14:39:02 +0000 Received: from mail-by2nam03on0065.outbound.protection.outlook.com ([104.47.42.65] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIyRM-00029E-71 for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2017 14:29:38 +0000 Received: from DM5PR03CA0060.namprd03.prod.outlook.com (10.174.189.177) by BN1PR03MB171.namprd03.prod.outlook.com (10.255.200.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 8 Jun 2017 14:29:14 +0000 Received: from BY2FFO11FD019.protection.gbl (2a01:111:f400:7c0c::167) by DM5PR03CA0060.outlook.office365.com (2603:10b6:4:3b::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 14:29:14 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD019.mail.protection.outlook.com (10.1.14.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 14:29:13 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v58ESv5U031552; Thu, 8 Jun 2017 07:29:09 -0700 From: To: , Subject: [PATCH v7 02/10] staging: fsl-mc: fix macros with possible side effects Date: Thu, 8 Jun 2017 17:28:47 +0300 Message-ID: <20170608142855.10455-3-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170608142855.10455-1-laurentiu.tudor@nxp.com> References: <20170608142855.10455-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131414057538968086; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39450400003)(39380400002)(39840400002)(39850400002)(39400400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(47776003)(305945005)(39060400002)(48376002)(5003940100001)(8936002)(50226002)(105606002)(8676002)(50466002)(2950100002)(5660300001)(189998001)(86362001)(1076002)(7416002)(2906002)(50986999)(76176999)(81166006)(85426001)(33646002)(77096006)(2876002)(106466001)(4326008)(498600001)(36756003)(38730400002)(104016004)(356003)(8656002)(86152003)(54906002)(53936002)(6666003)(56340200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB171; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD019; 1:y5QGO6bHDmXM73IvIYY1Dwtr+4Mj9Z6NkGqISOsAqaBPaYXoph3CPx3Tx+ORbaGKFN6VdZzcaYq89NdMH9dl/bePT9QLe2Kd7eU/syGB2MJ9O1cksBk80H0/pRjoMXlSnrK7WOBWg6nyRLUDOQ6YAerfbhAqqU16jx+x6x/mRUEk/5aQS0Ht3EYPqtt55/i4yuMpxg9RMByb7myLC8DWH/YSNu2xdgmlWfsq9BMxToJqGOPkJqCHMMxsezmZh6Nk/HuPng7cj5cfeScQGK5sUb/8d48exbDZc4THhk0ykUIMYCJFxaDAZsiNrNmOWc47S4T086TYZP5zDPvL4dfpAqdRYnVE031OPvi0OQb7bCdPpBJbVQoCfxZ1eP0x02/he8MO0uful7Efhgq3rWpnfxI0RVI9Gc7uxh50OZHKwF4qdnQU18QjUMg5XaBSqLbEQedbLJR0qFrtH1E56moHfoCaG2adP6kgZP/yWeBft1DoX2fBlB2SCUtXxdKy3MHwgx66zhQLeI5tpT8pZ6ZVF1QxIg0JNjX4lDnIKQQiTOpDFf7RbPeffffroGwt8pWkBhjzdvThb38r/SZ8Dx8wFAunT/MloDQipAmoFavEY1vztjE/9qV+WIU4TpL51wWM0Cri9NIRlfiss+ABIrHzYKKKgyJXte00m/MP9Ak8qolyj0ru5QYUGvarZEhPc0f1VroOE+zVN8VPFsAldw+HP8NlxeRW7fxKrTMksF4euqo= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PR03MB171: X-MS-Office365-Filtering-Correlation-Id: 7f101299-f4e8-45a1-edc8-08d4ae7abc7b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN1PR03MB171; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB171; 3:TWm2fyT5X9Y1hgnypqcZxT9AhQsh0/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T5iHKB5GBr+2BiUpe+6mnEXOn9Bg9wUSpSygBm/OKmjB/HCAs5a1ZVxDoTdVKRT6ASt0oveR+g/EPSxJ7f8sNxH3oOccGCGN7je++frJcWyJzy4XMRdsaF1zz8Tr+wdD4+GmxG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123561025)(20161123559100)(20161123565025)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR03MB171; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR03MB171; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB171; 4:K38T5kPFWdiUD71/wKSbvipTRpUBGTp5tksHsqbg9h6?= =?us-ascii?Q?Arvq8g4CsyA+gkGJK+R4K8bwiXkLbq02L8BIHIkpMbWB75IA62D0aMpx4PVX?= =?us-ascii?Q?rJyDNSl7NEpK9BSjMVs1eWJ9swxVM8GsgpfYQxk1MxEW2I0HFq9lvWC7wrQ2?= =?us-ascii?Q?CZwGQKsOrufSvy6Ciyc2BXl4235q0Qfbozn1vQ38Tfi1WAzDWrIOt0AMP1u2?= =?us-ascii?Q?glW4GRGIj++7CMtRISyESeinZg1ztzRCjBH7//xgtaQv3wS6d0FdzUdeRMSl?= =?us-ascii?Q?UYtHd+qzxB5ZD8/F8zWPGg01Kd3cVS5XVr9Uxsp8EHsnQFzxGEmiOOoe4f/G?= =?us-ascii?Q?CW6m5ZX8dR1H7ZaX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5tC1pgdL3AnpfqFtmb1LbDYJy2j9SezFNd9NAAtyHDy3TILXF3K360M1pA97xp0qldiRyggVxIw3LXDveVQGf0lzOQkDPXhabC9sAatgR9tkSL0rUUgESLAfxlrxBn+orANAbDnzFt8HK/rGzbRLsNSlBpKfsRHx+G0NUGmLKmLN1mD12vQbZgQjF8Y5u7knGuQsy4MmGVz0DyvooDnVA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 14:29:13.5692 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB171 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170608_072936_343553_9D74FBBF X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, marc.zyngier@arm.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, linux-arm-kernel@lists.infradead.org, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Laurentiu Tudor Several macros were triggering this checkpatch.pl warning: "Macro argument reuse '$arg' - possible side-effects?" Fix the warning by avoiding multiple macro argument use. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -no changes drivers/staging/fsl-mc/bus/dprc-driver.c | 10 +++++++--- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 11 +++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index d723c69..39c9a3b 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -21,9 +21,13 @@ #define FSL_MC_DPRC_DRIVER_NAME "fsl_mc_dprc" -#define FSL_MC_DEVICE_MATCH(_mc_dev, _obj_desc) \ - (strcmp((_mc_dev)->obj_desc.type, (_obj_desc)->type) == 0 && \ - (_mc_dev)->obj_desc.id == (_obj_desc)->id) +#define FSL_MC_DEVICE_MATCH(_mc_dev, _obj_desc) \ +({ \ + struct fsl_mc_device *__mc_dev = _mc_dev; \ + struct dprc_obj_desc *__obj_desc = _obj_desc; \ + (strcmp(__mc_dev->obj_desc.type, __obj_desc->type) == 0 && \ + __mc_dev->obj_desc.id == __obj_desc->id); \ +}) struct dprc_child_objs { int child_count; diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index ce07096..d3def40 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -17,10 +17,13 @@ #include "dpcon-cmd.h" #include "fsl-mc-private.h" -#define FSL_MC_IS_ALLOCATABLE(_obj_type) \ - (strcmp(_obj_type, "dpbp") == 0 || \ - strcmp(_obj_type, "dpmcp") == 0 || \ - strcmp(_obj_type, "dpcon") == 0) +#define FSL_MC_IS_ALLOCATABLE(_obj_type) \ +({ \ + const char *__obj_type = _obj_type; \ + (strcmp(__obj_type, "dpbp") == 0 || \ + strcmp(__obj_type, "dpmcp") == 0 || \ + strcmp(__obj_type, "dpcon") == 0); \ +}) /** * fsl_mc_resource_pool_add_device - add allocatable object to a resource