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; From patchwork Thu Jul 18 03:02:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 169173 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp1798015ock; Wed, 17 Jul 2019 20:14:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT25gV+wwyKAMJX9Q8FwoUfi3IjFoq5QJBIRKRLc8tFuXAcc5t4u7hpiz6W6+H9JcGBs9r X-Received: by 2002:a17:90a:a008:: with SMTP id q8mr48880751pjp.114.1563419640461; Wed, 17 Jul 2019 20:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563419640; cv=none; d=google.com; s=arc-20160816; b=DbVNDtj5fmyDKqLauzY1e5XTHvh+u5CEtJ/JW5mhsS4LzgCJnx+r/LDGKRLVfz6F6m apkpuMC/2E7tEbkZ+uy2/PKSjsH7s+Ook+xaN42dyS6yKZQKpD0KXILBR+weEctzwJFH UmvpJJ5oMtfQyY/CalTxfH0SUR5DakFwIuTraQRxNuSzK8Jzf4xHKiTmwMIIivHnvSIl kTwO1X1bMLPJ3FJzweifrebpcA8R5ABpbo/lmhUi9uHhCJNASlSHYji2KmV0foaMW6gb fDY/3AJEPaCdyA6ZJyBloNWzCIWuU8FpFobLS77foRzJF/6n+xc7rhmmX5QGa4AKnbki VL3w== 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=XwKMHnmCwPllO3t7ZPfK+2naJo4MhZJe7TspSZ5zWXPCrOodjbgADbskz7F0OFh8vT 5Z8NIDBUlesmddrPCm8Q0C9Qm6OOfkTZiVdfmyt7pL6cjC9vgPj/Syh67T6BuBPAxpgP JkAsbCDvWdShzedlZHR5V9MGysIgYHNa/a4lcQ5WouKhpyO0O4kPyItOawDPy5iCU6X+ zsWk3Cb18eeiVZg+KT9l1tYPQM2/Kh8Km49YlxkZTFNuJWVdnTTVYxgG7ZuankjZChks w1dW+qYUEfYx1BtOehKIdusBq023DX9J4G97/g5aynAQA1EBG+xfV5QWd4SnYHNjXwgp BDPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lmzyvBDU; 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 36si106711pla.80.2019.07.17.20.14.00; Wed, 17 Jul 2019 20:14:00 -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=lmzyvBDU; 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 S2391047AbfGRDN7 (ORCPT + 14 others); Wed, 17 Jul 2019 23:13:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:49024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390583AbfGRDN4 (ORCPT ); Wed, 17 Jul 2019 23:13:56 -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 12DB821848; Thu, 18 Jul 2019 03:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419635; bh=6TvLc+s1Z5B/h1l3/U0Pe2FamVxtuWOhIhEnM7zXQp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lmzyvBDU+FeN2TezDPf7Rp42SG6v82t4R1HhGU8ctwGgTMQDDdRc8ClLEVUyAONm8 rJEYQqdiKIWq94BGhnqigN9yjWbqFAY869yUjwF8/Msn8uuTus67JMF+6aQCUOOSNW rEZYsw2ve/D5yjVs3c6SZo4Z5H4ELrLFxkRsysjY= 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.9 51/54] ARC: hide unused function unw_hdr_alloc Date: Thu, 18 Jul 2019 12:02:21 +0900 Message-Id: <20190718030053.575683711@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030048.392549994@linuxfoundation.org> References: <20190718030048.392549994@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 @@ -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;