From patchwork Thu Jul 18 03:01:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 169178 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1796224ilk; Wed, 17 Jul 2019 20:24:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJru1ztyYGP5QMQ5CqcrTsjtgR0gjGj067IWAM6puSEIOB6hqfxAFkwPFbdZUX8Jo6e/JI X-Received: by 2002:a17:902:3103:: with SMTP id w3mr48348383plb.84.1563420283482; Wed, 17 Jul 2019 20:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420283; cv=none; d=google.com; s=arc-20160816; b=pRUHRMlCjkFANXnPh9P9MtnX/dZpis5n9lFsdbrkm8sYgEjWKIxtFNNb0CCZn0WY1T xTyqWZK3OvP33qybPHDFzsb56TUIkp6cSSNLUDKB9lmVvKbl9ids/qKykiXPqfLnf8Pj 3+YWUrCnuuDeHlfNArdWXwNRBdYuzXlmVwTLO9gaoFIGH5OXOxxbVxKZWt3OcyyNiqzJ NNlbReA1F9Doxc1mHqKZibm/7W4RNHIHCt9zeAmf9/E9bEnOhhysRpZQUQH5k0g9xaKh /KYpYGLxZxH/L2fZJuqG4G9/6cJ3gyt0nV6KkeRS6OSWP7JF2uL22VLUBduMBHzcah+2 2LSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KthQvRejwZwcbubRtOjZBTFkMPzHk9RbbBlH494D+Bk=; b=XfD31D9Bov2JksoVHApHikAc2huMy1a8uFrzvz1S5f2XZ7i20J/nZwNIyj9pKaQ0ap z+7FjizNWAXne7xTCLXnzQyBE6bbtRL6/Qr7fMVO5AjgzPaxaLWG4yVcEOwtyLh7dv1e Y80cxrF+CBSYK5XMmP+TiNKI+KXrnqQXWGXL+Vh3QFBIw+Pk1PoaZ3XdpkENSMWgZ81L a+bi9YTok+D9FdZRTOykh/V7UDk1MClqeaJ5F1/upQMmxc95BsgeClFSnQuSMR36F0Yd gMQ/FJvLjNAb0RxFv55zOhj007VfTiJdMp5t0E9zY45yur8hikqsoZ4YUtD1dW8eE9Wb 9okg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="J3TeyY/6"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si1502145pfi.3.2019.07.17.20.24.43; Wed, 17 Jul 2019 20:24:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="J3TeyY/6"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389921AbfGRDYm (ORCPT + 14 others); Wed, 17 Jul 2019 23:24:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:37574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390190AbfGRDGV (ORCPT ); Wed, 17 Jul 2019 23:06:21 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBC562053B; Thu, 18 Jul 2019 03:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419180; bh=gcoQcpHmMYKJvS8eyy4TEbIp704nm07q9cjihtk1UQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J3TeyY/6PbUd1wafyGO/Roj3y3eYumeGm7MuqbFsg7wHflct7P2aBd+NZSMR2k4J2 7PeyhbemRAso8IAc2dSXrtVJQPNpGSgqNGQyS5+/ZWXtmq2OpOgsaOXb25A5SWMqw4 xxzUMjBoxf89xVBPVN9Fqep8vdTwx6i5F4rOdQ/A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Vineet Gupta Subject: [PATCH 5.1 47/54] ARC: hide unused function unw_hdr_alloc Date: Thu, 18 Jul 2019 12:01:42 +0900 Message-Id: <20190718030056.830149362@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030053.287374640@linuxfoundation.org> References: <20190718030053.287374640@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann commit fd5de2721ea7d16e2b16c4049ac49f229551b290 upstream. As kernelci.org reports, this function is not used in vdk_hs38_defconfig: arch/arc/kernel/unwind.c:188:14: warning: 'unw_hdr_alloc' defined but not used [-Wunused-function] Fixes: bc79c9a72165 ("ARC: dw2 unwind: Reinstante unwinding out of modules") Link: https://kernelci.org/build/id/5d1cae3f59b514300340c132/logs/ Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann Signed-off-by: Vineet Gupta Signed-off-by: Greg Kroah-Hartman --- arch/arc/kernel/unwind.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/arch/arc/kernel/unwind.c +++ b/arch/arc/kernel/unwind.c @@ -184,11 +184,6 @@ static void *__init unw_hdr_alloc_early( return memblock_alloc_from(sz, sizeof(unsigned int), MAX_DMA_ADDRESS); } -static void *unw_hdr_alloc(unsigned long sz) -{ - return kmalloc(sz, GFP_KERNEL); -} - static void init_unwind_table(struct unwind_table *table, const char *name, const void *core_start, unsigned long core_size, const void *init_start, unsigned long init_size, @@ -369,6 +364,10 @@ ret_err: } #ifdef CONFIG_MODULES +static void *unw_hdr_alloc(unsigned long sz) +{ + return kmalloc(sz, GFP_KERNEL); +} static struct unwind_table *last_table;