Skip to content
  1. Jul 07, 2023
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.5-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 94e0d43e
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "These fix a couple of compiler warnings, refine an ACPI device
        enumeration quirk to address a driver regression and clean up code.
      
        Specifics:
      
         - Make acpi_companion_match() return a const pointer and update its
           callers accordingly (Andy Shevchenko)
      
         - Move the extern declaration of the acpi_root variable to a header
           file so as to address a compiler warning (Andy Shevchenko)
      
         - Address compiler warnings in the ACPI device enumeration code by
           adding a missing header file include to it (Ben Dooks)
      
         - Refine the SMB0001 quirk in the ACPI device enumeration code so as
           to address an i2c-scmi driver regression (Andy Shevchenko)
      
         - Clean up two pieces of the ACPI device enumeration code (Andy
           Shevchenko)"
      
      * tag 'acpi-6.5-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: scan: Use the acpi_match_acpi_device() helper
        ACPI: platform: Move SMB0001 HID to the header and reuse
        ACPI: platform: Ignore SMB0001 only when it has resources
        ACPI: bus: Introduce acpi_match_acpi_device() helper
        ACPI: scan: fix undeclared variable warnings by including sleep.h
        ACPI: bus: Constify acpi_companion_match() returned value
        ACPI: scan: Move acpi_root to internal header
      94e0d43e
    • Linus Torvalds's avatar
      Merge tag 'docs-6.5-2' of git://git.lwn.net/linux · 7210de3a
      Linus Torvalds authored
      Pull mode documentation updates from Jonathan Corbet:
       "A half-dozen late arriving docs patches. They are mostly fixes, but we
        also have a kernel-doc tweak for enums and the long-overdue removal of
        the outdated and redundant patch-submission comments at the top of the
        MAINTAINERS file"
      
      * tag 'docs-6.5-2' of git://git.lwn.net/linux:
        scripts: kernel-doc: support private / public marking for enums
        Documentation: KVM: SEV: add a missing backtick
        Documentation: ACPI: fix typo in ssdt-overlays.rst
        Fix documentation of panic_on_warn
        docs: remove the tips on how to submit patches from MAINTAINERS
        docs: fix typo in zh_TW and zh_CN translation
      7210de3a
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 1793eac1
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A few mostly minor fixes that came in during the merge window, plus
        one administrative update for Jonas' e-mail address.
      
        The spi-geni-qcom fix is more major than the others, fixing the newly
        added DMA support for large reads which trigger DMA"
      
      * tag 'spi-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: bcm{63xx,bca}-hsspi: update my email address
        spi: rzv2m-csi: Fix SoC product name
        spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
        spi: spi-geni-qcom: enable SPI_CONTROLLER_MUST_TX for GPI DMA mode
      1793eac1
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v6.5-merge-window' of... · 146d7ce3
      Linus Torvalds authored
      Merge tag 'regulator-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fix from Mark Brown:
       "A simple dependency fix for a newly added driver"
      
      * tag 'regulator-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: raa215300: Add build dependency with COMMON_CLK
      146d7ce3
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 8066178f
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix bad git merge of #endif in arm64 code
      
         A merge of the arm64 tree caused #endif to go into the wrong place
      
       - Fix crash on lseek of write access to tracefs/error_log
      
         Opening error_log as write only, and then doing an lseek() causes a
         kernel panic, because the lseek() handle expects a "seq_file" to
         exist (which is not done on write only opens). Use tracing_lseek()
         that tests for this instead of calling the default seq lseek handler.
      
       - Check for negative instead of -E2BIG for error on strscpy() returns
      
         Instead of testing for -E2BIG from strscpy(), to be more robust,
         check for less than zero, which will make sure it catches any error
         that strscpy() may someday return.
      
      * tag 'trace-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing/boot: Test strscpy() against less than zero for error
        arm64: ftrace: fix build error with CONFIG_FUNCTION_GRAPH_TRACER=n
        tracing: Fix null pointer dereference in tracing_err_log_open()
      8066178f
    • Linus Torvalds's avatar
      Merge tag 'v6.5/vfs.fixes.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 7fdeb23f
      Linus Torvalds authored
      Pull vfs fixes from Christian Brauner:
       "This contains two minor fixes for Jan's rename locking work:
      
         - Unlocking the source inode was guarded by a check whether source
           was non-NULL. This doesn't make sense because source must be
           non-NULL and the commit message explains in detail why
      
         - The lock_two_nondirectories() helper called WARN_ON_ONCE() and
           dereferenced the inodes unconditionally but the underlying
           lock_two_inodes() helper and the kernel documentation for that
           function are clear that it is valid to pass NULL arguments, so a
           non-NULL check is needed. No callers currently pass NULL arguments
           but let's not knowingly leave landmines around"
      
      * tag 'v6.5/vfs.fixes.2' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
        fs: don't assume arguments are non-NULL
        fs: no need to check source
      7fdeb23f
    • Linus Torvalds's avatar
      Merge tag 's390-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · a4524835
      Linus Torvalds authored
      Pull more s390 updates from Alexander Gordeev:
      
       - Fix virtual vs physical address confusion in vmem_add_range() and
         vmem_remove_range() functions
      
       - Include <linux/io.h> instead of <asm/io.h> and <asm-generic/io.h>
         throughout s390 code
      
       - Make all PSW related defines also available for assembler files.
         Remove PSW_DEFAULT_KEY define from uapi for that
      
       - When adding an undefined symbol the build still succeeds, but
         userspace crashes trying to execute VDSO, because the symbol is not
         resolved. Add undefined symbols check to prevent that
      
       - Use kvmalloc_array() instead of kzalloc() for allocaton of 256k
         memory when executing s390 crypto adapter IOCTL
      
       - Add -fPIE flag to prevent decompressor misaligned symbol build error
         with clang
      
       - Use .balign instead of .align everywhere. This is a no-op for s390,
         but with this there no mix in using .align and .balign anymore
      
       - Filter out -mno-pic-data-is-text-relative flag when compiling kernel
         to prevent VDSO build error
      
       - Rework entering of DAT-on mode on CPU restart to use PSW_KERNEL_BITS
         mask directly
      
       - Do not retry administrative requests to some s390 crypto cards, since
         the firmware assumes replay attacks
      
       - Remove most of the debug code, which is build in when kernel config
         option CONFIG_ZCRYPT_DEBUG is enabled
      
       - Remove CONFIG_ZCRYPT_MULTIDEVNODES kernel config option and switch
         off the multiple devices support for the s390 zcrypt device driver
      
       - With the conversion to generic entry machine checks are accounted to
         the current context instead of irq time. As result, the STCKF
         instruction at the beginning of the machine check handler and the
         lowcore member are no longer required, therefore remove it
      
       - Fix various typos found with codespell
      
       - Minor cleanups to CPU-measurement Counter and Sampling Facilities
         code
      
       - Revert patch that removes VMEM_MAX_PHYS macro, since it causes a
         regression
      
      * tag 's390-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (25 commits)
        Revert "s390/mm: get rid of VMEM_MAX_PHYS macro"
        s390/cpum_sf: remove check on CPU being online
        s390/cpum_sf: handle casts consistently
        s390/cpum_sf: remove unnecessary debug statement
        s390/cpum_sf: remove parameter in call to pr_err
        s390/cpum_sf: simplify function setup_pmu_cpu
        s390/cpum_cf: remove unneeded debug statements
        s390/entry: remove mcck clock
        s390: fix various typos
        s390/zcrypt: remove ZCRYPT_MULTIDEVNODES kernel config option
        s390/zcrypt: do not retry administrative requests
        s390/zcrypt: cleanup some debug code
        s390/entry: rework entering DAT-on mode on CPU restart
        s390/mm: fence off VM macros from asm and linker
        s390: include linux/io.h instead of asm/io.h
        s390/ptrace: make all psw related defines also available for asm
        s390/ptrace: remove PSW_DEFAULT_KEY from uapi
        s390/vdso: filter out mno-pic-data-is-text-relative cflag
        s390: consistently use .balign instead of .align
        s390/decompressor: fix misaligned symbol build error
        ...
      a4524835
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-bus' and 'acpi-scan' · 2e178ee1
      Rafael J. Wysocki authored
      Merge additional ACPI device enumeration code changes for 6.5-rc1.
      
       - Make acpi_companion_match() return a const pointer and update its
         callers accordingly (Andy Shevchenko).
      
       - Move the extern declaration of the acpi_root variable to a header
         file so as to address a compiler warning (Andy Shevchenko).
      
       - Address compiler warnings in the ACPI device enumeration code by
         adding a missing header file include to it (Ben Dooks).
      
       - Refine the SMB0001 quirk in the ACPI device enumeration code so as to
         address an i2c-scmi driver regression (Andy Shevchenko).
      
       - Clean up two pieces of the ACPI device enumeration code (Andy
         Shevchenko).
      
      * acpi-bus:
        ACPI: bus: Constify acpi_companion_match() returned value
      
      * acpi-scan:
        ACPI: scan: Use the acpi_match_acpi_device() helper
        ACPI: platform: Move SMB0001 HID to the header and reuse
        ACPI: platform: Ignore SMB0001 only when it has resources
        ACPI: bus: Introduce acpi_match_acpi_device() helper
        ACPI: scan: fix undeclared variable warnings by including sleep.h
        ACPI: scan: Move acpi_root to internal header
      2e178ee1
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic · 7b82e904
      Linus Torvalds authored
      Pull asm-generic updates from Arnd Bergmann:
       "These are cleanups for architecture specific header files:
      
         - the comments in include/linux/syscalls.h have gone out of sync and
           are really pointless, so these get removed
      
         - The asm/bitsperlong.h header no longer needs to be architecture
           specific on modern compilers, so use a generic version for newer
           architectures that use new enough userspace compilers
      
         - A cleanup for virt_to_pfn/virt_to_bus to have proper type checking,
           forcing the use of pointers"
      
      * tag 'asm-generic-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        syscalls: Remove file path comments from headers
        tools arch: Remove uapi bitsperlong.h of hexagon and microblaze
        asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch
        m68k/mm: Make pfn accessors static inlines
        arm64: memory: Make virt_to_pfn() a static inline
        ARM: mm: Make virt_to_pfn() a static inline
        asm-generic/page.h: Make pfn accessors static inlines
        xen/netback: Pass (void *) to virt_to_page()
        netfs: Pass a pointer to virt_to_page()
        cifs: Pass a pointer to virt_to_page() in cifsglob
        cifs: Pass a pointer to virt_to_page()
        riscv: mm: init: Pass a pointer to virt_to_page()
        ARC: init: Pass a pointer to virt_to_pfn() in init
        m68k: Pass a pointer to virt_to_pfn() virt_to_page()
        fs/proc/kcore.c: Pass a pointer to virt_addr_valid()
      7b82e904
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 9f57c13f
      Linus Torvalds authored
      Pull SoC fixes from Arnd Bergmann:
       "There are three small fixes that came up sincie the past week:
      
         - an incorrect bit offset in ixp4xx bus driver
      
         - a riscv randconfig regression in the thead platform I merged
      
         - whitespace fixes for some dts files"
      
      * tag 'soc-fixes-6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        bus: ixp4xx: fix IXP4XX_EXP_T1_MASK
        ARM: dts: st: add missing space before {
        RISC-V: make ARCH_THEAD preclude XIP_KERNEL
      9f57c13f
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 0b907305
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "New support:
         - TI J721S2 CSI BCDMA support
      
        Updates:
         - Native HDMI support for dw edma driver
         - ste dma40 updates for supporting proper SRAM handle in DT
         - removal of dma device chancnt setting in drivers"
      
      * tag 'dmaengine-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (28 commits)
        dmaengine: sprd: Don't set chancnt
        dmaengine: hidma: Don't set chancnt
        dmaengine: plx_dma: Don't set chancnt
        dmaengine: axi-dmac: Don't set chancnt
        dmaengine: dw-axi-dmac: Don't set chancnt
        dmaengine: qcom: bam_dma: allow omitting num-{channels,ees}
        dmaengine: dw-edma: Add HDMA DebugFS support
        dmaengine: dw-edma: Add support for native HDMA
        dmaengine: dw-edma: Create a new dw_edma_core_ops structure to abstract controller operation
        dmaengine: dw-edma: Rename dw_edma_core_ops structure to dw_edma_plat_ops
        dmaengine: ste_dma40: use proper format string for resource_size_t
        dmaengine: make QCOM_HIDMA depend on HAS_IOMEM
        dmaengine: ste_dma40: fix typo in enum documentation
        dmaengine: ste_dma40: use correct print specfier for resource_size_t
        MAINTAINERS: Add myself as the DW eDMA driver reviewer
        MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
        MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
        dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance
        dt-bindings: dma: ti: Add J721S2 BCDMA
        dmaengine: ti: k3-psil-j721s2: Add PSI-L thread map for main CPSW2G
        ...
      0b907305
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-6.5-rc1' of git://www.linux-watchdog.org/linux-watchdog · c91e587b
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - add Xilinx Versal watchdog
      
       - support Hygon FCH/SCH (Server Controller Hub)
      
       - convert GPL notices to SPDX identifiers
      
       - other improvements
      
      * tag 'linux-watchdog-6.5-rc1' of git://www.linux-watchdog.org/linux-watchdog:
        watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)
        dt-bindings: watchdog: restrict node name suffixes
        MAINTAINERS: Add support for Xilinx versal watchdog
        watchdog: xilinx_wwdt: Add Versal window watchdog support
        dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog
        watchdog: ziirave_wdt: Switch i2c driver back to use .probe()
        watchdog: ibmasr: Replace GPL license notice with SPDX identifier
        watchdog: Convert GPL 2.0 notice to SPDX identifier
        watchdog: loongson1_wdt: Add DT support
      c91e587b
  2. Jul 06, 2023
    • Linus Torvalds's avatar
      Merge tag 'sh-for-v6.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux · c17414a2
      Linus Torvalds authored
      Pull sh updates from Adrian Glaubitz:
       "Fix a compiler warning in the J2 probing code and a fix by Sergey
        Shtylyov to avoid using IRQ0 on SH3 and SH4 targets. Masahiro Yamada
        made some clean-up in the build system to address reports by the 0day
        bot.
      
        The most notable changes come from Artur Rojek who addressed a number
        of issues in the DMA code, in particular a fix for the DMA channel
        offset calculation that was introduced in in 7f47c718 ("sh: dma:
        More legacy cpu dma chainsawing.") in 2012!
      
        Together with another change to correct the number of DMA channels for
        each SuperH SoC according to specification, Artur's series unbreaks
        the kernel on the SH7709 SoC allowing Linux to boot on the HP Jornada
        680 handheld again.
      
        Summary:
      
         - Provide unxlate_dev_mem_ptr() in asm/io.h
      
         - dma: Correct the number of DMA channels for SH7709
      
         - dma: Drop incorrect SH_DMAC_BASE1 definition for SH4
      
         - dma: Fix DMA channel offset calculation
      
         - Remove compiler flag duplication
      
         - Refactor header include path addition
      
         - Move build rule for cchips/hd6446x/ to arch/sh/Kbuild
      
         - Fix -Wmissing-include-dirs warnings for various platforms
      
         - Avoid using IRQ0 on SH3 and SH4
      
         - j2: Use ioremap() to translate device tree address into kernel
           memory"
      
      * tag 'sh-for-v6.5-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubitz/sh-linux:
        sh: Provide unxlate_dev_mem_ptr() in asm/io.h
        sh: dma: Correct the number of DMA channels for SH7709
        sh: dma: Drop incorrect SH_DMAC_BASE1 definition for SH4
        sh: dma: Fix DMA channel offset calculation
        sh: Remove compiler flag duplication
        sh: Refactor header include path addition
        sh: Move build rule for cchips/hd6446x/ to arch/sh/Kbuild
        sh: Fix -Wmissing-include-dirs warnings for various platforms
        sh: Avoid using IRQ0 on SH3 and SH4
        sh: j2: Use ioremap() to translate device tree address into kernel memory
      c17414a2
    • Linus Torvalds's avatar
      Merge tag 'phy-for-6.5_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · 7afb9d76
      Linus Torvalds authored
      Pull phy updates from Vinod Koul:
       "New Support:
         - Debugfs support for phy core and mediatek driver
         - Hisilicon inno-usb2-phy driver supporting Hi3798MV100
         - Qualcomm SGMII SerDes PHY driver, SM6115 & QCM2290 QMP-USB support,
           SA8775P USB PHY & USB3 UNI support, QUSB2 support for IPQ9574,
           IPQ9574 USB3 PHY
      
        UpdatesL
         - Sparx5 serdes phy power optimzation
         - cadence salvo usb properties and updates and torrent DP with PCIe &
           USB support
         - Yaml conversion for Broadcom kona USB bindings and MXS USB binding"
      
      * tag 'phy-for-6.5_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy: (67 commits)
        dt-bindings: phy: brcm,brcmstb-usb-phy: Fix error in "compatible" conditional schema
        dt-bindings: phy: mixel,mipi-dsi-phy: Remove assigned-clock* properties
        dt-bindings: phy: intel,combo-phy: restrict node name suffixes
        dt-bindings: phy: qcom,usb-hs-phy: Add compatible
        phy: tegra: xusb: check return value of devm_kzalloc()
        phy: qcom: qmp-combo: fix Display Port PHY configuration for SM8550
        phy: qcom: add the SGMII SerDes PHY driver
        dt-bindings: phy: describe the Qualcomm SGMII PHY
        phy: qualcomm: fix indentation in Makefile
        phy: usb: suppress OC condition for 7439b2
        phy: usb: Turn off phy when port is in suspend
        phy: tegra: xusb: Clear the driver reference in usb-phy dev
        dt-bindings: phy: mxs-usb-phy: add imx8ulp and imx8qm compatible
        dt-bindings: phy: mxs-usb-phy: convert to DT schema format
        dt-bindings: phy: qcom,qmp-usb: fix bindings error
        dt-bindings: phy: qcom,qmp-ufs: fix the sc8180x regs
        dt-bindings: phy: qcom,qmp-pcie: fix the sc8180x regs
        phy: mediatek: tphy: add debugfs files
        phy: core: add debugfs files
        phy: fsl-imx8mp-usb: add support for phy tuning
        ...
      7afb9d76
    • Linus Torvalds's avatar
      Merge tag 'net-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 68433066
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from bluetooth, bpf and wireguard.
      
        Current release - regressions:
      
         - nvme-tcp: fix comma-related oops after sendpage changes
      
        Current release - new code bugs:
      
         - ptp: make max_phase_adjustment sysfs device attribute invisible
           when not supported
      
        Previous releases - regressions:
      
         - sctp: fix potential deadlock on &net->sctp.addr_wq_lock
      
         - mptcp:
            - ensure subflow is unhashed before cleaning the backlog
            - do not rely on implicit state check in mptcp_listen()
      
        Previous releases - always broken:
      
         - net: fix net_dev_start_xmit trace event vs skb_transport_offset()
      
         - Bluetooth:
            - fix use-bdaddr-property quirk
            - L2CAP: fix multiple UaFs
            - ISO: use hci_sync for setting CIG parameters
            - hci_event: fix Set CIG Parameters error status handling
            - hci_event: fix parsing of CIS Established Event
            - MGMT: fix marking SCAN_RSP as not connectable
      
         - wireguard: queuing: use saner cpu selection wrapping
      
         - sched: act_ipt: various bug fixes for iptables <> TC interactions
      
         - sched: act_pedit: add size check for TCA_PEDIT_PARMS_EX
      
         - dsa: fixes for receiving PTP packets with 8021q and sja1105 tagging
      
         - eth: sfc: fix null-deref in devlink port without MAE access
      
         - eth: ibmvnic: do not reset dql stats on NON_FATAL err
      
        Misc:
      
         - xsk: honor SO_BINDTODEVICE on bind"
      
      * tag 'net-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (70 commits)
        nfp: clean mc addresses in application firmware when closing port
        selftests: mptcp: pm_nl_ctl: fix 32-bit support
        selftests: mptcp: depend on SYN_COOKIES
        selftests: mptcp: userspace_pm: report errors with 'remove' tests
        selftests: mptcp: userspace_pm: use correct server port
        selftests: mptcp: sockopt: return error if wrong mark
        selftests: mptcp: sockopt: use 'iptables-legacy' if available
        selftests: mptcp: connect: fail if nft supposed to work
        mptcp: do not rely on implicit state check in mptcp_listen()
        mptcp: ensure subflow is unhashed before cleaning the backlog
        s390/qeth: Fix vipa deletion
        octeontx-af: fix hardware timestamp configuration
        net: dsa: sja1105: always enable the send_meta options
        net: dsa: tag_sja1105: fix MAC DA patching from meta frames
        net: Replace strlcpy with strscpy
        pptp: Fix fib lookup calls.
        mlxsw: spectrum_router: Fix an IS_ERR() vs NULL check
        net/sched: act_pedit: Add size check for TCA_PEDIT_PARMS_EX
        xsk: Honor SO_BINDTODEVICE on bind
        ptp: Make max_phase_adjustment sysfs device attribute invisible when not supported
        ...
      68433066
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 73a3fcda
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this cycle, we've mainly investigated the zoned block device
        support along with patches such as correcting write pointers between
        f2fs and storage, adding asynchronous zone reset flow, and managing
        the number of open zones.
      
        Other than them, f2fs adds another mount option, "errors=x" to specify
        how to handle when it detects an unexpected behavior at runtime.
      
        Enhancements:
         - support 'errors=remount-ro|continue|panic' mount option
         - enforce some inode flag policies
         - allow .tmp compression given extensions
         - add some ioctls to manage the f2fs compression
         - improve looped node chain flow
         - avoid issuing small-sized discard commands during checkpoint
         - implement an asynchronous zone reset
      
        Bug fixes:
         - fix deadlock in xattr and inode page lock
         - fix and add sanity check in some error paths
         - fix to avoid NULL pointer dereference f2fs_write_end_io() along
           with put_super
         - set proper flags to quota files
         - fix potential deadlock due to unpaired node_write lock use
         - fix over-estimating free section during FG GC
         - fix the wrong condition to determine atomic context
      
        As usual, also there are a number of patches with code refactoring and
        minor clean-ups"
      
      * tag 'f2fs-for-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (46 commits)
        f2fs: fix to do sanity check on direct node in truncate_dnode()
        f2fs: only set release for file that has compressed data
        f2fs: fix compile warning in f2fs_destroy_node_manager()
        f2fs: fix error path handling in truncate_dnode()
        f2fs: fix deadlock in i_xattr_sem and inode page lock
        f2fs: remove unneeded page uptodate check/set
        f2fs: update mtime and ctime in move file range method
        f2fs: compress tmp files given extension
        f2fs: refactor struct f2fs_attr macro
        f2fs: convert to use sbi directly
        f2fs: remove redundant assignment to variable err
        f2fs: do not issue small discard commands during checkpoint
        f2fs: check zone write pointer points to the end of zone
        f2fs: add f2fs_ioc_get_compress_blocks
        f2fs: cleanup MIN_INLINE_XATTR_SIZE
        f2fs: add helper to check compression level
        f2fs: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method
        f2fs: do more sanity check on inode
        f2fs: compress: fix to check validity of i_compress_flag field
        f2fs: add sanity compress level check for compressed file
        ...
      73a3fcda
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.5-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · bb8e7e9f
      Linus Torvalds authored
      Pull more xfs updates from Darrick Wong:
      
       - Fix some ordering problems with log items during log recovery
      
       - Don't deadlock the system by trying to flush busy freed extents while
         holding on to busy freed extents
      
       - Improve validation of log geometry parameters when reading the
         primary superblock
      
       - Validate the length field in the AGF header
      
       - Fix recordset filtering bugs when re-calling GETFSMAP to return more
         results when the resultset didn't previously fit in the caller's
         buffer
      
       - Fix integer overflows in GETFSMAP when working with rt volumes larger
         than 2^32 fsblocks
      
       - Fix GETFSMAP reporting the undefined space beyond the last rtextent
      
       - Fix filtering bugs in GETFSMAP's log device backend if the log ever
         becomes longer than 2^32 fsblocks
      
       - Improve validation of file offsets in the GETFSMAP range parameters
      
       - Fix an off by one bug in the pmem media failure notification
         computation
      
       - Validate the length field in the AGI header too
      
      * tag 'xfs-6.5-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: Remove unneeded semicolon
        xfs: AGI length should be bounds checked
        xfs: fix the calculation for "end" and "length"
        xfs: fix xfs_btree_query_range callers to initialize btree rec fully
        xfs: validate fsmap offsets specified in the query keys
        xfs: fix logdev fsmap query result filtering
        xfs: clean up the rtbitmap fsmap backend
        xfs: fix getfsmap reporting past the last rt extent
        xfs: fix integer overflows in the fsmap rtbitmap and logdev backends
        xfs: fix interval filtering in multi-step fsmap queries
        xfs: fix bounds check in xfs_defer_agfl_block()
        xfs: AGF length has never been bounds checked
        xfs: journal geometry is not properly bounds checked
        xfs: don't block in busy flushing when freeing extents
        xfs: allow extent free intents to be retried
        xfs: pass alloc flags through to xfs_extent_busy_flush()
        xfs: use deferred frees for btree block freeing
        xfs: don't reverse order of items in bulk AIL insertion
        xfs: remove redundant initializations of pointers drop_leaf and save_leaf
      bb8e7e9f
    • Jonas Gorski's avatar
      bus: ixp4xx: fix IXP4XX_EXP_T1_MASK · 6722e465
      Jonas Gorski authored
      The IXP4XX_EXP_T1_MASK was shifted one bit to the right, overlapping
      IXP4XX_EXP_T2_MASK and leaving bit 29 unused. The offset being wrong is
      also confirmed at least by the datasheet of IXP45X/46X [1].
      
      Fix this by aligning it to IXP4XX_EXP_T1_SHIFT.
      
      [1] https://www.intel.com/content/dam/www/public/us/en/documents/manuals/ixp45x-ixp46x-developers-manual.pdf
      
      Cc: stable@vger.kernel.org
      Fixes: 1c953bda
      
       ("bus: ixp4xx: Add a driver for IXP4xx expansion bus")
      Signed-off-by: default avatarJonas Gorski <jonas.gorski@gmail.com>
      Link: https://lore.kernel.org/r/20230624112958.27727-1-jonas.gorski@gmail.com
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Link: https://lore.kernel.org/r/20230624122139.3229642-1-linus.walleij@linaro.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      6722e465
    • Krzysztof Kozlowski's avatar
      ARM: dts: st: add missing space before { · 7fb75904
      Krzysztof Kozlowski authored
      
      
      Add missing whitespace between node name/label and opening {.
      
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Link: https://lore.kernel.org/r/20230705150033.293832-1-krzysztof.kozlowski@linaro.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      7fb75904
    • Conor Dooley's avatar
      RISC-V: make ARCH_THEAD preclude XIP_KERNEL · 2fa4139f
      Conor Dooley authored
      
      
      Randy reported build errors in linux-next where XIP_KERNEL was enabled.
      ARCH_THEAD requires alternatives to support the non-standard ISA
      extensions used by the THEAD cores, which are mutually exclusive with
      XIP kernels. Clone the dependency list from the Allwinner entry, since
      Allwinner's D1 uses T-Head cores with the same non-standard extensions.
      
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
      Link: https://lore.kernel.org/all/ab38f6af-cb68-a918-1a63-2e7c927a8ffc@infradead.org/
      Fixes: da47ce00
      
       ("riscv: Add the T-HEAD SoC family Kconfig option")
      Reviewed-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
      Link: https://lore.kernel.org/r/20230628-left-attractor-94b7bd5fbb83@wendy
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      2fa4139f
    • Linus Torvalds's avatar
      Merge tag 'pwm/for-6.5-rc1' of... · ace1ba1c
      Linus Torvalds authored
      Merge tag 'pwm/for-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
      
      Pull pwm updates from Thierry Reding:
       "There's a little bit of everything in here: we've got various
        improvements and cleanups to drivers, some fixes across the board and
        a bit of new hardware support"
      
      * tag 'pwm/for-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (22 commits)
        dt-bindings: pwm: convert pwm-bcm2835 bindings to YAML
        pwm: Add Renesas RZ/G2L MTU3a PWM driver
        pwm: mtk_disp: Fix the disable flow of disp_pwm
        dt-bindings: pwm: restrict node name suffixes
        pwm: pca9685: Switch i2c driver back to use .probe()
        pwm: ab8500: Fix error code in probe()
        MAINTAINERS: add pwm to PolarFire SoC entry
        pwm: add microchip soft ip corePWM driver
        pwm: sysfs: Do not apply state to already disabled PWMs
        pwm: imx-tpm: force 'real_period' to be zero in suspend
        pwm: meson: make full use of common clock framework
        pwm: meson: don't use hdmi/video clock as mux parent
        pwm: meson: switch to using struct clk_parent_data for mux parents
        pwm: meson: remove not needed check in meson_pwm_calc
        pwm: meson: fix handling of period/duty if greater than UINT_MAX
        pwm: meson: modify and simplify calculation in meson_pwm_get_state
        dt-bindings: pwm: Add R-Car V3U device tree bindings
        dt-bindings: pwm: imx: add i.MX8QXP compatible
        pwm: mediatek: Add support for MT7981
        dt-bindings: pwm: mediatek: Add mediatek,mt7981 compatible
        ...
      ace1ba1c
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · b9861581
      Linus Torvalds authored
      Pull more devicetree updates from Rob Herring:
      
       - Whitespace clean-ups in binding examples
      
       - Restrict node name suffixes to "-[0-9]+" for cases of multiple
         instances which don't have unit-addresses
      
       - Convert brcm,kona-wdt and cdns,wdt-r1p2 watchdog bindings to DT
         schema
      
      * tag 'devicetree-for-6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: soc: qcom: stats: Update maintainer email
        dt-bindings: cleanup DTS example whitespaces
        dt-bindings: timestamp: restrict node name suffixes
        dt-bindings: slimbus: restrict node name suffixes
        dt-bindings: watchdog: restrict node name suffixes
        dt-bindings: watchdog: brcm,kona-wdt: convert txt file to yaml
        dt-bindings: watchdog: cdns,wdt-r1p2: Convert cadence watchdog to yaml
      b9861581
    • Yinjun Zhang's avatar
      nfp: clean mc addresses in application firmware when closing port · cc7eab25
      Yinjun Zhang authored
      When moving devices from one namespace to another, mc addresses are
      cleaned in software while not removed from application firmware. Thus
      the mc addresses are remained and will cause resource leak.
      
      Now use `__dev_mc_unsync` to clean mc addresses when closing port.
      
      Fixes: e20aa071
      
       ("nfp: fix schedule in atomic context when sync mc address")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarYinjun Zhang <yinjun.zhang@corigine.com>
      Acked-by: default avatarSimon Horman <simon.horman@corigine.com>
      Signed-off-by: default avatarLouis Peens <louis.peens@corigine.com>
      Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
      Message-ID: <20230705052818.7122-1-louis.peens@corigine.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      cc7eab25
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · fdaff05b
      Jakub Kicinski authored
      
      
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf 2023-07-05
      
      We've added 2 non-merge commits during the last 1 day(s) which contain
      a total of 3 files changed, 16 insertions(+), 4 deletions(-).
      
      The main changes are:
      
      1) Fix BTF to warn but not returning an error for a NULL BTF to still be
         able to load modules under CONFIG_DEBUG_INFO_BTF, from SeongJae Park.
      
      2) Fix xsk sockets to honor SO_BINDTODEVICE in bind(), from Ilya Maximets.
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
        xsk: Honor SO_BINDTODEVICE on bind
        bpf, btf: Warn but return no error for NULL btf from __register_btf_kfunc_id_set()
      ====================
      
      Link: https://lore.kernel.org/r/20230705171716.6494-1-daniel@iogearbox.net
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fdaff05b
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · fe1de551
      Linus Torvalds authored
      Pull soundwire updates from Vinod Koul:
      
       - Stream handling and slave alert handling
      
       - Qualcomm Soundwire v2.0.0 controller support
      
       - Intel ACE2.x initial support and code reorganization
      
      * tag 'soundwire-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire: (55 commits)
        soundwire: stream: Make master_list ordered to prevent deadlocks
        soundwire: bus: Prevent lockdep asserts when stream has multiple buses
        soundwire: qcom: fix storing port config out-of-bounds
        soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency
        soundwire: debugfs: Add missing SCP registers
        soundwire: stream: Remove unnecessary gotos
        soundwire: stream: Invert logic on runtime alloc flags
        soundwire: stream: Remove unneeded checks for NULL bus
        soundwire: bandwidth allocation: Remove pointless variable
        soundwire: cadence: revisit parity injection
        soundwire: intel/cadence: update hardware reset sequence
        soundwire: intel_bus_common: enable interrupts last
        soundwire: intel_bus_common: update error log
        soundwire: amd: Improve error message in remove callback
        soundwire: debugfs: fix unbalanced pm_runtime_put()
        soundwire: qcom: fix unbalanced pm_runtime_put()
        soundwire: qcom: set clk stop need reset flag at runtime
        soundwire: qcom: add software workaround for bus clash interrupt assertion
        soundwire: qcom: wait for fifo to be empty before suspend
        soundwire: qcom: drop unused struct qcom_swrm_ctrl members
        ...
      fe1de551
    • Linus Torvalds's avatar
      Merge tag 'media/v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 15ac4686
      Linus Torvalds authored
      Pull media updates from Mauro Carvalho Chehab:
      
       - Lots of improvement at atomisp driver, which is starting to look in
         good shape
      
       - Mediatek vcodec driver has gained support for av1 and hevc stateless
         codecs
      
       - New sensor driver: ov01a10
      
       - verisilicon driver has gained AV1 entropy helpers
      
       - tegra-video has gained support for Tegra20 parallel input
      
       - dvb core has gained an extra property to better support DVB-S2X
      
       - as usual, lots of cleanups, fixes and improvements on media drivers
      
      * tag 'media/v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (253 commits)
        media: wl128x: fix a clang warning
        media: dvb: mb86a20s: get rid of a clang-15 warning
        media: cec: i2c: ch7322: also select REGMAP
        media: add HAS_IOPORT dependencies
        media: tc358746: select CONFIG_GENERIC_PHY
        media: mediatek: vcodec: Add dbgfs help function
        media: mediatek: vcodec: Add encode to support dbgfs
        media: mediatek: vcodec: Change dbgfs interface to support encode
        media: mediatek: vcodec: Get each instance format type
        media: mediatek: vcodec: Get each context resolution information
        media: mediatek: vcodec: Add a debugfs file to get different useful information
        media: mediatek: vcodec: Add debug params to control different log level
        media: mediatek: vcodec: Add debugfs interface to get debug information
        media: mediatek: vcodec: support stateless AV1 decoder
        media: verisilicon: Conditionally ignore native formats
        media: verisilicon: Enable AV1 decoder on rk3588
        media: verisilicon: Add film grain feature to AV1 driver
        media: verisilicon: Add Rockchip AV1 decoder
        media: verisilicon: Add AV1 entropy helpers
        media: verisilicon: Compute motion vectors size for AV1 frames
        ...
      15ac4686
    • Linus Torvalds's avatar
      Merge tag 'trace-tools-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 2784d74b
      Linus Torvalds authored
      Pull tracing tooling updates from Steven Rostedt:
      
       - Add cgroup support for rtla via the -C option
      
       - Add --house-keeping option that tells rtla where to place the
         housekeeping threads
      
       - Have rtla/timerlat have its own tracing instance instead of using the
         top level tracing instance that is the default for other tracing
         users to use
      
       - Add auto analysis to timerlat_hist
      
       - Have rtla start the tracers after creating the instances
      
       - Reduce rtla hwnoise down to 75% from 100% as it runs with preemption
         disabled and can cause system instability at 100%
      
       - Add support to run timerlat_top and timerlat_hist threads in
         user-space instead of just using the kernel tasks
      
       - Some minor clean ups and documentation changes
      
      * tag 'trace-tools-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        Documentation: Add tools/rtla timerlat -u option documentation
        rtla/timerlat_hist: Add timerlat user-space support
        rtla/timerlat_top: Add timerlat user-space support
        rtla/hwnoise: Reduce runtime to 75%
        rtla: Start the tracers after creating all instances
        rtla/timerlat_hist: Add auto-analysis support
        rtla/timerlat: Give timerlat auto analysis its own instance
        rtla: Automatically move rtla to a house-keeping cpu
        rtla: Change monitored_cpus from char * to cpu_set_t
        rtla: Add --house-keeping option
        rtla: Add -C cgroup support
      2784d74b
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-6.5-rc1-2' of... · 2a95b03d
      Linus Torvalds authored
      Merge tag 'parisc-for-6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
      
      Pull more parisc architecture updates from Helge Deller:
      
       -  Fix all compiler warnings in arch/parisc and drivers/parisc when
          compiled with W=1
      
      * tag 'parisc-for-6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: syscalls: Avoid compiler warnings with W=1
        parisc: math-emu: Avoid compiler warnings with W=1
        parisc: Raise minimal GCC version to 12.0.0
        parisc: unwind: Avoid missing prototype warning for handle_interruption()
        parisc: smp: Add declaration for start_cpu_itimer()
        parisc: pdt: Get prototype for arch_report_meminfo()
      2a95b03d
    • Guenter Roeck's avatar
      sh: Provide unxlate_dev_mem_ptr() in asm/io.h · 7497840d
      Guenter Roeck authored
      The unxlate_dev_mem_ptr() function has no prototype on the sh architecture
      which does not include asm-generic/io.h. This results in the following
      build failure:
      
      drivers/char/mem.c: In function 'read_mem':
      drivers/char/mem.c:164:25: error: implicit declaration of function 'unxlate_dev_mem_ptr'
      
      This compile error is now seen because commit 99b619b3 ("mips: provide
      unxlate_dev_mem_ptr() in asm/io.h") removed the weak function which was
      previously in place to handle this problem.
      
      Add a trivial macro to the sh header to provide the now missing dummy
      function.
      
      Fixes: 99b619b3
      
       ("mips: provide unxlate_dev_mem_ptr() in asm/io.h")
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230704190144.2888679-1-linux@roeck-us.net
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      7497840d
    • Artur Rojek's avatar
      sh: dma: Correct the number of DMA channels for SH7709 · 3ad4dcbc
      Artur Rojek authored
      
      
      According to the hardware manual [1], the DMAC found in the SH7709 SoC
      features only 4 channels. While at it, also sort the existing targets.
      
      [1] https://www.renesas.com/us/en/document/mah/sh7709s-group-hardware-manual (p. 373)
      
      Signed-off-by: default avatarArtur Rojek <contact@artur-rojek.eu>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230527164452.64797-4-contact@artur-rojek.eu
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      3ad4dcbc
    • Artur Rojek's avatar
      sh: dma: Drop incorrect SH_DMAC_BASE1 definition for SH4 · d2f4a190
      Artur Rojek authored
      
      
      None of the supported SH4 family SoCs features a second DMAC module. As
      this definition negatively impacts DMA channel calculation for the above
      targets, remove it from the code.
      
      Signed-off-by: default avatarArtur Rojek <contact@artur-rojek.eu>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230527164452.64797-3-contact@artur-rojek.eu
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      d2f4a190
    • Artur Rojek's avatar
      sh: dma: Fix DMA channel offset calculation · e82e4758
      Artur Rojek authored
      Various SoCs of the SH3, SH4 and SH4A family, which use this driver,
      feature a differing number of DMA channels, which can be distributed
      between up to two DMAC modules. The existing implementation fails to
      correctly accommodate for all those variations, resulting in wrong
      channel offset calculations and leading to kernel panics.
      
      Rewrite dma_base_addr() in order to properly calculate channel offsets
      in a DMAC module. Fix dmaor_read_reg() and dmaor_write_reg(), so that
      the correct DMAC module base is selected for the DMAOR register.
      
      Fixes: 7f47c718
      
       ("sh: dma: More legacy cpu dma chainsawing.")
      Signed-off-by: default avatarArtur Rojek <contact@artur-rojek.eu>
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230527164452.64797-2-contact@artur-rojek.eu
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      e82e4758
    • Masahiro Yamada's avatar
      sh: Remove compiler flag duplication · 4bd04b20
      Masahiro Yamada authored
      
      
      Every compiler flag added by arch/sh/Makefile is passed to the
      compiler twice:
      
      $(KBUILD_CPPFLAGS) + $(KBUILD_CFLAGS) is used for compiling *.c
      $(KBUILD_CPPFLAGS) + $(KBUILD_AFLAGS) is used for compiling *.S
      
      Given the above, adding $(cflags-y) to all of KBUILD_{CPP/C/A}FLAGS
      ends up with duplication.
      
      Add -I options to $(KBUILD_CPPFLAGS), and the rest of $(cflags-y)
      to KBUILD_{C,A}FLAGS.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230219141555.2308306-4-masahiroy@kernel.org
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      4bd04b20
    • Masahiro Yamada's avatar
      sh: Refactor header include path addition · 01658fe3
      Masahiro Yamada authored
      
      
      Shorten the code. No functional change intended.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230219141555.2308306-3-masahiroy@kernel.org
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      01658fe3
    • Masahiro Yamada's avatar
      sh: Move build rule for cchips/hd6446x/ to arch/sh/Kbuild · 9b4daf52
      Masahiro Yamada authored
      
      
      This is the last user of core-y in arch/sh.
      
      Use the standard obj-y syntax.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230219141555.2308306-2-masahiroy@kernel.org
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      9b4daf52
    • Masahiro Yamada's avatar
      sh: Fix -Wmissing-include-dirs warnings for various platforms · 706afcea
      Masahiro Yamada authored
      
      
      The 0day bot reports a lot of warnings (or errors due to CONFIG_WERROR)
      like this:
      
        cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs]
      
      Indeed, arch/sh/include/mach-hp6xx does not exist.
      
      While -Wmissing-include-dirs is only a W=1 warning, it may be
      annoying when CONFIG_BTRFS_FS is enabled because fs/btrfs/Makefile
      unconditionally adds this warning option.
      
      arch/sh/Makefile defines machdir-y for two purposes:
      
       - Build platform code in arch/sh/boards/mach-*/
       - Add arch/sh/include/mach-*/ to the header search path
      
      For the latter, some platforms use arch/sh/include/mach-common/
      instead of having its own arch/sh/include/mach-*/.
      
      Drop unneeded machdir-y to omit non-existing include directories.
      
      To build arch/sh/boards/mach-*/, use the standard obj-y syntax in
      arch/sh/boards/Makefile.
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Link: https://lore.kernel.org/oe-kbuild-all/202302190641.30VVXnPb-lkp@intel.com/
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reviewed-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      Link: https://lore.kernel.org/r/20230219141555.2308306-1-masahiroy@kernel.org
      Signed-off-by: default avatarJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
      706afcea
    • Linus Torvalds's avatar
      gup: make the stack expansion warning a bit more targeted · 6cd06ab1
      Linus Torvalds authored
      I added a warning about about GUP no longer expanding the stack in
      commit a425ac53
      
       ("gup: add warning if some caller would seem to want
      stack expansion"), but didn't really expect anybody to hit it.
      
      And it's true that nobody seems to have hit a _real_ case yet, but we
      certainly have a number of reports of false positives.  Which not only
      causes extra noise in itself, but might also end up hiding any real
      cases if they do exist.
      
      So let's tighten up the warning condition, and replace the simplistic
      
      	vma = find_vma(mm, start);
      	if (vma && (start < vma->vm_start)) {
      		WARN_ON_ONCE(vma->vm_flags & VM_GROWSDOWN);
      
      with a
      
      	vma = gup_vma_lookup(mm, start);
      
      helper function which works otherwise like just "vma_lookup()", but with
      some heuristics for when to warn about gup no longer causing stack
      expansion.
      
      In particular, don't just warn for "below the stack", but warn if it's
      _just_ below the stack (with "just below" arbitrarily defined as 64kB,
      because why not?).  And rate-limit it to at most once per hour, which
      means that any false positives shouldn't completely hide subsequent
      reports, but we won't be flooding the logs about it either.
      
      The previous code triggered when some GUP user (chromium crashpad)
      accessing past the end of the previous vma, for example.  That has never
      expanded the stack, it just causes GUP to return early, and as such we
      shouldn't be warning about it.
      
      This is still going trigger the randomized testers, but to mitigate the
      noise from that, use "dump_stack()" instead of "WARN_ON_ONCE()" to get
      the kernel call chain.  We'll get the relevant information, but syzbot
      shouldn't get too upset about it.
      
      Also, don't even bother with the GROWSUP case, which would be using
      different heuristics entirely, but only happens on parisc.
      
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Reported-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
      Reported-by: default avatar <syzbot+6cf44e127903fdf9d929@syzkaller.appspotmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6cd06ab1
  3. Jul 05, 2023