From patchwork Sat Mar 7 23:54:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rientjes X-Patchwork-Id: 5960681 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 48BBABF440 for ; Sat, 7 Mar 2015 23:54:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7EE2D20256 for ; Sat, 7 Mar 2015 23:54:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 91EDB2022D for ; Sat, 7 Mar 2015 23:54:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753190AbbCGXyT (ORCPT ); Sat, 7 Mar 2015 18:54:19 -0500 Received: from mail-ig0-f177.google.com ([209.85.213.177]:38246 "EHLO mail-ig0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753161AbbCGXyS (ORCPT ); Sat, 7 Mar 2015 18:54:18 -0500 Received: by igbhl2 with SMTP id hl2so12496504igb.3 for ; Sat, 07 Mar 2015 15:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=WX4m8VMfLxVpNVAiV1fU7jTBY8fdVqnRpWVxajScepU=; b=P+5J9z0/9IOdZmNbIHLpNq+Aki4i05Lx0hj0acmRUeDhoBBlhF+AwUuUYCws0IFMje vY/4BUxwOf0nP5+i4qH4tX6Kzb7fOw3YGIKg5CoLkACXPmlyN0g5M0CvN5b43Qi55ygd DeDhn+ftLHenibCwNHGjm4niD+blcAvviSRIgyzerx8NuFKR3L5ihCIp+0BT5kQ4271T A3h+QbfRMEsbNXIZwc0bI0IoRaLEBFwLzrslxNLO0YNCHwNay00tRUPXRe3LfpAaUckx U8HiyaLY05FO2331q0btoTN/7HS6dhFNnmFUYlQZm98+8MdnjFu+v2V+4sdzyuAiho4c 87Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=WX4m8VMfLxVpNVAiV1fU7jTBY8fdVqnRpWVxajScepU=; b=PVGk4JatWPzzCI3Tt0SX8ZO6poDGZcf6SKADDDbGOjozp2Q+KvnVgoEWo6kPcTISRh hUWLGmCp8e3rdu+X/k8Glnu1UdWXGkyEAg0Mine9uFRCcjGBDWvjnwrwZ4vWytitMDLj UiEePnrEtzoDvw4ien4u1UXwVAuWoiiTxCuHQvWUFEJlXQRh6UEwmJvRFdRUejhGeUZ+ eBFBXtJtHYJvY0LsECEcWdR9+H/Rguzu6fEhdH5Q5y9fC/oOqVqCR4hAEyMKVr/2sT8B fngYXoZeQvZ4DvKNBAOqb6BV0iF4hljHQYQi6mE9au8iLydM9xn2KoGq0PVncgjGFgyu tAjw== X-Gm-Message-State: ALoCoQnKan2NnAbuxMAjOqeUq8bod9k9xirq8xVT5HnnEZL6NcQx86rhqwCE1rriBIZIUkf6vUh6 X-Received: by 10.50.137.99 with SMTP id qh3mr59931615igb.9.1425772457487; Sat, 07 Mar 2015 15:54:17 -0800 (PST) Received: from [2620:0:1008:1101:a0e7:858f:fe1d:d33] ([2620:0:1008:1101:a0e7:858f:fe1d:d33]) by mx.google.com with ESMTPSA id 95sm4979947iop.18.2015.03.07.15.54.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Mar 2015 15:54:17 -0800 (PST) Date: Sat, 7 Mar 2015 15:54:16 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Andrew Morton cc: Paul Mundt , linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org Subject: [patch 2/2] sh, dwarf: use mempool_create_slab_pool() In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mempools created for slab caches should use mempool_create_slab_pool(). Signed-off-by: David Rientjes --- arch/sh/kernel/dwarf.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sh/kernel/dwarf.c b/arch/sh/kernel/dwarf.c --- a/arch/sh/kernel/dwarf.c +++ b/arch/sh/kernel/dwarf.c @@ -1180,17 +1180,13 @@ static int __init dwarf_unwinder_init(void) sizeof(struct dwarf_reg), 0, SLAB_PANIC | SLAB_HWCACHE_ALIGN | SLAB_NOTRACK, NULL); - dwarf_frame_pool = mempool_create(DWARF_FRAME_MIN_REQ, - mempool_alloc_slab, - mempool_free_slab, - dwarf_frame_cachep); + dwarf_frame_pool = mempool_create_slab_pool(DWARF_FRAME_MIN_REQ, + dwarf_frame_cachep); if (!dwarf_frame_pool) goto out; - dwarf_reg_pool = mempool_create(DWARF_REG_MIN_REQ, - mempool_alloc_slab, - mempool_free_slab, - dwarf_reg_cachep); + dwarf_reg_pool = mempool_create_slab_pool(DWARF_REG_MIN_REQ, + dwarf_reg_cachep); if (!dwarf_reg_pool) goto out;