From patchwork Wed May 17 13:10:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13244893 Return-Path: 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 724D5C77B75 for ; Wed, 17 May 2023 13:12:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0999A280002; Wed, 17 May 2023 09:12:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0494C900003; Wed, 17 May 2023 09:12:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E2CF0280002; Wed, 17 May 2023 09:12:11 -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 D62D8900003 for ; Wed, 17 May 2023 09:12:11 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A9DE9ADEEA for ; Wed, 17 May 2023 13:12:11 +0000 (UTC) X-FDA: 80799785262.08.C2F4D3F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf13.hostedemail.com (Postfix) with ESMTP id 69CFC20050 for ; Wed, 17 May 2023 13:11:40 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZvzxaL6m; spf=pass (imf13.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684329100; a=rsa-sha256; cv=none; b=mNZzjHt9MqI1m8qriWy6MS8z/DPH8F4vOC3XAVwQF87KU+amN25JvGDayfnNw9TVG386A8 EEMwLy+5vXEjBldnHknBhwbeZavltFTB82Ns9b0TYL64QEVBwgrhhpDtNUsatbB/UKmIOR /q5ZsycZxpl8INwnAReMsY9Ev4Sq3jg= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZvzxaL6m; spf=pass (imf13.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=1684329100; 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:references:dkim-signature; bh=sJ6qyoLb7YeDVNxVdaaxqVDRj3rXg3D/F9x8v9ryDQI=; b=jm/H7/nUqBiLXvEKl+4/Ptomd/AofyUIql6JIg6/qd9Wi56IlCIugDRXoKkGeyN1FL1yRu Phi9dw0un96wQD76sLlOi9GiuWWUrsoevQCr6jXpfBgHn29/dSBegpFm+O0+XXQATCCNxh yRQz3DCyCJzh+RaYM4BOXAok+5x5MGs= 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 4780D646FA; Wed, 17 May 2023 13:11:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76A30C433EF; Wed, 17 May 2023 13:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684329098; bh=Kl24PXPpp3YYxyqhSLbqSf3q6HFW4Damtq3CSDCskSI=; h=From:To:Cc:Subject:Date:From; b=ZvzxaL6miwnra1zIxCrPjbAaZ1S77jiTGPi+TWHY99GZHeuIe7t1zDn5PBjrO3aCc +d603Lljcw85VawWja8nf6gaVWqRpl9Nj7tZzRXkzY5DkbE/NOQHT5JDlBFMhSRcbN awDudFpa43agxm5K7LEfe328a3TXgVCRPNgQPIxdX1MMxEhTwcwBzOmH304yaQOTEA LAQ8CsSDBiyW+7ihNfrrYmE6bhtk+vaAzUlnNGRodoqU+/ltoPSxqzWVfnBSDhDAve m3pzvoi4G5qi9TF3RdkL/eQ12VTNlGpm/zby+dxVvfvof+Jx9Ig7iudo7tccKBreR5 3KVJ0fYIn0zfQ== From: Arnd Bergmann To: Andrew Morton Cc: linux-mm@kvack.org, Arnd Bergmann , Russell King , Catalin Marinas , Will Deacon , Michal Simek , Thomas Bogendoerfer , Helge Deller , Michael Ellerman , Palmer Dabbelt , Heiko Carstens , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "Rafael J. Wysocki" , Paul Moore , Eric Paris , Dennis Zhou , Tejun Heo , Christoph Lameter , Pavel Machek , Peter Zijlstra , Waiman Long , Boqun Feng , 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 00/14] mm/init/kernel: missing-prototypes warnings Date: Wed, 17 May 2023 15:10:48 +0200 Message-Id: <20230517131102.934196-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 69CFC20050 X-Stat-Signature: 85h6eu14355psoxz4jmqiuknqa8g8oqt X-HE-Tag: 1684329100-542652 X-HE-Meta: U2FsdGVkX1/KrcEXjDHS0fsc5iJbSxV09PqeoeWgm1xfevjiCx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x1ka33FEFCgkP50en2My45/tMxhdWhpJ+10lnfoj0x82l+Ct91tl/Wh95Yp26kYlJIcClwvEHbzdDfCiPLndGoxjRhBRc7bLIApGkqiLfZ58NU/b1UtOuKVjqkwUKAizkVeuIcwUSlylfV/Bdo45DRBdX69pkK/vXr7V6IexoM7tRmGvEC2hGKnMal0jLnOENoNBo6IJYGrdkr0Z9LOG+kEaBtiS6hIYwK1OSvOrHmn80afCFyyDZdLuCFK6TcsL8BIdugobx2lepHoxpslEzIVJIrwGMy2jDZhp9uyKlOxYdV5NepaFM8SAi8DQr8MgvJyrrvID60j3R0qhfxp2tg5Hd+GeH+0NO25sBe7nZTadLKWO+jf5z5PpJzKoLODNv9BjqAj6WYnLb6R3SBpug/Keq2Rnk0rqELmnNMu1wg0sm/ko81oLrv94x80bXyVn8rQkD+/paw4KZcjOJnFsMVGheXacGw4eZiNQDF1Cw45Dw8nQ8GHp7klXlmp6bpTWISpiFWaHzkGmcS9PBjyHcEkC7ZiYzfNz5zLegGDbYCXTG25yj9U3TaFc/hvj/s64QmQNpefTOkxfG7T19AywRwb7VCwoBfG7vI/OTFvFRg/WxF2Zx8Pxp0v6McbGvyiCfjwO5aNT5aTJzzO9U1hTDwZAofMVw2L38clLEiXGtbgrxkwgtozco88UyoPtp9uj9l++919f7umFkJvXAPuvBxgdurP81dOeY09VU0adqpmgTHoYlN03aeClEjtdGM9wrOiKJyWP4C/LFJjLFX8l4AhlPlRJz5hm7uoGutuEGJkSHLJIvK/X6okdl9G8hi0YJHZk7tmbdN3hALQx1suf1dYWAMcR dxuJ+Lhq dUyaitDC+eL8XVbD3FTWlDpaMLoYTGlKDGjQdYaNG+VwJAsPTBuxbE8RU8dsbcny 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: From: Arnd Bergmann These are patches addressing -Wmissing-prototypes warnings in common kernel code and memory management code files that usually get merged through the -mm tree. Andrew, can you pick these up in the -mm tree? Arnd Arnd Bergmann (14): mm: percpu: unhide pcpu_embed_first_chunk prototype mm: page_poison: always declare __kernel_map_pages() function mm: sparse: mark populate_section_memmap() static audit: avoid missing-prototype warnings lib: devmem_is_allowed: include linux/io.h locking: add lockevent_read() prototype panic: hide unused global functions panic: make function declarations visible kunit: include debugfs header file suspend: add a arch_resume_nosmt() prototype init: consolidate prototypes in linux/init.h init: move cifs_root_data() prototype into linux/mount.h thread_info: move function declarations to linux/thread_info.h time_namespace: always provide arch_get_vdso_data() prototype for vdso arch/arm/include/asm/irq.h | 1 - arch/arm64/include/asm/thread_info.h | 4 ---- arch/microblaze/include/asm/setup.h | 2 -- arch/mips/include/asm/irq.h | 1 - arch/parisc/kernel/smp.c | 1 - arch/powerpc/include/asm/irq.h | 1 - arch/riscv/include/asm/irq.h | 2 -- arch/riscv/include/asm/timex.h | 2 -- arch/s390/include/asm/thread_info.h | 3 --- arch/s390/kernel/entry.h | 2 -- arch/sh/include/asm/irq.h | 1 - arch/sh/include/asm/rtc.h | 2 -- arch/sh/include/asm/thread_info.h | 3 --- arch/sparc/include/asm/irq_32.h | 1 - arch/sparc/include/asm/irq_64.h | 1 - arch/sparc/include/asm/timer_64.h | 1 - arch/sparc/kernel/kernel.h | 4 ---- arch/x86/include/asm/irq.h | 2 -- arch/x86/include/asm/mem_encrypt.h | 3 --- arch/x86/include/asm/thread_info.h | 3 --- arch/x86/include/asm/time.h | 1 - arch/x86/include/asm/tsc.h | 1 - include/asm-generic/bug.h | 5 +++-- include/linux/acpi.h | 3 ++- include/linux/audit.h | 2 -- include/linux/audit_arch.h | 2 ++ include/linux/delay.h | 1 + include/linux/init.h | 20 ++++++++++++++++++++ include/linux/mm.h | 3 +-- include/linux/mount.h | 2 ++ include/linux/panic.h | 3 +++ include/linux/percpu.h | 2 -- include/linux/suspend.h | 2 ++ include/linux/thread_info.h | 5 +++++ include/linux/time_namespace.h | 3 ++- init/do_mounts.c | 2 -- init/main.c | 18 ------------------ kernel/audit.h | 2 +- kernel/locking/lock_events.h | 4 ++++ kernel/panic.c | 3 +-- lib/devmem_is_allowed.c | 1 + lib/kunit/debugfs.c | 1 + mm/sparse.c | 2 +- 43 files changed, 52 insertions(+), 76 deletions(-)