Skip to content
  1. Jun 08, 2025
  2. Jun 07, 2025
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 8630c59e
      Linus Torvalds authored
      Pull Kbuild updates from Masahiro Yamada:
      
       - Add support for the EXPORT_SYMBOL_GPL_FOR_MODULES() macro, which
         exports a symbol only to specified modules
      
       - Improve ABI handling in gendwarfksyms
      
       - Forcibly link lib-y objects to vmlinux even if CONFIG_MODULES=n
      
       - Add checkers for redundant or missing <linux/export.h> inclusion
      
       - Deprecate the extra-y syntax
      
       - Fix a genksyms bug when including enum constants from *.symref files
      
      * tag 'kbuild-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (28 commits)
        genksyms: Fix enum consts from a reference affecting new values
        arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds
        kbuild: set y instead of 1 to KBUILD_{BUILTIN,MODULES}
        efi/libstub: use 'targets' instead of extra-y in Makefile
        module: make __mod_device_table__* symbols static
        scripts/misc-check: check unnecessary #include <linux/export.h> when W=1
        scripts/misc-check: check missing #include <linux/export.h> when W=1
        scripts/misc-check: add double-quotes to satisfy shellcheck
        kbuild: move W=1 check for scripts/misc-check to top-level Makefile
        scripts/tags.sh: allow to use alternative ctags implementation
        kconfig: introduce menu type enum
        docs: symbol-namespaces: fix reST warning with literal block
        kbuild: link lib-y objects to vmlinux forcibly even when CONFIG_MODULES=n
        tinyconfig: enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
        docs/core-api/symbol-namespaces: drop table of contents and section numbering
        modpost: check forbidden MODULE_IMPORT_NS("module:") at compile time
        kbuild: move kbuild syntax processing to scripts/Makefile.build
        Makefile: remove dependency on archscripts for header installation
        Documentation/kbuild: Add new gendwarfksyms kABI rules
        Documentation/kbuild: Drop section numbers
        ...
      8630c59e
    • Linus Torvalds's avatar
      Merge tag 'sh-for-v6.16-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux · b3154a6f
      Linus Torvalds authored
      Pull sh updates from John Paul Adrian Glaubitz:
      
       - replace the __ASSEMBLY__ with __ASSEMBLER__ macro in all headers
         since the latter is now defined automatically by both GCC and Clang
         when compiling assembly code (Thomas Huth)
      
       - set the default SPI mode for the ecovec24 board which became
         necessary after a new mode member as added to the sh_msiof_spi_info
         struct in cf9e4784 ("spi: sh-msiof: Add slave mode support")
         (Geert Uytterhoeven)
      
       - remove unused variables in the kprobes code in
         kprobe_exceptions_notify() (Mike Rapoport)
      
      * tag 'sh-for-v6.16-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux:
        sh: kprobes: Remove unused variables in kprobe_exceptions_notify()
        sh: ecovec24: Make SPI mode explicit
        sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers
      b3154a6f
    • Linus Torvalds's avatar
      Merge tag 'loongarch-6.16' of... · b7191581
      Linus Torvalds authored
      Merge tag 'loongarch-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch updates from Huacai Chen:
      
       - Adjust the 'make install' operation
      
       - Support SCHED_MC (Multi-core scheduler)
      
       - Enable ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS
      
       - Enable HAVE_ARCH_STACKLEAK
      
       - Increase max supported CPUs up to 2048
      
       - Introduce the numa_memblks conversion
      
       - Add PWM controller nodes in dts
      
       - Some bug fixes and other small changes
      
      * tag 'loongarch-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        platform/loongarch: laptop: Unregister generic_sub_drivers on exit
        platform/loongarch: laptop: Add backlight power control support
        platform/loongarch: laptop: Get brightness setting from EC on probe
        LoongArch: dts: Add PWM support to Loongson-2K2000
        LoongArch: dts: Add PWM support to Loongson-2K1000
        LoongArch: dts: Add PWM support to Loongson-2K0500
        LoongArch: vDSO: Correctly use asm parameters in syscall wrappers
        LoongArch: Fix panic caused by NULL-PMD in huge_pte_offset()
        LoongArch: Preserve firmware configuration when desired
        LoongArch: Avoid using $r0/$r1 as "mask" for csrxchg
        LoongArch: Introduce the numa_memblks conversion
        LoongArch: Increase max supported CPUs up to 2048
        LoongArch: Enable HAVE_ARCH_STACKLEAK
        LoongArch: Enable ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS
        LoongArch: Add SCHED_MC (Multi-core scheduler) support
        LoongArch: Add some annotations in archhelp
        LoongArch: Using generic scripts/install.sh in `make install`
        LoongArch: Add a default install.sh
      b7191581
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · af477f4d
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of fix patches for the 6.16-rc1 merge window.
      
        Most of changes are about ASoC, especially lots of AVS driver fixes.
        Larger LOCs are seen in TAS571x codec drivers, but the changes are
        trivial and safe. The rest are all device-specific small fixes"
      
      * tag 'sound-fix-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (27 commits)
        ASoC: Intel: avs: boards: Fix rt5663 front end name
        ASoC: Intel: avs: Simplify verification of parse_int_array() result
        ALSA: usb-audio: Add implicit feedback quirk for RODE AI-1
        ALSA: hda: Ignore unsol events for cards being shut down
        ALSA: hda: Add new pci id for AMD GPU display HD audio controller
        ALSA: hda: cs35l41: Constify regmap_irq_chip
        ALSA: usb-audio: Add a quirk for Lenovo Thinkpad Thunderbolt 3 dock
        ASoC: ti: omap-hdmi: Re-add dai_link->platform to fix card init
        ASoC: pcm: Do not open FEs with no BEs connected
        ASoC: rt1320: fix speaker noise when volume bar is 100%
        ASoC: Intel: avs: Include missing string.h
        ASoC: Intel: avs: Verify content returned by parse_int_array()
        ASoC: Intel: avs: Verify kcalloc() status when setting constraints
        ASoC: Intel: avs: Fix paths in MODULE_FIRMWARE hints
        ASoC: Intel: avs: Fix possible null-ptr-deref when initing hw
        ASoC: Intel: avs: Fix PPLCxFMT calculation
        ASoC: Intel: avs: Fix deadlock when the failing IPC is SET_D0IX
        ASoC: codecs: hda: Fix RPM usage count underflow
        ASoC: amd: yc: Add support for Lenovo Yoga 7 16ARP8
        ASoC: tas571x: fix tas5733 num_controls
        ...
      af477f4d
    • Steven Rostedt's avatar
      tracing: Add rcu annotation around file->filter accesses · 549e914c
      Steven Rostedt authored
      Running sparse on trace_events_filter.c triggered several warnings about
      file->filter being accessed directly even though it's annotated with __rcu.
      
      Add rcu_dereference() around it and shuffle the logic slightly so that
      it's always referenced via accessor functions.
      
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Link: https://lore.kernel.org/20250607102821.6c7effbf@gandalf.local.home
      
      
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      549e914c
    • Linus Torvalds's avatar
      Merge tag 'ubifs-for-linus-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 5b032cac
      Linus Torvalds authored
      Pull JFFS2 and UBIFS fixes from Richard Weinberger:
       "JFFS2:
         - Correctly check return code of jffs2_prealloc_raw_node_refs()
      
        UBIFS:
         - Spelling fixes"
      
      * tag 'ubifs-for-linus-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        jffs2: check jffs2_prealloc_raw_node_refs() result in few other places
        jffs2: check that raw node were preallocated before writing summary
        ubifs: Fix grammar in error message
      5b032cac
    • Mike Rapoport's avatar
      sh: kprobes: Remove unused variables in kprobe_exceptions_notify() · 8a368260
      Mike Rapoport authored
      
      
      kbuild reports the following warning:
      
         arch/sh/kernel/kprobes.c: In function 'kprobe_exceptions_notify':
      >> arch/sh/kernel/kprobes.c:412:24: warning: variable 'p' set but not used [-Wunused-but-set-variable]
           412 |         struct kprobe *p = NULL;
               |                        ^
      
      The variable 'p' is indeed unused since the commit fa5a24b1
      ("sh/kprobes: Don't call the ->break_handler() in SH kprobes code")
      
      Remove that variable along with 'kprobe_opcode_t *addr' which also
      becomes unused after 'p' is removed.
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202505151341.EuRFR22l-lkp@intel.com/
      
      
      Fixes: fa5a24b1 ("sh/kprobes: Don't call the ->break_handler() in SH kprobes code")
      Signed-off-by: default avatarMike Rapoport (Microsoft) <rppt@kernel.org>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      8a368260
    • Geert Uytterhoeven's avatar
      sh: ecovec24: Make SPI mode explicit · ab0a168f
      Geert Uytterhoeven authored
      
      
      Commit cf9e4784 ("spi: sh-msiof: Add slave mode support") added
      a new mode member to the sh_msiof_spi_info structure, but did not update
      any board files.  Hence all users in board files rely on the default
      being host mode.
      
      Make this unambiguous by configuring host mode explicitly.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      ab0a168f
    • Thomas Huth's avatar
      sh: Replace __ASSEMBLY__ with __ASSEMBLER__ in all headers · 9cc64695
      Thomas Huth authored
      
      
      While the GCC and Clang compilers already define __ASSEMBLER__
      automatically when compiling assembly code, __ASSEMBLY__ is a
      macro that only gets defined by the Makefiles in the kernel.
      This can be very confusing when switching between userspace
      and kernelspace coding, or when dealing with uapi headers that
      rather should use __ASSEMBLER__ instead. So let's standardize on
      the __ASSEMBLER__ macro that is provided by the compilers now.
      
      This is a completely mechanical patch (done with a simple "sed -i"
      statement).
      
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Rich Felker <dalias@libc.org>
      Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Cc: linux-sh@vger.kernel.org
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      9cc64695
    • Petr Pavlu's avatar
      genksyms: Fix enum consts from a reference affecting new values · c50a04f8
      Petr Pavlu authored
      
      
      Enumeration constants read from a symbol reference file can incorrectly
      affect new enumeration constants parsed from an actual input file.
      
      Example:
      
       $ cat test.c
       enum { E_A, E_B, E_MAX };
       struct bar { int mem[E_MAX]; };
       int foo(struct bar *a) {}
       __GENKSYMS_EXPORT_SYMBOL(foo);
      
       $ cat test.c | ./scripts/genksyms/genksyms -T test.0.symtypes
       #SYMVER foo 0x070d854d
      
       $ cat test.0.symtypes
       E#E_MAX 2
       s#bar struct bar { int mem [ E#E_MAX ] ; }
       foo int foo ( s#bar * )
      
       $ cat test.c | ./scripts/genksyms/genksyms -T test.1.symtypes -r test.0.symtypes
       <stdin>:4: warning: foo: modversion changed because of changes in enum constant E_MAX
       #SYMVER foo 0x9c9dfd81
      
       $ cat test.1.symtypes
       E#E_MAX ( 2 ) + 3
       s#bar struct bar { int mem [ E#E_MAX ] ; }
       foo int foo ( s#bar * )
      
      The __add_symbol() function includes logic to handle the incrementation of
      enumeration values, but this code is also invoked when reading a reference
      file. As a result, the variables last_enum_expr and enum_counter might be
      incorrectly set after reading the reference file, which later affects
      parsing of the actual input.
      
      Fix the problem by splitting the logic for the incrementation of
      enumeration values into a separate function process_enum() and call it from
      __add_symbol() only when processing non-reference data.
      
      Fixes: e37ddb82 ("genksyms: Track changes to enum constants")
      Signed-off-by: default avatarPetr Pavlu <petr.pavlu@suse.com>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      c50a04f8
    • Masahiro Yamada's avatar
      arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds · e21efe83
      Masahiro Yamada authored
      
      
      The extra-y syntax is deprecated. Instead, use always-$(KBUILD_BUILTIN),
      which behaves equivalently.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Reviewed-by: default avatarNicolas Schier <n.schier@avm.de>
      e21efe83
Loading