Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1705201ybi; Wed, 17 Jul 2019 20:27:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy42SkDBBJUxYWqcKJtHV5Lifd2L0OauFCHIbD8RVnWz2YKKRm9BxDh3fzbQ3uf1fh6oO2Z X-Received: by 2002:a17:902:8b82:: with SMTP id ay2mr8806071plb.164.1563420474070; Wed, 17 Jul 2019 20:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420474; cv=none; d=google.com; s=arc-20160816; b=rwd8oCgrHKdzltBGaxgWFT+ajo/ncvgtiJY9if4lqph/E0wIS0DQUmBKC7/mK19Ofb 4uXUZ2FGLGMGU5DeVHH5kb3pOuc+WE9U3rUm1KwqLgIyMFKd/1tyLmqUJRGSbnOXLiT7 3aNVwLrymo8/MADoe0UhGr2klMWKPDUuUdDPKV5FLX6B1Rh0Pdhnxrh8gbq1v8/dT4bc 27/3tKWMmKsmdzQvzw7tZXLLw6KNJeEZBBYps46rOtQq4J+FmIfcY3FXiS1Zk5CspmKH pbTisBSAz4tjMohUuOxNxNSt1Bmh7BPWgucIZAreyJ7Zm58A+MT3nkEjJyB0NOFV5KWZ 7p5w== 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=A/WQcwq+gxO0wTdAC0LLavNmjX8p3hIet6jIjxWAI14=; b=ijHNW4kVO6izLiY++oCET+VwrEbLz9uOvcUJb41oaZR4AA15hPL1shnFk9/5poYeFn GASQb1YSUBwM8Lt/KDTddNuR+oBYJSt+5UrWTyWIH9k2HHXMwWcVDLbsrr9ziSQdx133 HYLZK3XpouiaswvpRl8bMn6qr9SgOG6orVHnuPhmA2Ioj0QrpuENqIAdrCxPp++2rZFK MdVMUkmg7cQ/pStcD0Lkr/9rRcaIAM+/8WzeaCNtLtvWqmYtyf4YEsEhMOVW+FXhqiyS BPQNcftjViM+5q7OaV/6jCuTbsWilrDDNJtRmfr25C/aU9yxCUzSiiqkegYFCZFrXvmj 9ibQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gsqjaetd; 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 a23si23335313pls.189.2019.07.17.20.27.38; Wed, 17 Jul 2019 20:27:54 -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=gsqjaetd; 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 S2388738AbfGRDDC (ORCPT + 99 others); Wed, 17 Jul 2019 23:03:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:33640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387984AbfGRDC7 (ORCPT ); Wed, 17 Jul 2019 23:02:59 -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 0670F21841; Thu, 18 Jul 2019 03:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563418978; bh=sCxTIgADXOgJ0ljuhRomr+2gskzHAK3o+DYnRwZQytM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gsqjaetd6he2mqA6TUm1sHKHoa9s8mNcot2x1ZegUAd6axE0BWhC7xbn0uLlbpHmD SvEOHe+n9L7yhIujaYCsTtlrhH33to/Tqoc984TNjUlzgYSQZeUMMGBekC35anKSzP I5sQNUy7D7qpHLfV46oRJtJHhV3tc5picrIt0Y4s= 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.2 13/21] ARC: hide unused function unw_hdr_alloc Date: Thu, 18 Jul 2019 12:01:31 +0900 Message-Id: <20190718030033.826192040@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030030.456918453@linuxfoundation.org> References: <20190718030030.456918453@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 @@ -181,11 +181,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, @@ -366,6 +361,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;