1. 19 May, 2023 9 commits
    • Linus Torvalds's avatar
      Merge tag 'pm-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d3f70431
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix two issues in the cpupower utility and get rid of a spurious
        warning message printed to the kernel log by the ACPI cpufreq driver
        after recent changes.
      
        Specifics:
      
         - Get rid of a warning message printed by the ACPI cpufreq driver
           after recent changes in it when anohter CPU performance scaling
           driver is registered already when it starts (Petr Pavlu)
      
         - Make cpupower read TSC on each CPU right before reading MPERF so as
           to reduce the potential time difference between the TSC and MPERF
           accesses and improve the C0 percentage calculation (Wyes Karny)
      
         - Fix a possible file handle leak and clean up the code in the
           sysfs_get_enabled() function in cpupower (Hao Zeng)"
      
      * tag 'pm-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: ACPI: Prevent a warning when another frequency driver is loaded
        cpupower: Make TSC read per CPU for Mperf monitor
        cpupower:Fix resource leaks in sysfs_get_enabled()
      d3f70431
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · c8306329
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Add an ACPI IRQ override quirk for LG UltraPC 17U70P so as to make the
        internal keyboard work on that machine (Rubén Gómez)"
      
      * tag 'acpi-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: resource: Add IRQ override quirk for LG UltraPC 17U70P
      c8306329
    • Linus Torvalds's avatar
      Merge tag 'docs-6.4-fixes' of git://git.lwn.net/linux · cbd6ac38
      Linus Torvalds authored
      Pull documentation fixes from Jonathan Corbet:
       "Four straightforward documentation fixes"
      
      * tag 'docs-6.4-fixes' of git://git.lwn.net/linux:
        Documentation/filesystems: ramfs-rootfs-initramfs: use :Author:
        Documentation/filesystems: sharedsubtree: add section headings
        docs: quickly-build-trimmed-linux: various small fixes and improvements
        Documentation: use capitalization for chapters and acronyms
      cbd6ac38
    • Linus Torvalds's avatar
      Merge tag 's390-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · ac92c279
      Linus Torvalds authored
      Pull s390 fixes from Alexander Gordeev:
      
       - Add check whether the required facilities are installed before using
         the s390-specific ChaCha20 implementation
      
       - Key blobs for s390 protected key interface IOCTLs commands
         PKEY_VERIFYKEY2 and PKEY_VERIFYKEY3 may contain clear key material.
         Zeroize copies of these keys in kernel memory after creating
         protected keys
      
       - Set CONFIG_INIT_STACK_NONE=y in defconfigs to avoid extra overhead of
         initializing all stack variables by default
      
       - Make sure that when a new channel-path is enabled all subchannels are
         evaluated: with and without any devices connected on it
      
       - When SMT thread CPUs are added to CPU topology masks the nr_cpu_ids
         limit is not checked and could be exceeded. Respect the nr_cpu_ids
         limit and avoid a warning when CONFIG_DEBUG_PER_CPU_MAPS is set
      
       - The pointer to IPL Parameter Information Block is stored in the
         absolute lowcore as a virtual address. Save it as the physical
         address for later use by dump tools
      
       - Fix a Queued Direct I/O (QDIO) problem on z/VM guests using QIOASSIST
         with dedicated (pass through) QDIO-based devices such as FCP, real
         OSA or HiperSockets
      
       - s390's struct statfs and struct statfs64 contain padding, which
         field-by-field copying does not set. Initialize the respective
         structures with zeros before filling them and copying to userspace
      
       - Grow s390 compat_statfs64, statfs and statfs64 structures f_spare
         array member to cover padding and simplify things
      
       - Remove obsolete SCHED_BOOK and SCHED_DRAWER configs
      
       - Remove unneeded S390_CCW_IOMMU and S390_AP_IOM configs
      
      * tag 's390-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/iommu: get rid of S390_CCW_IOMMU and S390_AP_IOMMU
        s390/Kconfig: remove obsolete configs SCHED_{BOOK,DRAWER}
        s390/uapi: cover statfs padding by growing f_spare
        statfs: enforce statfs[64] structure initialization
        s390/qdio: fix do_sqbs() inline assembly constraint
        s390/ipl: fix IPIB virtual vs physical address confusion
        s390/topology: honour nr_cpu_ids when adding CPUs
        s390/cio: include subchannels without devices also for evaluation
        s390/defconfigs: set CONFIG_INIT_STACK_NONE=y
        s390/pkey: zeroize key blobs
        s390/crypto: use vector instructions only if available for ChaCha20
      ac92c279
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 4ffd96c9
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "A mixture of compiler/static checker resolutions and a couple of MTE
        fixes:
      
         - Avoid erroneously marking untagged pages with PG_mte_tagged
      
         - Always reset KASAN tags for destination page in copy_page()
      
         - Mark PMU header functions 'static inline'
      
         - Fix some sparse warnings due to missing casts"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mte: Do not set PG_mte_tagged if tags were not initialized
        arm64: Also reset KASAN tag if page is not PG_mte_tagged
        arm64: perf: Mark all accessor functions inline
        ARM: perf: Mark all accessor functions inline
        arm64: vdso: Pass (void *) to virt_to_page()
        arm64/mm: mark private VM_FAULT_X defines as vm_fault_t
      4ffd96c9
    • Linus Torvalds's avatar
      Merge tag 'sound-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 46be92e5
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes that have been gathered since rc1:
      
         - Lots of small ASoC SOF Intel fixes
      
         - A couple of UAF and NULL-dereference fixes
      
         - Quirks and updates for HD-audio, USB-audio and ASoC AMD
      
         - A few minor build / sparse warning fixes
      
         - MAINTAINERS and DT updates"
      
      * tag 'sound-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (38 commits)
        ALSA: hda: Add NVIDIA codec IDs a3 through a7 to patch table
        ALSA: oss: avoid missing-prototype warnings
        ALSA: cs46xx: mark snd_cs46xx_download_image as static
        ALSA: hda: Fix Oops by 9.1 surround channel names
        ASoC: SOF: topology: Fix tuples array allocation
        ASoC: SOF: Separate the tokens for input and output pin index
        MAINTAINERS: Remove self from Cirrus Codec drivers
        ASoC: cs35l56: Prevent unbalanced pm_runtime in dsp_work() on SoundWire
        ASoC: SOF: topology: Fix logic for copying tuples
        ASoC: SOF: pm: save io region state in case of errors in resume
        ASoC: MAINTAINERS: drop Krzysztof Kozlowski from Samsung audio
        ASoC: mediatek: mt8186: Fix use-after-free in driver remove path
        ASoC: SOF: ipc3-topology: Make sure that only one cmd is sent in dai_config
        ASoC: SOF: sof-client-probes: fix pm_runtime imbalance in error handling
        ASoC: SOF: pcm: fix pm_runtime imbalance in error handling
        ASoC: SOF: debug: conditionally bump runtime_pm counter on exceptions
        ASoC: SOF: Intel: hda-mlink: add helper to program SoundWire PCMSyCM registers
        ASoC: SOF: Intel: hda-mlink: initialize instance_offset member
        ASoC: SOF: Intel: hda-mlink: use 'ml_addr' parameter consistently
        ASoC: SOF: Intel: hda-mlink: fix base_ptr computation
        ...
      46be92e5
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-tools' · 5783ecc9
      Rafael J. Wysocki authored
      Merge cpupower utility fixes for 6.4-rc3:
      
       - Read TSC on each CPU right before reading MPERF so as to reduce the
         potential time difference between the TSC and MPERF accesses and
         improve the C0 percentage calculation (Wyes Karny).
      
       - Fix a possible file handle leak and clean up the code in
         sysfs_get_enabled() (Hao Zeng).
      
      * pm-tools:
        cpupower: Make TSC read per CPU for Mperf monitor
        cpupower:Fix resource leaks in sysfs_get_enabled()
      5783ecc9
    • Rafael J. Wysocki's avatar
      Merge tag 'linux-cpupower-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux · eab866bf
      Rafael J. Wysocki authored
      Pull cpupower utility fixes for 6.4-rc3 from Shuah Khan:
      
      "This cpupower fixes update for Linux 67.4-rc3 consists of:
      
      - a resource leak fix
      - fix drift in C0 percentage calculation due to System-wide TSC read.
        To lower this drift read TSC per CPU and also just after mperf read.
        This technique improves C0 percentage calculation in Mperf monitor"
      
      * tag 'linux-cpupower-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux:
        cpupower: Make TSC read per CPU for Mperf monitor
        cpupower:Fix resource leaks in sysfs_get_enabled()
      eab866bf
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2023-05-18-15-52' of... · f4a8871f
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2023-05-18-15-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "Eight hotfixes. Four are cc:stable, the other four are for post-6.4
        issues, or aren't considered suitable for backporting"
      
      * tag 'mm-hotfixes-stable-2023-05-18-15-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        MAINTAINERS: Cleanup Arm Display IP maintainers
        MAINTAINERS: repair pattern in DIALOG SEMICONDUCTOR DRIVERS
        nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
        mm: fix zswap writeback race condition
        mm: kfence: fix false positives on big endian
        zsmalloc: move LRU update from zs_map_object() to zs_malloc()
        mm: shrinkers: fix race condition on debugfs cleanup
        maple_tree: make maple state reusable after mas_empty_area()
      f4a8871f
  2. 18 May, 2023 11 commits
    • Linus Torvalds's avatar
      Merge tag 'probes-fixes-v6.4-rc1' of... · 2d1bcbc6
      Linus Torvalds authored
      Merge tag 'probes-fixes-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
      
      Pull probes fixes from Masami Hiramatsu:
      
       - Initialize 'ret' local variables on fprobe_handler() to fix the
         smatch warning. With this, fprobe function exit handler is not
         working randomly.
      
       - Fix to use preempt_enable/disable_notrace for rethook handler to
         prevent recursive call of fprobe exit handler (which is based on
         rethook)
      
       - Fix recursive call issue on fprobe_kprobe_handler()
      
       - Fix to detect recursive call on fprobe_exit_handler()
      
       - Fix to make all arch-dependent rethook code notrace (the
         arch-independent code is already notrace)"
      
      * tag 'probes-fixes-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        rethook, fprobe: do not trace rethook related functions
        fprobe: add recursion detection in fprobe_exit_handler
        fprobe: make fprobe_kprobe_handler recursion free
        rethook: use preempt_{disable, enable}_notrace in rethook_trampoline_handler
        tracing: fprobe: Initialize ret valiable to fix smatch error
      2d1bcbc6
    • Linus Torvalds's avatar
      Merge tag 'net-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 1f594fe7
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from can, xfrm, bluetooth and netfilter.
      
        Current release - regressions:
      
         - ipv6: fix RCU splat in ipv6_route_seq_show()
      
         - wifi: iwlwifi: disable RFI feature
      
        Previous releases - regressions:
      
         - tcp: fix possible sk_priority leak in tcp_v4_send_reset()
      
         - tipc: do not update mtu if msg_max is too small in mtu negotiation
      
         - netfilter: fix null deref on element insertion
      
         - devlink: change per-devlink netdev notifier to static one
      
         - phylink: fix ksettings_set() ethtool call
      
         - wifi: mac80211: fortify the spinlock against deadlock by interrupt
      
         - wifi: brcmfmac: check for probe() id argument being NULL
      
         - eth: ice:
            - fix undersized tx_flags variable
            - fix ice VF reset during iavf initialization
      
         - eth: hns3: fix sending pfc frames after reset issue
      
        Previous releases - always broken:
      
         - xfrm: release all offloaded policy memory
      
         - nsh: use correct mac_offset to unwind gso skb in nsh_gso_segment()
      
         - vsock: avoid to close connected socket after the timeout
      
         - dsa: rzn1-a5psw: enable management frames for CPU port
      
         - eth: virtio_net: fix error unwinding of XDP initialization
      
         - eth: tun: fix memory leak for detached NAPI queue.
      
        Misc:
      
         - MAINTAINERS: sctp: move Neil to CREDITS"
      
      * tag 'net-6.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (107 commits)
        MAINTAINERS: skip CCing netdev for Bluetooth patches
        mdio_bus: unhide mdio_bus_init prototype
        bridge: always declare tunnel functions
        atm: hide unused procfs functions
        net: isa: include net/Space.h
        Revert "ARM: dts: stm32: add CAN support on stm32f746"
        netfilter: nft_set_rbtree: fix null deref on element insertion
        netfilter: nf_tables: fix nft_trans type confusion
        netfilter: conntrack: define variables exp_nat_nla_policy and any_addr with CONFIG_NF_NAT
        net: wwan: t7xx: Ensure init is completed before system sleep
        net: selftests: Fix optstring
        net: pcs: xpcs: fix C73 AN not getting enabled
        net: wwan: iosm: fix NULL pointer dereference when removing device
        vlan: fix a potential uninit-value in vlan_dev_hard_start_xmit()
        mailmap: add entries for Nikolay Aleksandrov
        igb: fix bit_shift to be in [1..8] range
        net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset
        cassini: Fix a memory leak in the error handling path of cas_init_one()
        tun: Fix memory leak for detached NAPI queue.
        can: kvaser_pciefd: Disable interrupts in probe error path
        ...
      1f594fe7
    • Linus Torvalds's avatar
      Merge tag 'media/v6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · b802651b
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "Several fixes for the dvb core and drivers:
      
         - fix UAF and null pointer de-reference in DVB core
      
         - fix kernel runtime warning for blocking operation in wait_event*()
           in dvb core
      
         - fix write size bug in DVB conditional access core
      
         - fix dvb demux continuity counter debug check logic
      
         - randconfig build fixes in pvrusb2 and mn88443x
      
         - fix memory leak in ttusb-dec
      
         - fix netup_unidvb probe-time error check logic
      
         - improve error handling in dw2102 if it can't retrieve DVB MAC
           address"
      
      * tag 'media/v6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: dvb-core: Fix use-after-free due to race condition at dvb_ca_en50221
        media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*()
        media: dvb-core: Fix use-after-free due to race at dvb_register_device()
        media: dvb-core: Fix use-after-free due on race condition at dvb_net
        media: dvb-core: Fix use-after-free on race condition at dvb_frontend
        media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table
        media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb()
        media: dvb_ca_en50221: fix a size write bug
        media: netup_unidvb: fix irq init by register it at the end of probe
        media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address
        media: dvb-usb: digitv: fix null-ptr-deref in digitv_i2c_xfer()
        media: dvb-usb-v2: rtl28xxu: fix null-ptr-deref in rtl28xxu_i2c_xfer
        media: dvb-usb-v2: ce6230: fix null-ptr-deref in ce6230_i2c_master_xfer()
        media: dvb-usb-v2: ec168: fix null-ptr-deref in ec168_i2c_xfer()
        media: dvb-usb: az6027: fix three null-ptr-deref in az6027_i2c_xfer()
        media: netup_unidvb: fix use-after-free at del_timer()
        media: dvb_demux: fix a bug for the continuity counter
        media: pvrusb2: fix DVB_CORE dependency
      b802651b
    • Paolo Abeni's avatar
      Merge tag 'linux-can-fixes-for-6.4-20230518' of... · 6e42fae0
      Paolo Abeni authored
      Merge tag 'linux-can-fixes-for-6.4-20230518' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can 2023-05-18
      
      this is a pull request of 7 patches for net/master.
      
      The first 6 patches are by Jimmy Assarsson and fix several bugs in the
      kvaser_pciefd driver.
      
      The latest patch is from me and reverts a change in stm32f746.dtsi
      that causes build errors due to a missing dependent patch.
      
      * tag 'linux-can-fixes-for-6.4-20230518' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can:
        Revert "ARM: dts: stm32: add CAN support on stm32f746"
        can: kvaser_pciefd: Disable interrupts in probe error path
        can: kvaser_pciefd: Do not send EFLUSH command on TFD interrupt
        can: kvaser_pciefd: Empty SRB buffer in probe
        can: kvaser_pciefd: Call request_irq() before enabling interrupts
        can: kvaser_pciefd: Clear listen-only bit if not explicitly requested
        can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop()
      ====================
      
      Link: https://lore.kernel.org/r/20230518073241.1110453-1-mkl@pengutronix.deSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      6e42fae0
    • Jakub Kicinski's avatar
      Merge tag 'nf-23-05-17' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf · 30a0f49d
      Jakub Kicinski authored
      Florian Westphal says:
      
      ====================
      Netfilter fixes for net
      
      1. Silence warning about unused variable when CONFIG_NF_NAT=n, from Tom Rix.
      2. nftables: Fix possible out-of-bounds access, from myself.
      3. nftables: fix null deref+UAF during element insertion into rbtree,
         also from myself.
      
      * tag 'nf-23-05-17' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
        netfilter: nft_set_rbtree: fix null deref on element insertion
        netfilter: nf_tables: fix nft_trans type confusion
        netfilter: conntrack: define variables exp_nat_nla_policy and any_addr with CONFIG_NF_NAT
      ====================
      
      Link: https://lore.kernel.org/r/20230517123756.7353-1-fw@strlen.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      30a0f49d
    • Jakub Kicinski's avatar
      Merge tag 'wireless-2023-05-17' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless · c259ad11
      Jakub Kicinski authored
      Kalle Valo says:
      
      ====================
      wireless fixes for v6.4
      
      A lot of fixes this time, for both the stack and the drivers. The
      brcmfmac resume fix has been reported by several people so I would say
      it's the most important here. The iwlwifi RFI workaround is also
      something which was reported as a regression recently.
      
      * tag 'wireless-2023-05-17' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless: (31 commits)
        wifi: b43: fix incorrect __packed annotation
        wifi: rtw88: sdio: Always use two consecutive bytes for word operations
        mac80211_hwsim: fix memory leak in hwsim_new_radio_nl
        wifi: iwlwifi: mvm: Add locking to the rate read flow
        wifi: iwlwifi: Don't use valid_links to iterate sta links
        wifi: iwlwifi: mvm: don't trust firmware n_channels
        wifi: iwlwifi: mvm: fix OEM's name in the tas approved list
        wifi: iwlwifi: fix OEM's name in the ppag approved list
        wifi: iwlwifi: mvm: fix initialization of a return value
        wifi: iwlwifi: mvm: fix access to fw_id_to_mac_id
        wifi: iwlwifi: fw: fix DBGI dump
        wifi: iwlwifi: mvm: fix number of concurrent link checks
        wifi: iwlwifi: mvm: fix cancel_delayed_work_sync() deadlock
        wifi: iwlwifi: mvm: don't double-init spinlock
        wifi: iwlwifi: mvm: always free dup_data
        wifi: mac80211: recalc chanctx mindef before assigning
        wifi: mac80211: consider reserved chanctx for mindef
        wifi: mac80211: simplify chanctx allocation
        wifi: mac80211: Abort running color change when stopping the AP
        wifi: mac80211: fix min center freq offset tracing
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230517151914.B0AF6C433EF@smtp.kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c259ad11
    • Jakub Kicinski's avatar
      MAINTAINERS: skip CCing netdev for Bluetooth patches · bfa00d8f
      Jakub Kicinski authored
      As requested by Marcel skip netdev for Bluetooth patches.
      Bluetooth has its own mailing list and overloading netdev
      leads to fewer people reading it.
      
      Link: https://lore.kernel.org/netdev/639C8EA4-1F6E-42BE-8F04-E4A753A6EFFC@holtmann.org/Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Link: https://lore.kernel.org/r/20230517014253.1233333-1-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      bfa00d8f
    • Arnd Bergmann's avatar
      mdio_bus: unhide mdio_bus_init prototype · 2e9f8ab6
      Arnd Bergmann authored
      mdio_bus_init() is either used as a local module_init() entry,
      or it gets called in phy_device.c. In the former case, there
      is no declaration, which causes a warning:
      
      drivers/net/phy/mdio_bus.c:1371:12: error: no previous prototype for 'mdio_bus_init' [-Werror=missing-prototypes]
      
      Remove the #ifdef around the declaration to avoid the warning..
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230516194625.549249-4-arnd@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      2e9f8ab6
    • Arnd Bergmann's avatar
      bridge: always declare tunnel functions · 89dcd87c
      Arnd Bergmann authored
      When CONFIG_BRIDGE_VLAN_FILTERING is disabled, two functions are still
      defined but have no prototype or caller. This causes a W=1 warning for
      the missing prototypes:
      
      net/bridge/br_netlink_tunnel.c:29:6: error: no previous prototype for 'vlan_tunid_inrange' [-Werror=missing-prototypes]
      net/bridge/br_netlink_tunnel.c:199:5: error: no previous prototype for 'br_vlan_tunnel_info' [-Werror=missing-prototypes]
      
      The functions are already contitional on CONFIG_BRIDGE_VLAN_FILTERING,
      and I coulnd't easily figure out the right set of #ifdefs, so just
      move the declarations out of the #ifdef to avoid the warning,
      at a small cost in code size over a more elaborate fix.
      
      Fixes: 188c67dd ("net: bridge: vlan options: add support for tunnel id dumping")
      Fixes: 569da082 ("net: bridge: vlan options: add support for tunnel mapping set/del")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
      Link: https://lore.kernel.org/r/20230516194625.549249-3-arnd@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      89dcd87c
    • Arnd Bergmann's avatar
      atm: hide unused procfs functions · fb1b7be9
      Arnd Bergmann authored
      When CONFIG_PROC_FS is disabled, the function declarations for some
      procfs functions are hidden, but the definitions are still build,
      as shown by this compiler warning:
      
      net/atm/resources.c:403:7: error: no previous prototype for 'atm_dev_seq_start' [-Werror=missing-prototypes]
      net/atm/resources.c:409:6: error: no previous prototype for 'atm_dev_seq_stop' [-Werror=missing-prototypes]
      net/atm/resources.c:414:7: error: no previous prototype for 'atm_dev_seq_next' [-Werror=missing-prototypes]
      
      Add another #ifdef to leave these out of the build.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230516194625.549249-2-arnd@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fb1b7be9
    • Arnd Bergmann's avatar
      net: isa: include net/Space.h · 067dee65
      Arnd Bergmann authored
      The legacy drivers that still get called from net/Space.c have prototypes
      in net/Space, but this header is not included in most of the files that
      define those functions:
      
      drivers/net/ethernet/cirrus/cs89x0.c:1649:28: error: no previous prototype for 'cs89x0_probe' [-Werror=missing-prototypes]
      drivers/net/ethernet/8390/ne.c:947:28: error: no previous prototype for 'ne_probe' [-Werror=missing-prototypes]
      drivers/net/ethernet/8390/smc-ultra.c:167:28: error: no previous prototype for 'ultra_probe' [-Werror=missing-prototypes]
      drivers/net/ethernet/amd/lance.c:438:28: error: no previous prototype for 'lance_probe' [-Werror=missing-prototypes]
      drivers/net/ethernet/3com/3c515.c:422:20: error: no previous prototype for 'tc515_probe' [-Werror=missing-prototypes]
      
      Add the inclusion to avoids the warnings.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20230516194625.549249-1-arnd@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      067dee65
  3. 17 May, 2023 20 commits