Message ID | 20170207154353.20691-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 6A9446047A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5980028420 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E3B028434; Tue, 7 Feb 2017 15:45:07 +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=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 B62D828434 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 7 Feb 2017 15:45:06 +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 1cb7wt-0005fR-Gk; Tue, 07 Feb 2017 15:44:55 +0000 Received: from mail-co1nam03on0072.outbound.protection.outlook.com ([104.47.40.72] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cb7wU-0005CV-R0 for linux-arm-kernel@lists.infradead.org; Tue, 07 Feb 2017 15:44:35 +0000 Received: from DM5PR03CA0004.namprd03.prod.outlook.com (10.175.104.14) by CY1PR0301MB0729.namprd03.prod.outlook.com (10.160.159.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Tue, 7 Feb 2017 15:44:08 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::168) by DM5PR03CA0004.outlook.office365.com (2603:10b6:3:118::14) 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 15:44:08 +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 BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) 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 15:44:08 +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 v17Fi5WH029897; Tue, 7 Feb 2017 08:44:07 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org> Subject: [PATCH v3 05/10] staging: fsl-mc: remove slab cache for mc devices Date: Tue, 7 Feb 2017 09:43:48 -0600 Message-ID: <20170207154353.20691-6-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170207154353.20691-1-laurentiu.tudor@nxp.com> References: <20170207154353.20691-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131309558482926170; (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)(7916002)(39410400002)(39850400002)(39400400002)(39380400002)(39450400003)(39860400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(86152003)(86362001)(54906002)(50986999)(7416002)(8656002)(53936002)(626004)(77096006)(33646002)(81156014)(8936002)(76176999)(8676002)(50226002)(110136004)(5003940100001)(81166006)(1076002)(305945005)(356003)(104016004)(2950100002)(6916009)(6666003)(2906002)(105606002)(47776003)(106466001)(38730400002)(189998001)(2876002)(4326007)(92566002)(68736007)(97736004)(48376002)(85426001)(2351001)(50466002)(36756003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0729; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD034; 1:Rw8cuoNhGIg0/td7A6JA9k8isjj6V6dVlgR7KtaRTY8EfQX5jm0TAlWK9rYrXC8JhB20FiLL5ocKLl1JPuwcGeyK0xqcaTPJ0UfH8F9UEbcpmpFC/VFnAyZ6WSNCTGnj6U7yPEiqagGImrQe3082og4OuczVgKYQYKcc9cuSCWqdhxiZ6WU5phjMLV4sa5lcmiUo58QtEucZ5FrYAviueF8DB4yN7TIoKmQkFE02gPc8xTg0hud2djXmqA1ZwwuHaPdQEImNgnAQdkkvSJ2EM5bgepkOAhFqlw61yn/DKQdK8/IsGAFZhHWGcUXg170wt6QTHhDOFY88L2wYJ6CvYiga3xrYajDF1/Uv7Y37A3zN2loo+jYFr0RwT225IoR0GoKOzZM74r99dXdVaWwpoMsoENm2ma8sCVTdWQZQ7U1T0LHpScyGatSDqsOxXv8a71hAUNyotT+4nYbEcL1xf08Ta4O2HptVHL/IMEGraUVO9cDvI5oB/3ydvUCXNE8bcr9eiMkemcw4Vox4UyW5DbGrLkC9xacUIKgELG2ytQ9lU1Q2ix4qycN2yMsuuaZV+E8/Y9aEQSA3DH5ohMYU0BRThsrEFErG3sedFfSdOMoqlJf1et6wga1/e9ERly1TWnu1+LS3GcVF+SPIqPu/6pndz0jPeloGZvE7R+BrdxG3ZYg3+5CRdliHeFBiJmleyllhA536U53yR5jPByjGKJAnKA03tBFKXAoGKzifZ3I0Xn19g+FwHgqAy9yE39dO4S4H+x5stf7PqEOIeCAfCw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 2816e864-5057-442d-98f9-08d44f702771 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 3:usgVnnIqQaaKiwuLeoV2+23RMxgJPGfNunaIUFkk4zoY++Ch4dsfdRuwqRp+rPPHh2YVsqMvZBD52VMksIProGsJQcGMV+ruQR96x4nArtJP4tC4R8fOwTdVADM8eZitOdobMYm0jv/5fIzTqq1RTniCNRyg5mYUJ1fwpU1NaITf6UNt75bkG1dtnLmnj8BtYlvzGCRy2MyQQUDXQfzt4G8DUM84E4vVTdQV4kOC68supUcSnlg2PPBVGsEOTOfER5mwaPrzlfmP7ZI+7jYstTysO786cruz8PzhmDtGQg/0wLC1WNcG1CdqjK6KJ3zwqvYytOd+YIduyQ19qnKNsM3gLE6lpCgTzYTKjhhzEeMwzex3m3cC174vNDANB8+d; 25:nKrvfYWFMYsFUsYbvcf+tUslGjtdVQBBsDgetm/v80e4gj+2yta3Id24tr0Kbel1+sZF3tq6U2daFZBKfJ6HdlZ3PxfvSYfQxPHqtw7SFGtEFmLRI34DurLZR3yanxDbOYobdd433Ww5J7qrQWap9Dg2E26AflKOPHyl9UF9jp0+EuLA7Mwez+mlEi1YRVJuEvmLRImHoQNRl2SOl0Cv4XJQetbyYpIFhUV7aw/0/moOyFlVQnybxtfyAszqvxUu9591y4DiDT/D0wYNnK5bZC1juQi6taaLo8IbG0cIYG4g62u9T4rMsDRo9qwxCxQRjFp3pupNMxwrt/dwGai1Ni1KCyNLeBv0a31Q9/YYtpQt7+QyZfIG/DwdZVbH6aGtxsGFA4SPWzf6eeV/xEKI/bYmHcq8YMgHgbnT+XkS/lsdCorETB9javYfLcrVaSgCvMSPFRo9klzSVGM7GT6Qmg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 31:4CGOCawBjTR6p3WBSxlxOaK5YeZyonq/0uf9yyFMOEVZAXQq4CPeUA6CCGWzIOX5i1OPCaUTVM0+5fe3EW6CbIkqy/37p6hnB/3vN3Ck0HEEnSErw9Ltg/5jBVtnI+G4+79zgQvSLsozjmIItv8BW6qxAifhD+f1T5d8WhPEmyjPeaZM7SDugaiPu+0djmdae/Q+P3pGuFah/p+bAnc+VL+PQvXmmgclN9Q1lK2p4T1gQyollSRxsj9jhSV55gVgKcoY8/yb7v0oL6rXc0K4ObjIiNHN/xGQyeA/i73hYBs= X-Microsoft-Antispam-PRVS: <CY1PR0301MB072949116E15D7BDF85F2A1EEC430@CY1PR0301MB0729.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)(2017020603029)(13023025)(13024025)(8121501046)(13017025)(13018025)(13015025)(20170203043)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123565025)(20161123559025)(20161123556025)(20161123561025); SRVR:CY1PR0301MB0729; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0729; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 4:ZYJeoSnm85/jtuKa2rcYdkA8gjeUtJgXjswB8u7LC5H2ljPO3h/Q7Xb1SpoPsVkYCyDbMAuk706yjqeZJsPLbLXOBSlj+Yu7A5nYGTnKhwWdT+quTfH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K3Nu48= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0729; 7:pgC67BFxA8wT7VgqQcxm04ISIknZQTNw6fH8v6I2DxhAxGzTpw9dibf9X7qzRVOCJvnoyC5Q6AFv4O1QQhe5IJJ9vwV1Ubx1RrGbTW/7bWT69frIclmde8u/RNIQfl6SoX1WXLGb2+DayczztCMqTLi79eismi9Qiiqy3W6dL4R6IDvM7WwWQOaE9QS6+zmDBb7tuVVnX/98e8lfcjGoeyaJJBBD+0+9E6qIr/cqIfhgwE4mDoSLM5g9jz4obLxuuAM/BrXv/43M8w7eB73JoSB/EbvPyoaWlWwgSzM+6MVROkYJIqQEDp9AmnhZNUX1BI66FXJo78xws+sXgME2eWlKWCv+EAsmpql16weoREF80MdT58LPaHRdS0IEjOeo+mERbGAcqcfOkFTmJoj3h/t4rOiFZ74RSxyAHQWi5tVRKZ6fjgk3DZkcCThVE3F7QCa/gRLbJp237pdqZeWL+EY640bgd1EZiiq09+EuEy5Klz+vi3Xq1o9SdoXzGmBRe6uvDQvjwx3Dsq+XDFBe8g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2017 15:44:08.0898 (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: CY1PR0301MB0729 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170207_074430_953462_E25510F1 X-CRM114-Status: GOOD ( 14.46 ) 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);