kobj: convert KOBJOPLOOKUP() to returning pointer to function
This makes KOBJOPLOOKUP() rather more suitable for purposes outside the
macros generated by makeobjops.awk. Of note other callers can lookup
the function on their parent class and call that explicitly.
Reviewed by: zlei
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D48408
[RelLookupTableConverter] Allow lookup tables of declarations (#244266)
Also add some comments explaining why the remaining checks are there.
This depends on https://github.com/llvm/llvm-project/pull/244243 to make
this work on MachO.
snd_dummy: Do not use dummy_chan_io() as mpu401's interrupt handler
dummy_chan_io() runs with sc->lock held, but mpu401 calls its handler
from a callout with no mutex associated with it, so writing to the MIDI
device node caused a panic.
Give mpu401 its own handler, and leave MIDI to mpu401's timer instead of
the PCM callout.
Fixes: e963472ef853 ("snd_dummy: Initial MIDI support")
Sponsored by: The FreeBSD Foundation
(cherry picked from commit c8d1c94741231d95964b91910880769019478854)
firmware: make subscription and flavour use more strict
While here also mark firmware component as "unrestricted", because
being able to update is a sensitive administrative task always.
PR: GHSA-89wp-xvvm-9pp4
snd_uaudio: Fix the MIDI TX round-robin
Nothing advances curr_cable, so umidi_bulk_write_callback() only
services cable 0, which is a problem on MIDI devices with more than one
jack.
Fixes: 039477d3e7e7 ("snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()")
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
(cherry picked from commit f58613868b50dfd6c2adc7128ea60d7b276fdbf1)
snd_uaudio: Do not touch mixer_lock when there is no mixer
Using the mixer lock unconditionally panics because the lock is
uninitialized on devices with no audio interfaces, for instance
MIDI-only keyboards.
Fixes: 9a00e0b8ca56 ("snd_uaudio: Do not use snd_mixer->lock as mixer_lock")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D61506
(cherry picked from commit dabd959b17597ad790327020a667ced9a05d7499)
sound: Remove stale midi module dependencies
midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
because they still depend on it.
Fixes: 45bb10e0ed5a ("sound: Stop building midi as a module")
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
(cherry picked from commit 563c2f27e0ffec96a0ddd77b68c7ca6614d704af)
[runtimes][offload] Add missing dependencies to check-offload
After configuring an OpenMP/offload build, running `ninja check-offload`
without first running the build doesn't build all the necessary
dependencies like flang or clang-linker-wrapper, or the runtimes.
Claude assisted by iteratively trying to run check-offload and adding
dependencies as they were needed.
[Offload][Omp] Mark failing flang test as unsupported (#244547)
Flang doesn't seem to support correctly the test added in #243817 Marked
as unsupported with a link to the issue to fix it.
[libc++][pstl] Fix the lack of a backend tag in std::is_heap_until implementation in the serial backend (#244174)
The implementation in the serial backend has been a regular template
instead of a specialisation with a concrete backend tag
(`__serial_backend_tag`).
Nothing functionally changes because of the fix.
fbt/powerpc: don't instrument the trap entry path
On powerpc an fbt probe is a program interrupt that goes through the
normal trap path, powerpc_interrupt() -> trap() -> dtrace_trap(). A
probe on trap() or powerpc_interrupt() fires again on the way to its
own handler, so it recurses until the kernel stack runs out, and
enabling fbt::trap:entry panics the machine right away.
Skip both functions, like aarch64 and riscv skip their exception
handlers.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D61660
rumdl: update to 0.3.5.
Changed
The MSRV policy is now a rolling window: rumdl supports at least the three
most recent stable Rust releases, and raising the MSRV within that window may
happen in any release, announced in the changelog. Previously an MSRV raise
required a minor release. Prebuilt binaries, PyPI wheels and npm packages are
unaffected.
Raise the minimum supported Rust version to 1.98 and move the MDX
JavaScript parser to Oxc 0.159, so projects that embed rumdl alongside
current Oxc link one copy of the parser. All dependencies, including the
development and fuzz ones, are upgraded to their latest releases.
Fixed
MD076 preserves loose-list spacing when blank-separated blocks inside an item
or required structural separators keep the list loose, preventing repeated
formatting changes when used with Prettier (#989).
[21 lines not shown]
[analyzer] Fix CFG elements order when AddLifetime is enabled (#243630)
When `AddLifetime` is enabled the the order of CFG elements are in a
mixed, not reversed order for a scope that mixes trivially and
non-trivially destructible locals. Non-trivially destructible locals
were constructed in a reverse order in `addAutomaticObjDestruction`, but
the trivially destructible locals were constructed in a reverse order in
`addScopeExitHandling`. Even though in each function the reverse order
of declaration was correctly implemented at the call site of the
functions (`addAutomaticObjHandling`) the order was mixed.
This PR resolves this issue by removing `appendLifetimeEnds` function
from the `addScopeExitHandling` function and adding
`needsAutomaticDestruction` as a guard only for destructors marked as no
return.
This PR fixes https://github.com/llvm/llvm-project/issues/233815
[AVR] lower `va_arg` in clang rather than rely on the LLVM intrinsic (#240157)
The LLVM intrinsic is well-known to miscompile, and most other frontends
already lower `va_arg` themselves.
py-ruff: update to 0.17.6.
Preview features
[flake8-type-checking] Add a fix for runtime-string-union (TC010) (#15635)
Bug fixes
Fix handling of parenthesized duplicate items (B033, RUF068) (#30493)
[pyflakes] Fix false negative when a name is assigned more than once (F823) (#30524)
[pylint] Avoid false positive when collection is modified in loop (PLR1733, PLR1736) (#30466)
[ruff] Avoid syntax error in useless-finally fix for inline try bodies (RUF072) (#30349)
Treat relative imports from .__future__ as ordinary imports (#30260)
Rule changes
[flake8-simplify] Avoid redundant bool wrappers in SIM208 fixes (#30457)
[pyflakes] Ignore __traceback_hide__ in unused-variable (F841) (#29600)
[14 lines not shown]
git-delta: update to 0.21.2.
0.21.2
This is mainly a bug fix release that allows the TUI to use editors
such as vim and emacs -nw. See dandavison/gitu#7. It also contains
improvements to submodule display.
0.21.1
With this release, delta can be used as a TUI. It's based on a fork
of gitu, and has many keybindings for exploring git diff, git show,
and git log views, the ability to stage directly from delta-rendered
diffs (including side-by-side), reorder and fixup commits in your
native log view, diff folding, and all of gitu's other git operations
(commit, push, pull, rebase, etc). See the manual
https://dandavison.github.io/delta/tui.html and the README for
documentation and videos. Many thanks to @altsem for their
encouragement to fork the gitu codebase for this purpose. Also to
[2 lines not shown]
[mlir][VectorToGPU] Avoid skipping contractions after rejected candididates (#238761)
When collecting operations for MMA conversion, a rejected candidate may
populate the backward-slice cache for another candidate without
selecting it for conversion.
Checking the cache to skip previously visited operations can therefore
prevent a valid contraction from being considered for MMA conversion.
Instead, check opToConvert to skip only operations already selected for
conversion. This preserves the slice cache while allowing candidates
encountered during rejected conversions to be considered independently.
Fixes regression from
https://github.com/llvm/llvm-project/commit/d287e55d0302.
Assisted-by: Codex
[RISCV] Ignore debug uses in RISCVVLOptimizer (#244237)
Fixes #242732.
With `-g`, `DBG_VALUE` users prevented `RISCVVLOptimizer` from reducing
the VL of vector instructions causing `-g` and `-g0` codegen to diverge.
There were two places where debug uses got in the way
- `checkUsers` walked `use_operands()` including when peeking through
`COPY`, `INSERT_SUBREG` and `PHI` so hitting a `DBG_VALUE` made it give
up since debug instructions dont have an SEW operand.
- `tryReduceVL` walked `use_instructions()` when checking whether same
block uses are dominated by the new VL before moving `MI` after the VL
definition so a `DBG_VALUE` sitting between `MI` and the VL def blocked
the move.
This switches those walks to `use_nodbg_operands()` and
`use_nodbg_instructions()` and adds MIR tests in
[4 lines not shown]