From patchwork Thu May 23 00:35:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 13671193 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 3A9F2C25B78 for ; Thu, 23 May 2024 00:36:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1F746B0082; Wed, 22 May 2024 20:36:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ACF516B0088; Wed, 22 May 2024 20:36:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BE9C6B0089; Wed, 22 May 2024 20:36:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 7F3EE6B0082 for ; Wed, 22 May 2024 20:36:01 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E5D5E80677 for ; Thu, 23 May 2024 00:36:00 +0000 (UTC) X-FDA: 82147793280.04.ACA75AB Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf01.hostedemail.com (Postfix) with ESMTP id BC40240008 for ; Thu, 23 May 2024 00:35:58 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=hmpxBOTZ; dmarc=none; spf=pass (imf01.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716424559; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=1/qeFM4uZXTyCtTvohqeJEESm3FdLWpRq+Kdi1PZjGc=; b=BgdXMaLIdEibw3IWadyD6w443Ro8QDBEbLJlhZWpYID8LuXdwxDv1/2qHtlLBsw4a8RCA7 oaZNWgJdqsBiX7dv3/1xc/9n3mnJtVcz3RJ2YcxK9+qHLZk2KD2llvxG7DobXx2Qam20Ts ofGZuXIUTZovQW6vinEER98H+4vIWvs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716424559; a=rsa-sha256; cv=none; b=cNibFZy4MkruGUKvNOJwo+g/7LDLshyCIj3XUqPWmvp3VT8LAx4vmpTPK2LHh8pPTef/h3 spkTFmOnnR7+hEhhOeUQ8GrlHuLvOh2R0AE3G8oUrnYxOV//LbBJE/ju20c6ljBzlttz2Y QmP0IkiiTk6TboZJRjoVHE2JkQmqXJU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=hmpxBOTZ; dmarc=none; spf=pass (imf01.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id F05BFCE1368; Thu, 23 May 2024 00:35:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39002C2BBFC; Thu, 23 May 2024 00:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1716424554; bh=ih8b/3CZbqHdZl1ThjvjQRZ7k9GtmJhAAEw7BB3WLwU=; h=Date:From:To:Cc:Subject:From; b=hmpxBOTZSHiv4C92i/Uiz7mKoF+uVwhGePMPjg6NPi62AG2VQXLwnFQRr+dGiETsQ oGu/cvzqhwiprdygmn8YH8vJO2YWVc8QeAGrcHR0cn4ibYUZbGIG0oEKnuI1zaYC4c O6jdOe0CCzWMDKUufJhwZ94Y11jxHsRmgmnYPxLs= Date: Wed, 22 May 2024 17:35:53 -0700 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] additional non-MM updates for 6.10-rc1 Message-Id: <20240522173553.4653fabdd1f4d9825f38e0ae@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Stat-Signature: 7s1finxj7pwbead6md9ggj9c46zzbjim X-Rspamd-Queue-Id: BC40240008 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1716424558-937614 X-HE-Meta: U2FsdGVkX18lKzzjcUa6OMWUc8WfEn8edGX2CbJIxII2ABkqMZRlKKM75NWB7dJ6aCUdRx5RWs2ZZRMhj4NhbbNfdy5rP6lRjqTs3VNKwyJ766cFty6iPkX5zyF3vCe52mqPfo4DOXt4zaAC0doMvVC7ddXYSey9jIKIWF01B3K7BhoBGbYn+mtijDpFttFTb3VJtN/EG2m+gTBRBsfDXMfqc7eCwMdfovrt2ANRvXQ7YECquKONj0sG31ZQqPTBEEbEKHK7wwoYUxPKFYwqngyut3o81CiHpheObs0/MsmSi9NBi97XE0ib1IiaJ2UruxwFAsFTajn2oSZEogToncRuLMBflrnZt0UjE6FCFZLVqQ1XWd5moIkwytymjHecSfN88d6K9ZUESccpumTIvmgxmXjy1AlVOxtNezcMcb23J49iKIokia8n3bau6QgOtkAPvgoGqmuIqzhOqVo44jY8w+xMHg8MqvxVfBXAov+f9oGZ6IGuvmHkjCNxIO3wwFaa/tWZQGF1Lu8jnnpkWXwi1Q9rB+9veEe2TBXL3hOuzh49o6vUzhGP9cFGwp1bKKLP6jC3E8WhKMyVC1QlemRrPMWIs8o7+e9of6ESlepIeAwBTz0UFMc5MqLcyyMMMxcZvpDDhdWprLtB4jrkL+iipkIYgVlANQVvit8+wCWXhm3vob4H/5Y9b4S8T+IMQqz3CAsOiQx7S1QN4DAsiFOonZQr9IAQpmdcOfoEZmZkZXfv7TC2f2ak5QdhRs8dZ1vMBb0jMWLGHrP1vroPZlWniacfSe8LnRFUsMKbbRVgQYaSoiUIM+hHXJ8KblzhaSe+EGTpa0JoOtPRQigzXzvKggtW3D+Qq7oAVpV90uHu5Ij9MvUoNipWHD3t3FDaf4jWUaHaNj2H/N0zhFDJ+gpTA8fgnMy25VYf+h4rtvo= 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: List-Subscribe: List-Unsubscribe: Linus, please merge this batch of updates for other-than-MM subsystems. These things missed the first round of updates as I was awaiting clarification of readiness and of the consequences of the additional warnings Arnd is enabling. Thanks. The following changes since commit eb6a9339efeb6f3d2b5c86fdf2382cdc293eca2c: Merge tag 'mm-nonmm-stable-2024-05-19-11-56' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm (2024-05-19 14:02:03 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-nonmm-stable-2024-05-22-17-30 for you to fetch changes up to db3e24a02e29b507c24c0adb4d22914c65dab763: nilfs2: make block erasure safe in nilfs_finish_roll_forward() (2024-05-19 14:36:21 -0700) ---------------------------------------------------------------- - A series ("kbuild: enable more warnings by default") from Arnd Bergmann which enables a number of additional build-time warnings. We fixed all the fallout which we could find, there may still be a few stragglers. - Samuel Holland has developed the series "Unified cross-architecture kernel-mode FPU API". This does a lot of consolidation of per-architecture kernel-mode FPU usage and enables the use of newer AMD GPUs on RISC-V. - Tao Su has fixed some selftests build warnings in the series "Selftests: Fix compilation warnings due to missing _GNU_SOURCE definition". - This pull also includes a nilfs2 fixup from Ryusuke Konishi. ---------------------------------------------------------------- Arnd Bergmann (5): kbuild: turn on -Wextra by default kbuild: remove redundant extra warning flags kbuild: turn on -Wrestrict by default kbuild: enable -Wformat-truncation on clang kbuild: enable -Wcast-function-type-strict unconditionally Michael Ellerman (1): drm/amd/display: only use hard-float, not altivec on powerpc Ryusuke Konishi (1): nilfs2: make block erasure safe in nilfs_finish_roll_forward() Samuel Holland (14): x86/fpu: fix asm/fpu/types.h include guard arch: add ARCH_HAS_KERNEL_FPU_SUPPORT ARM: implement ARCH_HAS_KERNEL_FPU_SUPPORT ARM: crypto: use CC_FLAGS_FPU for NEON CFLAGS arm64: implement ARCH_HAS_KERNEL_FPU_SUPPORT arm64: crypto: use CC_FLAGS_FPU for NEON CFLAGS lib/raid6: use CC_FLAGS_FPU for NEON CFLAGS LoongArch: implement ARCH_HAS_KERNEL_FPU_SUPPORT powerpc: implement ARCH_HAS_KERNEL_FPU_SUPPORT x86: implement ARCH_HAS_KERNEL_FPU_SUPPORT riscv: add support for kernel-mode FPU drm/amd/display: use ARCH_HAS_KERNEL_FPU_SUPPORT selftests/fpu: move FP code to a separate translation unit selftests/fpu: allow building on other architectures Tao Su (2): Revert "selftests/harness: remove use of LINE_MAX" selftests/harness: use 1024 in place of LINE_MAX Documentation/core-api/floating-point.rst | 78 ++++++++++++++++++++++++++ Documentation/core-api/index.rst | 1 + Makefile | 5 ++ arch/Kconfig | 6 ++ arch/arm/Makefile | 7 +++ arch/arm/include/asm/fpu.h | 15 +++++ arch/arm/lib/Makefile | 3 +- arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 9 ++- arch/arm64/include/asm/fpu.h | 15 +++++ arch/arm64/lib/Makefile | 6 +- arch/loongarch/Kconfig | 1 + arch/loongarch/Makefile | 5 +- arch/loongarch/include/asm/fpu.h | 1 + arch/powerpc/Kconfig | 1 + arch/powerpc/Makefile | 5 +- arch/powerpc/include/asm/fpu.h | 28 +++++++++ arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 3 + arch/riscv/include/asm/fpu.h | 16 ++++++ arch/riscv/kernel/Makefile | 1 + arch/riscv/kernel/kernel_mode_fpu.c | 28 +++++++++ arch/x86/Kconfig | 1 + arch/x86/Makefile | 20 +++++++ arch/x86/include/asm/fpu.h | 13 +++++ arch/x86/include/asm/fpu/types.h | 6 +- drivers/gpu/drm/amd/display/Kconfig | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c | 35 +----------- drivers/gpu/drm/amd/display/dc/dml/Makefile | 36 +----------- drivers/gpu/drm/amd/display/dc/dml2/Makefile | 36 +----------- fs/nilfs2/recovery.c | 4 ++ include/linux/fpu.h | 12 ++++ lib/Kconfig.debug | 2 +- lib/Makefile | 26 +-------- lib/raid6/Makefile | 33 ++++------- lib/test_fpu.h | 8 +++ lib/{test_fpu.c => test_fpu_glue.c} | 37 ++---------- lib/test_fpu_impl.c | 37 ++++++++++++ scripts/Makefile.extrawarn | 29 ++++------ tools/testing/selftests/kselftest_harness.h | 11 +--- tools/testing/selftests/mm/mdwe_test.c | 1 - 41 files changed, 365 insertions(+), 220 deletions(-) create mode 100644 Documentation/core-api/floating-point.rst create mode 100644 arch/arm/include/asm/fpu.h create mode 100644 arch/arm64/include/asm/fpu.h create mode 100644 arch/powerpc/include/asm/fpu.h create mode 100644 arch/riscv/include/asm/fpu.h create mode 100644 arch/riscv/kernel/kernel_mode_fpu.c create mode 100644 arch/x86/include/asm/fpu.h create mode 100644 include/linux/fpu.h create mode 100644 lib/test_fpu.h rename lib/{test_fpu.c => test_fpu_glue.c} (71%) create mode 100644 lib/test_fpu_impl.c