Message ID | 20170207141530.12979-6-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 AB13A6047A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C27128422 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90D2128426; Tue, 7 Feb 2017 14:16:56 +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 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 51FA028422 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 14:16:56 +0000 (UTC) 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 1cb6Zh-0003e3-JK; Tue, 07 Feb 2017 14:16:53 +0000 Received: from mail-co1nam03on0089.outbound.protection.outlook.com ([104.47.40.89] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb6Yo-0002XG-FC for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 14:16:02 +0000 Received: from BY2PR03CA045.namprd03.prod.outlook.com (10.141.249.18) by CY4PR03MB2951.namprd03.prod.outlook.com (10.175.116.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 7 Feb 2017 14:15:36 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::151) by BY2PR03CA045.outlook.office365.com (2a01:111:e400:2c5d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Tue, 7 Feb 2017 14:15:35 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.888.7 via Frontend Transport; Tue, 7 Feb 2017 14:15:35 +0000 Received: from rhuath.am.freescale.net (rhuath.am.freescale.net [10.81.117.102]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v17EFXHa023812; Tue, 7 Feb 2017 07:15:34 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH 05/10] staging: fsl-mc: remove slab cache for mc devices Date: Tue, 7 Feb 2017 08:15:25 -0600 Message-ID: <20170207141530.12979-6-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207141530.12979-1-laurentiu.tudor@nxp.com> References: <20170207141530.12979-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309505355992621; (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)(7916002)(336005)(39840400002)(39860400002)(39450400003)(39380400002)(39400400002)(39410400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50226002)(8936002)(81156014)(68736007)(48376002)(50466002)(2351001)(106466001)(105606002)(36756003)(47776003)(305945005)(5003940100001)(53936002)(189998001)(2906002)(110136004)(97736004)(92566002)(626004)(5660300001)(6916009)(2950100002)(33646002)(4326007)(6666003)(356003)(38730400002)(1076002)(81166006)(2876002)(7416002)(77096006)(104016004)(86362001)(8676002)(76176999)(85426001)(8656002)(54906002)(50986999)(86152003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2951; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD021; 1:J80W6JR2gkhULkorhNkqPjSnxOBX8nqAeNJ3upQhh0zcLhjCj3KyKzjPGvQET/Ep7NtNDH6diKs7LSEEMNjb6pcdyllZlUkzoNvT+O1x9aZ9d3JprEVsj3e9P4o9t5e6RWn5O+DmRIeBbDIBuDCcnF8O8LI4H/dwQNKcirOAN5QJo46mpW+fU4814/JtGWg1D7kWnrYmOhRVgW4rzBStZFplpMkECFlDjduB3SjD0kks8CjdvrsLe+u/EDnSjnRCel7xMkgTIxN+BaShWj9FaagdU+gtlWI2VP9CgwnWfkRYunZY177ajBO88heogk/pzEwh/O4h6gbpxkkO25CvT/ZKvVcezhIgd8u1/FpkxU/yCbfDp0gXAtoyBWh2eQEKyJoJSvNHr+vhLXZL+Tr3dLDGlglCMDIwRhx2CzKMXg7LqYDe7maIW2ikjCi8MgIbrnCgLyZ9HpJuIeuPT9Un86wppojxdo1VUnHqvUFgMGETNkHMgf7La9ulTSIqeky2lYAG+zUHOzzc6g/iZjGdTnWLgcfQUfDXcyNimHGAEv/R4FIGUKz3guXUsleX+ZWOW2AEUczSUhEIk8JJGP/6VhzgJEcaG53A5heOYW0zHvUe8R+g/1ZBnw7inMMc0elyMLPMo4FQwYOJxOEqjMpi1AsFtfor4Ogzr90gi7bGr68WIyJzBn7OacR4GTHSGLJV+SQHATCNlndVNGSxdAfHmmqZyLwwuEP2RYXsrJMDGSMKTkyFOPuDUecbNI07Mvwgj9wTmu5H2Or84yNg9LCDzQ== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2faa376f-aa1e-41a0-4e2d-08d44f63c8d7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR03MB2951; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2951; 3:kvLujyLZXiVv9CJvGT2NmgPrgITA6YldTgmcCUDjoQex9QI7u+/BpYvgbxzxNU4YdQmGjxdNus5f+wNxLr1/rmwyzBmoRp4ZnFS1pxMEtFVo0ohuPonuVHcU6uBFxbIL3aKKmldUxEs+hRR/jbq9W3MY/qGbMhQlZ26dN1OwuZCnrkg3UDXxQ1xZS0lHCI3l+2v9Y5DgvrL5uu0Wq+H20VUhjREctLuBbhaJ0kVE87dA+AymRHLv6zOJIgFuHK1CdzzQQbvt+txq0rH+7/Y/X8L8Y2cNG6ikP8Qk7fQxfhxbYJX8L6RexTznZNdCyxUsSEpsCKAzRRocB5gGrle8AHqgI6vgW7dYAgiEPSxXEEQmZ5EH9UriJ5y1CMQWP20t; 25:LsJ+T1VqL3rV+e065CPV+KxmzP0QcUZmuiWukzsdnYV+XviD3aTg7fL2i10zySZFHr0Jh7uqVHErQQkbRWQ65M8tOgB+5fZ8YW3VAB7pezM/YBRK6uSezwVyahQYxiRKeHqz32lPwFMC6ABLBTOuWLY82hItlk64UK/x0Ct9HZCplGF0peSDzLbKLpJtSbNUYzMmkbsYOCVxAkhlcOCN1Z7OGQ138CsHKH0QUCyA9y4bE7l3MgL2wjr18kOSgyoBki76goPa0eXovvYWmtBs7mF7SlmHjX06WEUJmvQCPY3f+PccQG98ZMYy5oyfhHJ/rZSSBH8U5j33Q5r/QvF/KBVVFs9z4o+ViKp/TFhX3vHN3aVRTeMqywIwZ0q9DDi40QAHDnI7jW2bksNE31Npe2FEv51QoY+LjTJVVvrCleWjfoqNdxEcOdOjQNbIq97d8LuyyRPl5KAln2XtBMq5dw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2951; 31:p1dI2TkYO9be8GvbUyetH0p5Vjm5zvhPbWRIm6Fjqqw+9Zhus7gaucdBFGQswf7ItWemkQNKHTjk3c2/r9zP4XDWNW3S7w785KY/r2ryZhmkpk8NssIgvPRBYRwtT2Y+w51AzNuYEjTY/ML/YHtsnnG+l43Lb4wvZieoY6u8XzlFXhbbqdkk424eskCfwOQtuQPNTjDZHx2JzPA+jOViM347wjLY1h9KzYCAlbzjgQvKrXwqlvYwFEz3lBbzki0al28awtrZegfFBKjNfSGuQcn4O1qCf0+haTHQzqaNzGg= X-Microsoft-Antispam-PRVS: <CY4PR03MB2951CA05B5281D76796755ACEC430@CY4PR03MB2951.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(13017025)(2017020603029)(8121501046)(13023025)(13018025)(13015025)(13024025)(20170203043)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123565025)(20161123561025)(20161123563025)(20161123556025); SRVR:CY4PR03MB2951; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2951; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2951; 4:muzVa8bp5gtsgJRz+CaG9V0cFb2lROQPnajjmoQ0E79rW/vGGTMFHgxXvKgtL02k1OusNw74lTc1FN5nlsbOOn0G/Jr07VcUnCOGZ6OSTs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ticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2951; 7:Di+hFRCfE7ygimkDZxWK2Q7PHVInNotNKvNDE7zLbkB2R29BpAsCnfbt1JuydUHOjHARsovcLPwIcQnT2tfldKp+ezCV/9DPPsp3JrjtmLgRnZXsI7Np2qADPc8+UGdmdE69hExLw20yaKxwBnStoC78fUWXBcMKZ8oI2OSQ4OKmHXHzVRp7NwQ/jufdhB7uxr4eC6eNatiMU8VfoReW5Tnk/FQRi4f9wh2A+bT/9CVN1iWsozwOBAYVM3hU+JF/o3h954PoQslE5xPLsJKsklI9HX1yswY3fVwVxeuNKqOxdROGT63DiC92Whw1GmuID/8/oL4pO5xNsEJD6PZuUz6YPRiVpurlc/ZFgQCRVASuE08KYd5/ahHDsh4NEmBVPgEt0jLb83oF76R6QoquLmM7ex2xFEtzwaVHxuW86YH+Rq0BODVlKZSfgav+k29q4JbOkrPvLSsyUWXgX6zMMIuiPoPkVSVz4wY4wiIR465uykRbQsairvTB55jCwhDzLxtmD6eaW9r6cQq9Xya3fw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 14:15:35.3965 (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: CY4PR03MB2951 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_061558_588335_C79CF608 X-CRM114-Status: GOOD ( 14.37 ) 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, linux-arm-kernel@lists.infradead.org, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, stuart.yoder@nxp.com, 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/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index f310687..e607e98 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -27,8 +27,6 @@ #include "fsl-mc-private.h" #include "dprc-cmd.h" -static struct kmem_cache *mc_dev_cache; - /** * Default DMA mask for devices on a fsl-mc bus */ @@ -432,7 +430,7 @@ static void fsl_mc_device_release(struct device *dev) if (mc_bus) kfree(mc_bus); else - kmem_cache_free(mc_dev_cache, mc_dev); + kfree(mc_dev); } /** @@ -466,7 +464,7 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, /* * Allocate a regular fsl_mc_device object: */ - mc_dev = kmem_cache_zalloc(mc_dev_cache, GFP_KERNEL); + mc_dev = kzalloc(sizeof(*mc_dev), GFP_KERNEL); if (!mc_dev) return -ENOMEM; } @@ -564,7 +562,7 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, if (mc_bus) kfree(mc_bus); else - kmem_cache_free(mc_dev_cache, mc_dev); + kfree(mc_dev); return error; } @@ -823,14 +821,6 @@ static int __init fsl_mc_bus_driver_init(void) { int error; - mc_dev_cache = kmem_cache_create("fsl_mc_device", - sizeof(struct fsl_mc_device), 0, 0, - NULL); - if (!mc_dev_cache) { - pr_err("Could not create fsl_mc_device cache\n"); - return -ENOMEM; - } - error = bus_register(&fsl_mc_bus_type); if (error < 0) { pr_err("bus type registration failed: %d\n", error); @@ -870,7 +860,6 @@ static int __init fsl_mc_bus_driver_init(void) bus_unregister(&fsl_mc_bus_type); error_cleanup_cache: - kmem_cache_destroy(mc_dev_cache); return error; } postcore_initcall(fsl_mc_bus_driver_init);