From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BBCDC76192 for ; Thu, 18 Jul 2019 03:15:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B09B2173E for ; Thu, 18 Jul 2019 03:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419713; bh=na+qOcdXE9f9QQwaoFlA8DqNEdSfDB6pFZNEoPcYMOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ClvJ4BjRJo5fWIFh85ha7BSc8wrEJ90o5CYZJxnXpT4AYZ9Fz/XnbnqmamsB9fuJg VVgIX8/SJ/ZwTjC3cylgyjVlCeT2SPPFboedLrzEsnx8weYE4D2iiJNX3ZIKCXrDts Ca6lItwImOGBShbVCAHnouiUiyJlnrhz7FraQKMs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391971AbfGRDPL (ORCPT ); Wed, 17 Jul 2019 23:15:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:51944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391968AbfGRDPL (ORCPT ); Wed, 17 Jul 2019 23:15:11 -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 E88B72173E; Thu, 18 Jul 2019 03:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419710; bh=na+qOcdXE9f9QQwaoFlA8DqNEdSfDB6pFZNEoPcYMOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NGeCkHYUEbsqyZn9W69VPZ9saWYv1djVjo4n7PKWJfNVSNNkTBRJNV7W6+uYJNZvs GsJ6iXuO19qzR8oUXckn3VKFTpJMmXz6jt5AzHe9Q4nz6AIC7W4iNj4279n1MP59Q7 8UKdixc8q69bLeQOMVEqxs7BwvRdYigxGRa1rjqE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Vineet Gupta Subject: [PATCH 4.4 36/40] ARC: hide unused function unw_hdr_alloc Date: Thu, 18 Jul 2019 12:02:32 +0900 Message-Id: <20190718030050.224622989@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030039.676518610@linuxfoundation.org> References: <20190718030039.676518610@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 @@ -183,11 +183,6 @@ static void *__init unw_hdr_alloc_early( 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, @@ -368,6 +363,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;