Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1688000ybi; Wed, 17 Jul 2019 20:09:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvQXwIlRQqji49k+9n1njF/wjVILndie9erBlNHXYV1dQY8+9MErgEZsqA6o2Y30YPIXts X-Received: by 2002:a17:90a:23ce:: with SMTP id g72mr17245124pje.77.1563419354133; Wed, 17 Jul 2019 20:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563419354; cv=none; d=google.com; s=arc-20160816; b=c12K/7hONtfHGZsHFccJvlpNIf1eBilAnUhsC1v3MGl8XykdOkhf2DHD+RJfhBU0Tj qNKo1SP/is8kSlXCcv/2SsUV/kKu27KaL1DUVa8ww0/Meny0hgCymnE1O0T0iuMDtmlm vf23OD0s6NJ4BEmH5e3tlX6GE1hDlXok3lUwlyA0CICFir1uzDU7zYjiA6HwUJptx7nq aBDaaiSU1dXgCK5G2LdnriQqom/RXTiqiP44PNrvYzZ2aRDeVgu/hvqeGsC4rIxSkHOi 7OVJY0RSNRnbaVGepDCYTPuTM/N3OA8lAsv9TTT28zxJStIxlHHcsyPuiGgGDuP0wU+k Eyvw== 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=tw4HKsuEnMQYGDl0ytTXg6FE49BzgogHiTN0btdqeW8=; b=tCYxnGaJoh3vwf1Vi4GMxAT+iqkzU8cQjDzJ/kHmwixsNSE4tKjVw12QIMt4mvQUfV jpyjL7qyGM81mv1FeGLBaaKIf6BPgibHPESnXZgMsSeoQ8vlvEEtDTzkYIPExZCid4Kx qSgFJ4ArZm44ilWtj7+P8D3AkfmxXG5F7olVuerP2yJ9zP7p5hXdQOmQDiEtbKIaEKzl ICPUNwRKvTBgBhDGVZE6CcS72SdMZS5ZZrms8TAsdmMX4Pljh5ITMua6q3SK3JMdYJEC FODu9A0SNWZFteqUnIXdS1LD3gRXirHadjI2gnnTA/j9YGiDRuQ33Wr8TBHCwAFhMmWX 5rVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ryx4VF8m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r17si618253pgg.155.2019.07.17.20.08.57; Wed, 17 Jul 2019 20:09:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=ryx4VF8m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390543AbfGRDHr (ORCPT + 99 others); Wed, 17 Jul 2019 23:07:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:39464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390513AbfGRDHm (ORCPT ); Wed, 17 Jul 2019 23:07:42 -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 EF19B2173E; Thu, 18 Jul 2019 03:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419261; bh=6TvLc+s1Z5B/h1l3/U0Pe2FamVxtuWOhIhEnM7zXQp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ryx4VF8mZCxLzgYAN6epACOtx1BkSrnpK0C+gcxdKTAYVhOWQ0KOoCCSwCRO2G++o cbrAWTpTSRNZ3dbZH9ssTD7lKLY6PJ+v3AWoHKrnJJvYRlZP2wJmQg7KVrxUzI0Qqt +vlMTYDuh12YNm/q9NDyIeMyihtNZstx7sOX7ucY= 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.19 36/47] ARC: hide unused function unw_hdr_alloc Date: Thu, 18 Jul 2019 12:01:50 +0900 Message-Id: <20190718030051.825109263@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030045.780672747@linuxfoundation.org> References: <20190718030045.780672747@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 @@ -185,11 +185,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, @@ -370,6 +365,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;