From patchwork Thu Jun 22 13:35: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: 9804495 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 674DD60386 for ; Thu, 22 Jun 2017 13:51:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55E50285FB for ; Thu, 22 Jun 2017 13:51:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A3AC286C4; Thu, 22 Jun 2017 13:51:22 +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 CBE59286BF for ; Thu, 22 Jun 2017 13:51:21 +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=+d6uNgLImBcytAP9fJjVHHRVEqVdWvdohO3gF+sZ1es=; b=phqjh1GVyw0YyP UWmZ4nR5OST+CrQ1LSvLRJU8kaGi8dBWbckPZc+e18TxaU5YN0QDsalnoeE7gSZtiKbCJEEx/hJux 9DreIhamA6qmCmTzEwdk0zxhdE8C3+gk4k4JOJPghdPmiyn8+FB2hCp3/5W4WB5sloSWnjl0Yo/vp 2X/3cBivwMXGakgwZXDVXlxpe3Iv+cVbqmgmrBiAImfHjJYzl54MPWnmpHvz4L65EjXghNx9Z2qtG dtQhJn4hEn5uLh0ZebYkgcj68DM+4dKx1qJpqwrl6iRBjQVF1PO15PQKVY97Rawn5YK8uKnKqdxhF D/8p5g+kl2cfs5SnxZOg==; 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 1dO2Vw-0001EQ-5Z; Thu, 22 Jun 2017 13:51:16 +0000 Received: from mail-dm3nam03on0080.outbound.protection.outlook.com ([104.47.41.80] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dO2Hm-0000ui-Ce for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2017 13:36:40 +0000 Received: from BLUPR0301CA0039.namprd03.prod.outlook.com (10.162.113.177) by BY2PR0301MB0597.namprd03.prod.outlook.com (10.160.124.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Thu, 22 Jun 2017 13:36:16 +0000 Received: from BL2FFO11FD035.protection.gbl (2a01:111:f400:7c09::196) by BLUPR0301CA0039.outlook.office365.com (2a01:111:e400:5259::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Thu, 22 Jun 2017 13:36:15 +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 BL2FFO11FD035.mail.protection.outlook.com (10.173.161.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1178.14 via Frontend Transport; Thu, 22 Jun 2017 13:36:15 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.86]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v5MDa5BD016929; Thu, 22 Jun 2017 06:36:10 -0700 From: To: , Subject: [PATCH 01/14] staging: fsl-mc: drop macros with possible side effects Date: Thu, 22 Jun 2017 16:35:47 +0300 Message-ID: <20170622133600.31694-2-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170622133600.31694-1-laurentiu.tudor@nxp.com> References: <20170622133600.31694-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131426121756328037; (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)(39410400002)(39380400002)(39840400002)(39860400002)(39850400002)(39400400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(104016004)(48376002)(50226002)(77096006)(2950100002)(8936002)(356003)(8676002)(81156014)(81166006)(86362001)(4326008)(305945005)(47776003)(5003940100001)(2906002)(2876002)(6666003)(1076002)(5660300001)(7416002)(498600001)(33646002)(39060400002)(86152003)(8656002)(54906002)(53936002)(85426001)(189998001)(106466001)(105606002)(50466002)(36756003)(38730400002)(50986999)(76176999)(56340200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0597; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD035; 1:09LRFq1oiYAvOu45BuwQo77zA9/TZgDc2oanWIcpboyvVZgkglFFDFfaWMM7emSeWTXTIXyYcB/nIoosYRReeQwFy2gXib3iCl8I34udFqmk+8WwKWF2aFChCIGxve6EVtmNa6nFfm4Q3eH8N27LEIqX28Pdaelt1dAMExY9J0LVOzCP149mXO5UcelGXxFTSmrWNu3KAf3TGKZLEWg8/JsY/uETq2Ci/8yOmCguKgVrb49HhHlFpuma1m/FLYP1PKnSb3JefAIuFNKPS47ZaSUTLVkB7A5OnneRBg8RStvQqNyNMObPxmBJLeFUgrq5YrAdNcC9KEIYLW1WvHEt8JosdFb6FuGo3Xj39bzsAxz+SL9VlgvOSAvBojW7UrfbORwZmT/OWFrDCUjylTXSvi0+ReysOxjYS9YD7z8TJ4YSWc1GWEOlNvzp/x+lR/Ayth9xKFNP+Wi1TlHvJHyi7W1b5lt9Kmmdd3MLm5dTgHLCQX4w4kCApBytFSttJemFVfHCG3gJ46hdL6ghxhwxnY8AEAUPpomBjHgXDEGSoIpq8u7pS7EwuvyEgJwCmWarptvZHL+kTvooVo9b/5Gdn+6tZH5+9rFyU4zaV5oClF7FS4tI/8WCpA5xEjRUsmLclfM28iNjB9x6Cvmb24DupLLNJA4C9OKBvPZ9vkhSgp3/FndNv4vwks7r5hE1pfN+zEhoyMycMRJURT3+FkGcdrUib4/B9WocWGpcSsG4bWj4d4eW6Yb5H5R9P1qVwVQOBMrvu3TftXkZi2/oXUyI1+KxnCBZ3lmaflH1/svxiRacUigpdlS/6+X7o9QcWgCtUrxyxQFGIgPnpBcY7crjcbT+VvakN2IWtY4Dhw7OSqCbpH5PjKoTYBvzARAocTVRLHIo3Tkq+DsHc1aWcWJqpQ== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ef09010-adae-486b-4065-08d4b973a7f5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR0301MB0597; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 3:xc+xy2JmZXjEnTGqJC8EALkCCxqnytenC5IKcf+3lLpJIa1GKPXvXzpxLtJmXrNvCjhxw7GdWyjqwc+w0oTr4fj5GiFkpu0EB+lqFWQfIx2VPP7BajCLkP4qfdmXmXJGFLuw8IXsLuexIzdf5YzYaKDXkZ+Q+w1OIaEuWsuQstEp0Qv8lvxfc9NIP55pqx4lcLS56hpSujsF1TwPSKhdNyEaul9VpdLHTQNRhItDUJCp3PRGoP321Yk8XboRI7O6eDYtrIuXv9GB4M6NpxIoMFBf6Om3/DJiMLJAc+ygDH/F2BdeNaPDnB/x6wjO+92x0WGEpyd092fPfvks5F0rDilIDMro/sW1es8wVBBa+FZalnFdHAkQQwrkCkZNxKKzOS8AruFznZ9pn0HxwxJzp6eZo65jzOX5FayjodBp4jyGko6bDnygd5Rjfw/12MgG X-MS-TrafficTypeDiagnostic: BY2PR0301MB0597: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 25:ZK4nz1OEuKd1f8eutaDs4UmAq9Sq8KL9NPQNHKW0kansUujrkpfPsC9anPvF0h5KYYBNxk4Cd2rcunVzqInZFdllvr1nqEfkDXMAwiCD0/zV56e+9kZXtNgfkklu1apEHb2hNR7r59x7eiiFx44lI81771U0IDmoGlxKsMO8BpcO+AWb4+zZsl9IFZouS53MGKlZBS2d6WW1Fj5rub/sK0jRj0jtCOBCTXc2aK3WO57tmtFi+xyajznZsIaWnL74f9XXi7tpCuzh2yNxDQG7xJG8aF75dA/uTkfZN23y2un9P3zsiIrqF4xwXZL/gtqsysW29E1OQu2rpuEajDHrXGudoTjMX92uF4+9xiiuAQ2hWoZb2Xncg1jHoBB6/8V1HlhIQfqJZf18kR6yY0FsFpBzGOPfTheyWR6N3mnij58y3Yg1cXRJUjBfoIMs9J697t7fYlZ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bkOi5EGRPyQmfjjv80U2BaxElST9qnVOn78sIexf3aRiZnsJ57eexG0OM1qLdyfLj5qnRXQFYeYJ4Jw5AYgGcmxxbqdqlIp9c65wmQoEvjqvXo00T0Jzwl1vG5UhMoZiw106LQFSHrC7nuIZvvOOF3pg5yok4TF9clFPkL1Pt5w== 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)(13018025)(8121501046)(5005006)(13016025)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123565025)(20161123559100)(20161123556025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0301MB0597; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0301MB0597; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 4:G56s1HloBsoVhPSo+tRO0bYgddHV2ryJI3XNQg93?= =?us-ascii?Q?0t5qyxP/aEgGC4f3g+gM4y9nspaFAWiyBuES1klwSoQNS9bP/KpaGFehNxmF?= =?us-ascii?Q?yqPzJnHmdyxqDbc8doJGyot9bRhCjj5stuzX6ArV19zwIyrw6U4fKJEkDfii?= =?us-ascii?Q?HTQL3E2m9E5oOR772siZC6tl71qxGAAvvHfZTt6vX+3smLEgC94sdi345nO8?= =?us-ascii?Q?MbXRWKXVE8VYwpLlvalcOpcKraJAH3Uu4+kx/w9owVWNPXHhokeTrGwf1e4B?= =?us-ascii?Q?Zt1maixNaFQ9bqWmvHIreS27auuCmoyqJtKPFw2fVqPCQ8xxB3W5aj07kr44?= =?us-ascii?Q?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yo1O7ng+3YFqxsC?= =?us-ascii?Q?puLJ5q7hKBYx/dW82jrtmYOe6xt446bpaeYedJY7?= X-Forefront-PRVS: 03468CBA43 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 23:D4x1I8aPucnKTHjLQ2YeFLLVKmo3JUW7a4aVbdp?= =?us-ascii?Q?6NyvCpjs+vfyxoFfdmfCk+k2unKHjaSXTRAEIuqtFAw2mcg5L/c6rATCXAQG?= =?us-ascii?Q?A5TRFUIi744C/IMEctj0RvfGw2GJGif8ht/lvmNO2teoj9K2rlTuFvcJiaqe?= =?us-ascii?Q?bzP08senfvG6vU8hFRTADihpl6zS84JPTeaXm/cE+C8Bsevsb58xTKkraz7G?= =?us-ascii?Q?MPeqmwHLTeXqJ0Np5eoSbcBUsaoZxVcJNJ0Ls+QqIa8RDtFcpHKh3X2sg+dr?= =?us-ascii?Q?yCveVEMzgV0vyjcoopHpUv13295PP7izBCpQAqJnLgfLxHidLkgpMLPwk+6N?= =?us-ascii?Q?DW+YrqmGW0t2QSed0M3tdd7V/eC+qGyG7J4aps0HBlWk8y14OM/kvu8qhznE?= =?us-ascii?Q?aLrhQ1/sR5k71v1OVCtk08PuBVDhcAKBaoFtajCDDtBMQ3THXhnZJ8d/zIG0?= =?us-ascii?Q?GhpJKKlr5waMx+PR/KFoUCiMLeejCD0JA8PcT1Xj5YMgEdmcQ8swIIohhJ3R?= =?us-ascii?Q?CdkBi2dC2zYWLWIXC6AYNBswd8DmOgZoTHCmG2pcKcygGi1vuSxKOhABFYPv?= =?us-ascii?Q?CKnML/GjUiG14HbjAnHCk49yzU6daDDs58ieAM4Wi4iMnQnC5dqDyo/tYbtc?= =?us-ascii?Q?hVr0P3BobTu0VZ2MZEpSkGi+D0nG0wwSEDDRG208nVl3sPK8n9KpMjIkfPP1?= =?us-ascii?Q?MvpCMoY1Vkh/md3GZR873lXZ0E3Eh4tOquMWkwekxWRwaA92TD8LJcqooPtD?= =?us-ascii?Q?VEF+wXpTAKAVctDiEOqpeLzMVkIq5e9TME5HHwrCM4SMWIC2WVjdO0LpU+V2?= =?us-ascii?Q?gp4LOb8xIiW13U7zorNMPqC0T0H7QAJpK8Zi2lxox+P5K/X6GFB0i1g12tDs?= =?us-ascii?Q?dpUq6bmhinyQJeRPaT5hjiG/kMmt8OR8zDnmReJNDpxuXNx4BzCUws86CwTj?= =?us-ascii?Q?ARm4EIRinhzbjIcfC2fuJO773mvv6aOnAHj/VRNjxOGTWSyLURhNP6lsRIGJ?= =?us-ascii?Q?hzXRBfOd5G+MLOi4OSPobRhfHnBq4912K8i88XaWTt7byQfGrtuhhEQPK895?= =?us-ascii?Q?doEoOZsItxhSdIckQAM/KEJzdavNC/cPFipsUOM/X7YWnTvS4X9td20guKbS?= =?us-ascii?Q?lfKnZKk08EzStAJ7qLnZClJgQx8YRTw2Rew08T5N3kzNLQEdreDtLd4CyGTU?= =?us-ascii?Q?ASsoDH/oWLplMLYRlQgssNe1rTdJxux08dQ84JDAYlTvvceMh7JQHs1Ikohi?= =?us-ascii?Q?ktBT4nGNsuaWNAlhBGmG2NhCxiX0Gb7TP4RV3VLHItbHOO6Wr6onYnl7V41i?= =?us-ascii?Q?X0Fpc/XjGkXAmLrR1GDeUvoWztJIcnxdBm1B+6+ne5K01?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 6:OUCHuQIQ87GFYr8V1rGxQXCl+C1IEyIr6M5M0rtl?= =?us-ascii?Q?/aI8uHAXCpmHYtMqNnlrmuh2tpfnq8gc1nAirzokReA/o/UoKqH6hcBRnqCu?= =?us-ascii?Q?sQ8YdSWK5q92a2dl8WunwbUopo9U0xZav9uc7E3eXC6lrfn7xbHtzdETx6IT?= =?us-ascii?Q?uEQ9Ms5CPEUgg02xRVcKcbFezA91ZbKlU20Pg8hS3CWaEV9F8/+dXjmR9jkH?= =?us-ascii?Q?FnjTFjOjc+0zMSw2BWctFi2BwAE2iWZ6+WKXYMO168Pg22x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FUHeLA6RDnQS5bGDPJLR/DGboAzKaLgwOZdF55uot7Tq/0kt4aB7M/Wryu1ftG+jq+xjoc5q5wtAIyIUDImOXvuRKqtDpL0n9snoe2N3xDBaBqcRoYkHT/tLbAx6BVkHyTbbYScTFAgMtqUGIbgHsdo8DoLjpc+8TeMZfWdGXPEnYFSFmEoacsYz+qpSzXB0LDyLpg+Dj0Hq7gDeJvk68VosY2XcKcYFuBQv7DOVMJVfgDYStFNnzpL12CJKyVgG26ZILBTNJKpUfLUm2059/R+7Tcu0fQFAhmjHS1y4mZG1Knmzcv/GanIwf+c= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 13:36:15.3364 (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: BY2PR0301MB0597 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170622_063638_632019_C1AD54CE X-CRM114-Status: UNSURE ( 5.95 ) 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: 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 turning them into real functions. Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dprc-driver.c | 15 +++++++++------ drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 18 ++++++++++-------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index d723c69..80c080f 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -21,15 +21,18 @@ #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) - struct dprc_child_objs { int child_count; struct dprc_obj_desc *child_array; }; +static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, + struct dprc_obj_desc *obj_desc) +{ + return !strcmp(mc_dev->obj_desc.type, obj_desc->type) && + mc_dev->obj_desc.id == obj_desc->id; +} + static int __fsl_mc_device_remove_if_not_in_mc(struct device *dev, void *data) { int i; @@ -45,7 +48,7 @@ static int __fsl_mc_device_remove_if_not_in_mc(struct device *dev, void *data) struct dprc_obj_desc *obj_desc = &objs->child_array[i]; if (strlen(obj_desc->type) != 0 && - FSL_MC_DEVICE_MATCH(mc_dev, obj_desc)) + fsl_mc_device_match(mc_dev, obj_desc)) break; } @@ -105,7 +108,7 @@ static int __fsl_mc_device_match(struct device *dev, void *data) struct dprc_obj_desc *obj_desc = data; struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); - return FSL_MC_DEVICE_MATCH(mc_dev, obj_desc); + return fsl_mc_device_match(mc_dev, obj_desc); } static struct fsl_mc_device *fsl_mc_device_lookup(struct dprc_obj_desc diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c index ce07096..9291847 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c @@ -17,10 +17,12 @@ #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) +static bool __must_check fsl_mc_is_allocatable(const char *obj_type) +{ + return 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 @@ -44,7 +46,7 @@ static int __must_check fsl_mc_resource_pool_add_device(struct fsl_mc_bus if (WARN_ON(pool_type < 0 || pool_type >= FSL_MC_NUM_POOL_TYPES)) goto out; - if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) + if (WARN_ON(!fsl_mc_is_allocatable(mc_dev->obj_desc.type))) goto out; if (WARN_ON(mc_dev->resource)) goto out; @@ -106,7 +108,7 @@ static int __must_check fsl_mc_resource_pool_remove_device(struct fsl_mc_device struct fsl_mc_resource *resource; int error = -EINVAL; - if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) + if (WARN_ON(!fsl_mc_is_allocatable(mc_dev->obj_desc.type))) goto out; resource = mc_dev->resource; @@ -586,7 +588,7 @@ static int fsl_mc_allocator_probe(struct fsl_mc_device *mc_dev) struct fsl_mc_bus *mc_bus; int error; - if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) + if (WARN_ON(!fsl_mc_is_allocatable(mc_dev->obj_desc.type))) return -EINVAL; mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); @@ -615,7 +617,7 @@ static int fsl_mc_allocator_remove(struct fsl_mc_device *mc_dev) { int error; - if (WARN_ON(!FSL_MC_IS_ALLOCATABLE(mc_dev->obj_desc.type))) + if (WARN_ON(!fsl_mc_is_allocatable(mc_dev->obj_desc.type))) return -EINVAL; if (mc_dev->resource) {