Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1704819ybi; Wed, 17 Jul 2019 20:27:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL8Fg57DbgpAwfozbipFdxbWia2MY7LlLGqvXU6CB8EntZpRSeYNMqE8lExq79uhs/OCTa X-Received: by 2002:a17:90a:3590:: with SMTP id r16mr48939698pjb.44.1563420445077; Wed, 17 Jul 2019 20:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420445; cv=none; d=google.com; s=arc-20160816; b=AdB0ykouPVIaabWeTsNm3FLHXCwhBskqhlp41aH/lC7XMXXcek9JgfY+Tlo450s+tx rO9X2k/vT+Up+bgUY8UqwWrYWpV06FCcwT1M2f784NjCXLYwxUE5Jh5h5xKx/SgcuiK9 EMsHN0lMid1twbUmbPMjFlCc4maAjYXC9hUWDejCHgFOkT8QROn1UjNYATU18ZGlSFjk jGidibtKNA40PlvH4VcGIv6yIDgWD+8nUZ2hblvC/krSOlMuB6DmTT1p0egomePGDFR1 XMzk0WqbfC5Ir/bHcYVAZikxbjMzE2a+l6ilDYMyvqCu0DfRHFDytUc9VYxgTK2WEeXp XEQQ== 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=l3v3Kxm94oivLSc30sWr06ZD+ZnqgRAG07+gi8DQMsceSKYq1/LhgguxBXtanF6jgE LIO5P72Oqs6Uemd9ciB8gx6LoNte8j7cx8CbxxfpwUwAsHL6NfqXehYneaTnY5WmULIv s6BKpz1OmyRvCe8YX/J4Vzt2MtLeu95BQcyl2d/3j62hN9Fvy+S1aLX90PX7WwuC3fjf Dzp91rACUiFw/118I7SuB7WVBHlRp510bfXe7BNlK3+fgIkyPyvh0+3vC6YVw8i+UvdY pQyG8PgGt+wlcXTuVTfbMbih549RfR4IK+FdXs1hhKRqau+kmmYyW6CKJ6mphZk50b9s yJ8w== 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 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 m35si570407pje.84.2019.07.17.20.27.08; Wed, 17 Jul 2019 20:27:25 -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="J3TeyY/6"; 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 S2390915AbfGRDYq (ORCPT + 99 others); Wed, 17 Jul 2019 23:24:46 -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 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 @@ -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;