From patchwork Fri May 19 13:13:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9737193 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 472676020B for ; Fri, 19 May 2017 13:14:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41291288E8 for ; Fri, 19 May 2017 13:14:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3266628932; Fri, 19 May 2017 13:14:24 +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 9901E288E8 for ; Fri, 19 May 2017 13:14:23 +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=XLjw/R2wblezhA2I2UgJx6SzVN49oG8uhr+dPTeuLFU=; b=koTI7YUc86RnVv ISYcMK7KOVYqbO5bDiYbZcycLd1Syzn+UVCEpeUBjBnOrAbEViv9tjr46ZGG14N6MvLvwb1jqBCzx DRK5NbPykTr0aLmLi2fyjCnQTzZnE+ZDV6Cf3P/H8zbtKE9R9s6JennlOq7vEJzeOVLmWIcd32ISs LaRmfPpVDfPysggkuWxswkGKtOqm+xCNCtTGKuQ4PxTxpbA1xM2IjvhcfM+Hk4tCiP+8/leSUMxZb S8pXcbx40L4nnbNOtFsFMOFNmQAEWPAiBLyL5O4vavjBcahYZPhLHJs47viGDV93JqAer9OjoQPVg glzniEXIyaEFpY4p7kqQ==; 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 1dBhja-0006UM-E5; Fri, 19 May 2017 13:14:22 +0000 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBhjA-0005pw-Be for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2017 13:14:01 +0000 Received: from DM5PR03CA0060.namprd03.prod.outlook.com (10.174.189.177) by BY2PR03MB176.namprd03.prod.outlook.com (10.242.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 19 May 2017 13:13:34 +0000 Received: from BN1AFFO11FD038.protection.gbl (2a01:111:f400:7c10::138) 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.1101.14 via Frontend Transport; Fri, 19 May 2017 13:13:33 +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 BN1AFFO11FD038.mail.protection.outlook.com (10.58.52.242) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Fri, 19 May 2017 13:13:33 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.104]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v4JDDNNE016815; Fri, 19 May 2017 06:13:28 -0700 From: To: , Subject: [PATCH 1/3] staging: fsl-mc: fix several checkpath.pl warnings Date: Fri, 19 May 2017 16:13:03 +0300 Message-ID: <20170519131305.5068-2-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170519131305.5068-1-laurentiu.tudor@nxp.com> References: <20170519131305.5068-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131396732132558491; (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)(39450400003)(39840400002)(39380400002)(39860400002)(39850400002)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(305945005)(38730400002)(5003940100001)(33646002)(48376002)(39060400002)(77096006)(1076002)(81166006)(4326008)(69596002)(50986999)(105606002)(76176999)(5660300001)(86362001)(356003)(2906002)(8676002)(104016004)(50226002)(36756003)(106466001)(50466002)(85426001)(2876002)(47776003)(8936002)(86152003)(54906002)(8656002)(189998001)(7416002)(53936002)(2950100002)(498600001)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB176; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD038; 1:VVmPUi6M2kwUbb1mts4/yKsI87lFuohCEqvIQNpgLeS97BfnNNFWghrJzTzUrTtmeGysiDc3a1Yw+ZlSVNY0/J0lONQo6PiITrA1DVEre9a4JtfvVS7Fo98ICFvVZ+jxsq7/SM8uoyxjw0AvKHQyhRbR5kZHjaO77lDiBf7pij1bIflI6TCQDJwJK/z0ZG/TDVJtpqmmIXGATVrihR+303/kEFYtFL5YR+EJyVpE9XOkm0uQjFIpoqlrLUi6JyJhlZcvMdZmKouzKhhv9FLgTWS4X+smlTmMa6TryR45FJmRxOPQmSlQ7iL/q1Ry6MBCyZEYTY6yi/t5ieNJ1XHH56XyBwfPmKCMSumkdfDq4DknqmXdgeelpaYYR/h3WvFPn8oLKVKL97I0zwZA+1g4A5t8dL8Ymp1nJC2nP7Jzl1rcO+7CyDdhnbcO9pThCKe2a4b8JHGe5kd1d8IsIvOdV5b4Hh6UnDoCE1UtRdmC0hCyPJSSrw0rdevttj4OYiysZ1sV0u7xlOgX18bOwK1ZLBDON7n4FRNVmPqES1iaPzx4ChAC+mLBCXWNfYWJRj8CxpU6/SfZMm9ggcN1I/U2gx/FGBQ1cwSsDuvGI9MgIogoQnjtSg4A8K6ChZvQs30PwJXep7iE2AIQYjef0zdd42YwmcHSCTgKXNs8x5gQBCeUDCnmMODWNo0067+kZJN+r/Z7AWLCsmYv6/6OvpjtmleZPH1auVcymUOp+FiEVtw= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1f83bbe-a658-4bdd-869b-08d49eb8d9df X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR03MB176; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB176; 3:3uU4YZH5KyU+uLlWQeqJUCAaalp7HoTfZC20LlmuJb5hz0kwdfqjdUhA4JPdEMITR0pGv60KnM8cVXQWYarP8PZ8toV13XRvDBMb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0uOQ3A/hHGGGuVICzOp6nwCt/sUGZOqqZo2ZpKSv+Xi/++iWCiBGD9S3sUmr+XrAMAke7f2A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(5005006)(13017025)(13015025)(13018025)(13024025)(13023025)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(20161123559100)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153); SRVR:BY2PR03MB176; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB176; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB176; 4:u6+VCpv/1TMm4BrCaGJZas3/WLkP3ShuAyNLMWSrwtm?= =?us-ascii?Q?+dIc6alVimKolXtgaDbqp5WGZBHdUXWnzzpVwJskhKI2bK46QA7ELGoJq1nw?= =?us-ascii?Q?/6klwZkcLeV/FrLduE9URcAS2ZQY3az9553mlZdWGgC29/5xVjcf2zDnPcpv?= =?us-ascii?Q?IHhqYTlcAuHmmQ37lrB5yTulgJbyUYT1oMfUaSbO3Ms+HLQZeSoOZtMDC6+D?= =?us-ascii?Q?P2LzMLhQPxJKy1OOR3Hf+Ek+D6YFo2EaOzobvHvD7ALZ7FEojYar7ty2P/vo?= =?us-ascii?Q?iKD7Siwn95ibSZoBs5W03f3M9Z+F7ZYNxXs5hPyCFH/e6dIvZKXMZeKklCfN?= =?us-ascii?Q?tybfR/4rkcEFSKG1BBMLRrUfAF5L3AYKlHvqG/ssqnrH140yES7Z1mG0+LcW?= =?us-ascii?Q?hNSxdKOkryNEC4VRvDKMvncsVaVJ6rubl5vZ+FFsnO9KG40xDDfrMApOFeNN?= =?us-ascii?Q?KU1plYPB3qxpnml1viksrTQ4F4uwcanR7KM1wBDc0IswAKsZNyUGhqFupb/V?= =?us-ascii?Q?hN+fU/g+Vt/Kp4Dw+TzYFj/LBUj9v05uZRiNs8go60gJA2o/cgrGe2hAzUey?= =?us-ascii?Q?ZYPBNBCQS/fJadt9EVD8UpOIn8FjDPmVDkz5zDr9MZcSrokPBm5L/OdIP/rh?= =?us-ascii?Q?BCHAcyv8UHvVOFi3fTiD8Esd1HojqgSfN/XmD/mRyAX18Z0CEOftkocHcsWT?= =?us-ascii?Q?UzSks9XMD/G1Fwc9bYWRCHTc+wFFcLdjD3X8+PAA12jC+V1oeW1Q+W764Arl?= =?us-ascii?Q?zbm2HZjD9uQjAnKOVIX+cyck6M+Bxbc+kg93vhr7e1OE4LVTuNfRJCJLdCgt?= =?us-ascii?Q?SNRaznsSOuhWOBLsh+VP8FtKANAIdlafmOkAv0dcapTCk/GDH41oOvZsr8E0?= =?us-ascii?Q?hcLAzVWWKFuTw0h5mtEq4dqVKeFtQQsOr5ov0zkmEDQvFo+opGGvDeAIQaLm?= =?us-ascii?Q?xEmdXKY1lRcCWen7kNaLWBH0t0fDtQd0OIUxYUw=3D=3D?= X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB176; 23:NCJHXJPpFkoCW83jNQeVE98pXIDosJcJzTuyvQvd8M?= =?us-ascii?Q?teJhXi7Cz8+ybnvPvT9Ex8m8mH+zoh8DRHZbbnUQdh3A614+yKniJPraEeg0?= =?us-ascii?Q?u/hz7G45ZYrFDDTJkDJsu3oThS5kb3VQZFz/LyBaNHpWRjSF5M66aRzuHpTo?= =?us-ascii?Q?MR3zYjNsL+1rjsS2D14+e/0oJNS5TzW2UKx6dpYYoQaFtWptx/ljcd/6B53S?= =?us-ascii?Q?JxZzrhnmu0I2mWxZroJLYnjTl97GrTw0JrYsIegDw3JGCyJfsq0TAIm19inT?= =?us-ascii?Q?Fjcn33dSF4scNmHOfKT+LY1T7zqYY4M6Dcz0QAixFXVwfXAJ06aGQCOrSZHO?= =?us-ascii?Q?zZuhKMmrRl8Y54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Q?yL2sILrPAciX599vDRvkMnTCBPy3wZNt3svuGfenmemp7GGYdhyBc7U/iTY4?= =?us-ascii?Q?cpBlcwr848SM2lWuRurRI=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB176; 6:6K6aOB1YL+JglWqrWN+FsxhK+KGfMiL6FJPuMcYgwNNBCFtOJrvI/wnoLzCmkCwNCyHC0yNGXxH7aOd/5xRpwHdwqm+HAf5RGNCNLI2Fzvff6fxIFe+/Je0OfEHkwTg5YgknsowPiFuAysSS8DcT2W77OuoVgXSWmnF4i2BE0EXCkgsUW8N3brma3Vy/grsF3hZbEFObsb/tQV6RorE73hsOTPk4Ld6tbqo2Hvm414YwEgBBXkew6Oe1rXlD5TqDzm8wdeGe6xwO5GbBiNaYNUlxMaWXs3JELzZr13qWVo70YwEyt0rl4R1kTD1T8ZsBPbPE1WAiBwVZNYFUFjMmXkA2EG2UBL25cy1zDt/IbjGJMV/ER6v0XvONKDzi45VngHYEYaS5VhP17L3iOBHYMhwBDqDCjrkPQFtaeKIF6TjYhXe2KiCnHSgmCpZlnyT7x4FoKQXPUNfhyCE0uUNaiL7rGl2HUL01toZKsMevhd7NXN2gK+0f3RILNtzN7m+If1RWzq19fqkaNzyQ8jtGzg==; 5:m5xrrs+tUVdTRssucgSe7rNyaAkYLvaibKGNRzWVBaY+f3QnCzvcwnZ3sY8eIigokzvyDr0wae8aeAPIUCiAcqaFpg7BH4do+mBoBa3tHO8x7w+lA4STiG/R4kJCoScO4BNEbc+42NQJl1hJkmQOchS70BFEk/HRYE5HqDR/3bFZx6VkaCgPitfr6pXSRLnA; 24:1cWGGtxkdVlXhlYOaPTZtBd3nROScW/5qhhqK/TGLgeLC8/NddIeFGHXLqvCq/YDQhNlH4HuryN/5IoMEqDaZAC8p870NNs8eao2fi+2+KA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB176; 7:fJKDXGBYGv7jTxfawoeENdzab7CXqLVqwBI0XLzL2a1gWjZtzj4MsMGW2hEeRcztz+qiHxsyvaJCf0Te8JKrEAOetwSl9YPj64suQBjQ/B5Zdp+gQKrI/XNFbTALKRCuHrkHG5sX2HOA1GB8BFIbhPXZ8wYODtNDnJKbOKKeQrHQKS7X1q/OHS4zqfmkd+b3HLWsXnbpqBBuuYjIt4dcPHwy8qvZkpmOCOzqXgpqj/Jo6lEiVRhcrAkoozb/wgsDOFnV3D8IofALd/4bkxNequOu/uK7Vij7rsmxdXVCbU0mgvHlmDSFZjGUVN56CssuhQb7mKmBD2Fal95+1QWnTA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 13:13:33.0218 (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: BY2PR03MB176 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170519_061356_858845_E8F3D391 X-CRM114-Status: GOOD ( 11.68 ) 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, 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 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 Remove several unneeded #includes, forward declarations and fix several issues reported by checkpatch.pl --strict, such as: - kfree(NULL) is safe and check is not required - macro argument reuse may cause possible side effects - enclose macro params in parens to avoid precedence issues - coding style Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/dpbp-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dpmng-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dprc-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dprc-driver.c | 10 +++++++--- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 11 +++++++---- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 12 +++--------- drivers/staging/fsl-mc/bus/fsl-mc-msi.c | 1 + drivers/staging/fsl-mc/bus/fsl-mc-private.h | 1 - drivers/staging/fsl-mc/include/dprc.h | 3 --- drivers/staging/fsl-mc/include/mc-sys.h | 1 - 11 files changed, 22 insertions(+), 25 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpbp-cmd.h b/drivers/staging/fsl-mc/bus/dpbp-cmd.h index 8aa6545..5904836 100644 --- a/drivers/staging/fsl-mc/bus/dpbp-cmd.h +++ b/drivers/staging/fsl-mc/bus/dpbp-cmd.h @@ -40,7 +40,7 @@ #define DPBP_CMD_BASE_VERSION 1 #define DPBP_CMD_ID_OFFSET 4 -#define DPBP_CMD(id) ((id << DPBP_CMD_ID_OFFSET) | DPBP_CMD_BASE_VERSION) +#define DPBP_CMD(id) (((id) << DPBP_CMD_ID_OFFSET) | DPBP_CMD_BASE_VERSION) /* Command IDs */ #define DPBP_CMDID_CLOSE DPBP_CMD(0x800) diff --git a/drivers/staging/fsl-mc/bus/dpmcp-cmd.h b/drivers/staging/fsl-mc/bus/dpmcp-cmd.h index 384a13d..861b2a7 100644 --- a/drivers/staging/fsl-mc/bus/dpmcp-cmd.h +++ b/drivers/staging/fsl-mc/bus/dpmcp-cmd.h @@ -40,7 +40,7 @@ #define DPMCP_CMD_BASE_VERSION 1 #define DPMCP_CMD_ID_OFFSET 4 -#define DPMCP_CMD(id) ((id << DPMCP_CMD_ID_OFFSET) | DPMCP_CMD_BASE_VERSION) +#define DPMCP_CMD(id) (((id) << DPMCP_CMD_ID_OFFSET) | DPMCP_CMD_BASE_VERSION) /* Command IDs */ #define DPMCP_CMDID_CLOSE DPMCP_CMD(0x800) diff --git a/drivers/staging/fsl-mc/bus/dpmng-cmd.h b/drivers/staging/fsl-mc/bus/dpmng-cmd.h index cdddfb8..d1f04ac 100644 --- a/drivers/staging/fsl-mc/bus/dpmng-cmd.h +++ b/drivers/staging/fsl-mc/bus/dpmng-cmd.h @@ -44,7 +44,7 @@ #define DPMNG_CMD_BASE_VERSION 1 #define DPMNG_CMD_ID_OFFSET 4 -#define DPMNG_CMD(id) ((id << DPMNG_CMD_ID_OFFSET) | DPMNG_CMD_BASE_VERSION) +#define DPMNG_CMD(id) (((id) << DPMNG_CMD_ID_OFFSET) | DPMNG_CMD_BASE_VERSION) /* Command IDs */ #define DPMNG_CMDID_GET_VERSION DPMNG_CMD(0x831) diff --git a/drivers/staging/fsl-mc/bus/dprc-cmd.h b/drivers/staging/fsl-mc/bus/dprc-cmd.h index e9fdca4..d9b2dcd 100644 --- a/drivers/staging/fsl-mc/bus/dprc-cmd.h +++ b/drivers/staging/fsl-mc/bus/dprc-cmd.h @@ -48,7 +48,7 @@ #define DPRC_CMD_BASE_VERSION 1 #define DPRC_CMD_ID_OFFSET 4 -#define DPRC_CMD(id) ((id << DPRC_CMD_ID_OFFSET) | DPRC_CMD_BASE_VERSION) +#define DPRC_CMD(id) (((id) << DPRC_CMD_ID_OFFSET) | DPRC_CMD_BASE_VERSION) /* Command IDs */ #define DPRC_CMDID_CLOSE DPRC_CMD(0x800) 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 diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 50eb415..7b48ade 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -420,15 +420,11 @@ bool fsl_mc_is_root_dprc(struct device *dev) static void fsl_mc_device_release(struct device *dev) { struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); - struct fsl_mc_bus *mc_bus = NULL; kfree(mc_dev->regions); if (strcmp(mc_dev->obj_desc.type, "dprc") == 0) - mc_bus = to_fsl_mc_bus(mc_dev); - - if (mc_bus) - kfree(mc_bus); + kfree(to_fsl_mc_bus(mc_dev)); else kfree(mc_dev); } @@ -559,10 +555,8 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, error_cleanup_dev: kfree(mc_dev->regions); - if (mc_bus) - kfree(mc_bus); - else - kfree(mc_dev); + kfree(mc_bus); + kfree(mc_dev); return error; } diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c index b8b2c86..a92fa5a 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c @@ -17,6 +17,7 @@ #include #include #include "../include/mc-bus.h" +#include "../include/mc-cmd.h" #include "fsl-mc-private.h" /* diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-private.h b/drivers/staging/fsl-mc/bus/fsl-mc-private.h index 5c49c9d..01ef9329 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-private.h +++ b/drivers/staging/fsl-mc/bus/fsl-mc-private.h @@ -11,7 +11,6 @@ #define _FSL_MC_PRIVATE_H_ #include "../include/mc.h" -#include "../include/mc-bus.h" int __must_check fsl_mc_device_add(struct dprc_obj_desc *obj_desc, struct fsl_mc_io *mc_io, diff --git a/drivers/staging/fsl-mc/include/dprc.h b/drivers/staging/fsl-mc/include/dprc.h index dc985cc..2f4a7a7 100644 --- a/drivers/staging/fsl-mc/include/dprc.h +++ b/drivers/staging/fsl-mc/include/dprc.h @@ -33,8 +33,6 @@ #ifndef _FSL_DPRC_H #define _FSL_DPRC_H -#include "mc-cmd.h" - /* * Data Path Resource Container API * Contains DPRC API for managing and querying DPAA resources @@ -51,7 +49,6 @@ int dprc_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token); - /* IRQ */ /* IRQ index */ diff --git a/drivers/staging/fsl-mc/include/mc-sys.h b/drivers/staging/fsl-mc/include/mc-sys.h index dca7f90..b520370 100644 --- a/drivers/staging/fsl-mc/include/mc-sys.h +++ b/drivers/staging/fsl-mc/include/mc-sys.h @@ -46,7 +46,6 @@ */ #define FSL_MC_IO_ATOMIC_CONTEXT_PORTAL 0x0001 -struct fsl_mc_resource; struct mc_command; /**