Message ID | 20170531105852.22304-3-laurentiu.tudor@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 16866602BF for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3508281E1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D801A283C9; Wed, 31 May 2017 11:00:00 +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=ham 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 35F6C281E1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:00 +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=pDX92KbJsm4TZoNNjDKwUQdGLGUziWbkOY1oWj00lWc=; b=lgFYeudrbevv2A S6ztu0Ly0IJ8pdVQMVIVMwNOho0VZxvnuwRrEATDLExe3+fD8vO1TcdBIVVRo+Fc4lA/xFwd6GJ1O YK6wWgKIhzm93guz7YFS2857QerKM2eAjPf1m0gFpYJ7FBwlvxDcCAtoU4WtmSIx46uL3IgXkSG/g DeVH+QmR+iRJ1N7aeh9cMsbp6NGEs1V2yMwtJWoG7gnpAkColQfa9WO01xqlIeg/8yxDuOMN0xkcf jPQVit2R3be6DE+EvbN1WSlxCQis3pnZOtlDE36Dp3RlSdJoUm1kNZl9p+f4NdK88RUG2nejaFnYk J05ef8AfjjpfnYXOCfRg==; 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 1dG1M6-0002Uw-Rg; Wed, 31 May 2017 10:59:58 +0000 Received: from mail-sn1nam02on0051.outbound.protection.outlook.com ([104.47.36.51] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dG1Lo-0001wo-5u for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 10:59:42 +0000 Received: from BN6PR03CA0031.namprd03.prod.outlook.com (10.175.124.17) by MWHPR03MB2573.namprd03.prod.outlook.com (10.168.206.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 10:59:17 +0000 Received: from BL2FFO11FD012.protection.gbl (2a01:111:f400:7c09::183) by BN6PR03CA0031.outlook.office365.com (2603:10b6:404:10c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 10:59:17 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD012.mail.protection.outlook.com (10.173.161.18) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Wed, 31 May 2017 10:59:16 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.177]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v4VAwtex004429; Wed, 31 May 2017 03:59:11 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org>, <stuyoder@gmail.com> Subject: [PATCH 02/10] staging: fsl-mc: fix macros with possible side effects Date: Wed, 31 May 2017 13:58:44 +0300 Message-ID: <20170531105852.22304-3-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170531105852.22304-1-laurentiu.tudor@nxp.com> References: <20170531105852.22304-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131407019565611319; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39840400002)(39850400002)(39400400002)(39410400002)(39860400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(86152003)(104016004)(76176999)(5003940100001)(305945005)(6666003)(38730400002)(2950100002)(105606002)(2876002)(2906002)(86362001)(77096006)(53936002)(4326008)(8656002)(106466001)(54906002)(50986999)(39060400002)(36756003)(50466002)(498600001)(48376002)(8676002)(5660300001)(85426001)(33646002)(81166006)(50226002)(7416002)(47776003)(8936002)(1076002)(189998001)(356003)(97736004)(56340200001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2573; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD012; 1:Ii23556XCMdU6aTyOnvOHiq3UYNIERSQddtfavtV64S6cP1/qcsYyVemRI8NSZ7Wpkm1ju1c9xq2oSFYfqI1yzHKArYPBJHk694rOAevoIxiXrwvbXruq5GH25HuK2uY8v8I3DBlm8gVTjUNm1VrLn+iJHo/LJFdmOOHWjLYZBZzTZRRy/9ySw1yQqy1KAaG//NHYa1zHu7ZHsAsRz2IAo95ouBY/WNwg6qMkspc1ObXl26WXAmSG5uqBy2A45udNa8zJRy8BqgNecaMB3vPXJhzyKeUkW8CllFY9jLaLNr5rD4goaEYs3LLvJHCeSieKgdFCbI73glMEHEB8J56iQkwu567VEzwQkFoIGYx98V/97L4boZ41NrMsgwnI1tsH9fDLtBci/DaZNdJwZhheiKlDCypKP32LE8vEzZ0kou43wCH+K/R7V5YReHpmfNo8VX/4nKEuVTlZnTf6LzGlEL1H3eE5SUdYFwfV4U5hfcPKjyKdX7KHX6vzICtY0oHI2jAW4l5reR8sSjkr2QVvCtpdK6tieaum/1FEy0wmNCWah9pwh3CG0caUjvYMMCCBP025yY5S+VLf7FyGyYEEzqp2HHxUSvJP80PZdcIkjkCMaguM+6Je9YwpOUDi/8CjN5a1lJE7WHrtVKEQ/WgF6wUtldcP6FPRHSrAQM9B+k= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR03MB2573: X-MS-Office365-Filtering-Correlation-Id: c515def9-bd1b-49a9-7937-08d4a81414aa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:MWHPR03MB2573; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2573; 3:0+6WcDu9KIgB3uj0Atmxm1F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8q+P72K4JSgC85totxdESIIsYc2FsHvemg1dayyi6xgh7Psx2dSTT/h09upG5m/fXBYbutd4qvABPxEO5Gsw9O0Xwwa5oCPPSySw2HD0IdeC8xMdBUtRrXRj5ncKRL8vf1eQkelUN4ul/dhUweBj6ooYRZHQY8g== X-Microsoft-Antispam-PRVS: <MWHPR03MB2573605A16B85C74A39CFA95ECF10@MWHPR03MB2573.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100); SRVR:MWHPR03MB2573; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2573; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2573; 4:ezyXmr2DkhjrQbsWtD0kJIgHU/R3v27DHOk1hPYdG7/2gdD/LlHGTdAuhjkqxSEiQm7DzfnYl3w/YMqtfwn0stGfR5dvzCpFN5RB3NiR2CP7Aqjc71UXl/Ll1zCnjqagM+POtMF37kfMREgTXWfV4mmOUg1Bd89ulwD/lMhIu9tjf5gn8g69iOCTlqydy5SMbsUfeP+TWeAKwmHg+VvKEyaz6ZX2RdHNYpXkx/qfu3uwa/gcpczuKggfY5sOglp8KvZdPNNosx/pujn33jIo9plkAujtqEsU2z5T/LTN41QmQ2ACM9Jmy1rBPcxPL3jDM09NoLEJPFW5TpPlg8jsGVKShc7fa5o3qMbRKAkt5Tq06sZFXQgAi2WNScR8T50fFRTB4ovz5iAMSz30DqUc401rjW5ecBV5WSiRzVn1EHWtdUCUT2S1P9mfBteFoJhbZ4QPkmiJUAjLI/G0ug0xYR29nG0pQWaG4t03dr0iYcLFYzh0/LspyqAfAyZoMekYjoeqFzYLW1huuhuWh4JqOA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60SFYeCsnM/bcgIB?= =?us-ascii?Q?ElDGISGQv6ub3trEu+5YO+X9I2uOqb/qZF1gKW3X8cIcsQ/xH0yoZteN0TJm?= =?us-ascii?Q?kczifF62Rqw38YpqTD6c4cuIInxDwUOx0CYHrHs5hpjtRm591uRGTfKJNE6L?= =?us-ascii?Q?smZe4hqfbUSyV9FQwrnHxvgDejlCu8rIqgVnoUgJE6Kg7JwcvC+Ki6tRrjOh?= =?us-ascii?Q?htuqfejd4mds3V4fkkQHjIoIzS4/rZN7KyH5xuU19Gy/pyKy34h87LpbgGpp?= =?us-ascii?Q?ei+Juih+lM0MaMW9ksOzPr5bmUoedGO9hZd7wv69FK1YeGWgx9+JFXwJM9PA?= =?us-ascii?Q?QzoEU4ro6QrhX31rAyyvKsrVpVkulhek8MlOHx2SymcQL19IWZGWpmHZiNi5?= =?us-ascii?Q?3DvqH6RLH5ER8veAU63PrRvIBCn9go1VFp1yCShBcqLTM+2GuvEkmfq1nR3X?= =?us-ascii?Q?Hfh/cBOVYEp6hjfiB2NgtgqH+gyPpDgkIMz2uzQge7BIbZU13W0NdFe7IFxV?= =?us-ascii?Q?AqVNg7cs+dd3c6MIDJsLxImMNEV3UM0q/tWdmt0jO0yoKQHcejGFO3K3/MSC?= =?us-ascii?Q?kGMG2E7+7F2Zj0lNYuSoTBEx+K96kNMZK3s03flffCYHf0b/ELeprilvweL7?= =?us-ascii?Q?qFKeV4YZiD9S2txTMs9KbnOfYfH2SZlJZM56NmPyY6W+H4FbbaH7viTsIFXq?= =?us-ascii?Q?LEjLgPrpNEMOx9KF+/Y/kQBCNHCgmhKpjgcLdamk0HglUP5zGrCLevo6GPau?= =?us-ascii?Q?YqBHJ61AbL6neLiG6QS0abg1Zfbhgv3Fpm7KHGjdz0PttAC+RFXuTFjMN6hi?= =?us-ascii?Q?GPpxVomrwfeCFdUmYAAtX0P6b/jBRRYD8lnD+K9LPVU?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2573; 6:FFaafeSf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Anh6WWxnbLo0PW3i9+wiozFac/D978qng8er88Dwd8P6H2cZiKd29q8hdr4ofV6qdCrK6SWJuwwvDVP7qDimvBBfYYSvKZ0G7Era1Lbf3cix8tBz0G2HFREPJJ50fvRVhZfhMYDvW2JkKh4uO119xRx4pa0JoJuDNeH5g4hsQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 10:59:16.2803 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2573 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_035940_478859_969C72D1 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devel@driverdev.osuosl.org, arnd@arndb.de, ruxandra.radulescu@nxp.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 <laurentiu.tudor@nxp.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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