Message ID | 20230517131102.934196-8-arnd@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47D2FC7EE22 for <linux-mm@archiver.kernel.org>; Wed, 17 May 2023 13:12:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D91F9280006; Wed, 17 May 2023 09:12:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D4188280003; Wed, 17 May 2023 09:12:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3100280006; Wed, 17 May 2023 09:12:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B5055280003 for <linux-mm@kvack.org>; Wed, 17 May 2023 09:12:35 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 93AFE140554 for <linux-mm@kvack.org>; Wed, 17 May 2023 13:12:35 +0000 (UTC) X-FDA: 80799786270.23.5663B46 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf18.hostedemail.com (Postfix) with ESMTP id B9B591C0013 for <linux-mm@kvack.org>; Wed, 17 May 2023 13:12:33 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sXIvKHQg; spf=pass (imf18.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684329153; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CDYpwW1Fx9PeUZeLZC70UUWKtmFBuyf8tKpF+icN7uA=; b=dUB4G7m9X27Ir6UGd5qti0S4tF8uMH9s6OnE5zlTFTeQG1zWEkWLJzzfMR9BMEhLVXEjgV DAx95GZBCQPVOwVxHqRbLdL34qIscYe4nUxD8qbsOEaGsFObRlhYPrnuoJ9id1+ptcmc3G XinQv6lOLeK6p2hsJk97a5T5wEtvlWY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684329153; a=rsa-sha256; cv=none; b=fBfqOx5EuZxAPh+AXl8QtiH2RB1a4ZgXwS4Q0pLPyzpGHO/y0s4e1oGRxTIAVJNWsvp1UR QwB9J0gWexidERzEKwalT73MVLgUVhKmKPWiONUIK042MZRbwtU0gMJCdV60v3+aoW6QpQ T7jiQvssHPD3256GBibNROPCeSWOtNU= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sXIvKHQg; spf=pass (imf18.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E626564717; Wed, 17 May 2023 13:12:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 335BEC433EF; Wed, 17 May 2023 13:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684329152; bh=wIpq6dQ3SrZ+OFpGPswN9m0xaTqULZnHSrUinkSrQZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sXIvKHQgTrqznMJvGuTDhX84E9WFuYptr8V3Ek7xw2qzSKUVOylJd5AIRFHWD43cs rY9FXAfbijzhcRJ7xB3TlUNAPXZltMOT2Gu4HfBs6rSenBQe9xDB/DkigljyzJ5y0q NqniEOZEjINgmXRhB2DOJQVMCw6aB5m5fkNbmxq0hQ2kjVyy2Rz5uAkz1lxR6GK/pc kmDhZQgZnArP9xfDPRLQii+MbSH3WYm82+2YK1Gsm9qH0+4zeAr7ziGBnxhAtpe3t7 S5c12dcl36AQVcUIP/lTS5gtzL2FAYQNXRSkp6OFpQMsIrlhIqSx17r+jWyW/eaEgJ v4/2vi76yp1wQ== From: Arnd Bergmann <arnd@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, Arnd Bergmann <arnd@arndb.de>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Michal Simek <monstr@monstr.eu>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Helge Deller <deller@gmx.de>, Michael Ellerman <mpe@ellerman.id.au>, Palmer Dabbelt <palmer@dabbelt.com>, Heiko Carstens <hca@linux.ibm.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, x86@kernel.org, "Rafael J. Wysocki" <rafael@kernel.org>, Paul Moore <paul@paul-moore.com>, Eric Paris <eparis@redhat.com>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>, Pavel Machek <pavel@ucw.cz>, Peter Zijlstra <peterz@infradead.org>, Waiman Long <longman@redhat.com>, Boqun Feng <boqun.feng@gmail.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, audit@vger.kernel.org, linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: [PATCH 07/14] panic: hide unused global functions Date: Wed, 17 May 2023 15:10:55 +0200 Message-Id: <20230517131102.934196-8-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230517131102.934196-1-arnd@kernel.org> References: <20230517131102.934196-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: youpympnzr7d3jn11bszdyyaq8rxwbz9 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B9B591C0013 X-HE-Tag: 1684329153-394068 X-HE-Meta: U2FsdGVkX1/P+z/Rg1kvdOP280+fJJpOSFGoVVeL9XAHn+TQtPgPeR3VPYR0bW+PJ83MXHhYW2s/v7CH8HogoePHQ9FQmO/nOSoslPqsIUlmtiHe9g4XU/kAKneTAvoFXlZJPkwF7xeowT8j4dru8+CSpR0jmtXqV6h5gA+q8UqodUGkMHeoNQa8Mf2FWOIMUR9ylopz8Nrsuwn0D1ppv1vVhRggCt8A1uasG4pBE9E8ZvUhwqhaCrI6kSoJxBdI7ZK+o8R4NZR9GIT4pZm8Voubm1ik2xjfb9jz5DLOUZcF2/IvSzaex4TxkvyPeDEKziUI1flF6vgI8V1ywRIEvcG44Y6qdoVWOo1OIEWPZpZFJh57y4dGwp3tXIZOpYhPYb+7S7eRBsZVYQvlfNZGTEM/aWelxt3tPl9o4Z/hPQDo+3yBbMO+BFti2hX86XEIGTz2uidQezD4jRkqxOoVABZP6FjQ41l+JgK1isSTDS5ZSDUzkAUy/rtROJYBNZouFDZdpw6+JA16bGH3Gnuz7Mn+1FkYlHMKo3vScPkrBt65/2gOSnJM/Yyj8HsGKQKCn70YZfArevpzYsgtKdJD1mpKCtMed5NYl4QRfIyTp3C6PbnMAfuJh+fy1x+aqhS+VULqbMgSyqGpURoPBnmVO1SOIeCuAo/7we3XPDbt9H9vUneqr4iRWkBbwLd/BvCN7raKA7vykk+GjozZjpYdpurHalTAQSSNUkDj499Ry2p9MvCYn/lHU3Q8yYDJxlwlT14ZJR9A4kIKz5NgB+IpvOFPQUk1qPl8qSFa7jUtRDdHWg5OdWdOf1nQvuy1p6Qh2llibEq4YtGELmgRwgp5XJNxaFPzoPLIGj9iRC6E4/10rtJteXKKJZgwbNmNi5KgwGzENafjkQH7mN2h5uefSu+HA/m3Yb4O+N9pgg6qKd9Or6DmvfF6Ub3xgQduME2RD2kAW4/arGXSkADt1k0 IYfZ8CE+ cDKUUpQaGEglzaYFa+mTFeyOAmH9hpxdEv/OihgpfWDG647mKPmqYbJK9I2KMwQw8k6xlwLLlJXBO+4zHdKptoCQMm6e8Psnr9HKP8StD3LjeaFPPoLQ7QYvBXdGx+XLN6sUN5Cg05V9kYawhFirF27P6iFolN720XA6+9mUgfP7nOlga+Goyx9M4PDoOaD2jitLein9USBWfCk6Obn4vwozVpiidwbnZUp938g5LOSVzkTiP4wW0AQCEc+vFn/HWs/sIrGXkOWFYZEZu+GwFRzIpJ0ZB/mp8sM8pjijnnxEiqpUs64jPafepxDcNMZe0drziiCNfglrhLoa/k+LtBofGqJpZAsak189U X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm/init/kernel: missing-prototypes warnings
|
expand
|
diff --git a/kernel/panic.c b/kernel/panic.c index 886d2ebd0a0d..10effe40a3fa 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -684,6 +684,7 @@ void __warn(const char *file, int line, void *caller, unsigned taint, add_taint(taint, LOCKDEP_STILL_OK); } +#ifdef CONFIG_BUG #ifndef __WARN_FLAGS void warn_slowpath_fmt(const char *file, int line, unsigned taint, const char *fmt, ...) @@ -722,8 +723,6 @@ void __warn_printk(const char *fmt, ...) EXPORT_SYMBOL(__warn_printk); #endif -#ifdef CONFIG_BUG - /* Support resetting WARN*_ONCE state */ static int clear_warn_once_set(void *data, u64 val)