[clang][Tooling] Insert global module fragment during header insertion (#173724)
This patch makes `HeaderIncludes` to also insert a global module
fragment declaration (`module;`) when inserting a header when all of the
following conditions are met:
- The source file is a module unit;
- No tokens excluding comments and whitespaces exist before the module
declaration.
This patch detects the conditions by checking whether the first
declaration in the source file is a module declaration.
[clang-doc] Serialize an `Anonymous` JSON field for enums and records
Serializing an `Anonymous` field allows them to be excluded from the
HTML sidebar. Before, there would be several empty spaces in the sidebar
for anonymous enums. This patch also allows the same for anonymous
records, but since they're a GNU extension we don't handle them
explicitly yet.
hwpstate_amd: Fix compile error
Add parentheses between OR and AND operator to pass the compiler check.
Approved by: lwhsu (mentor)
Fixes: 3e6e4e4a0d42 ("hwpstate: add CPPC support for pstate driver on AMD")
MFC aftert: 2 weeks
Differential Revision: https://reviews.freebsd.org/D54465
bridge: Allow BRDGSIFVLANSET without IFBRF_VLANFILTER
Currently, we disallow BRDGSIFVLANSET when IFBRF_VLANFILTER is disabled.
There's no particular reason to do this, and it causes some undesirable
behaviour such as not being able to remove the tagged config on a member
after disabling vlanfilter on the bridge.
Remove the restriction so BRDGSIFVLANSET is always accepted.
PR: 292019
MFC after: 1 week
Reviewed by: zlei, p.mousavizadeh_protonmail.com
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D54435
hwpstate: add CPPC support for pstate driver on AMD
Implement CPPC interface for AMD Pstate Driver.
This feature is only enabled when the CPUID shows it support CPPC.
The CPPC is implemneted by the following steps:
1. Write MSR to enable it.
2. Read capability registert which indicates binary value of levels
about lowest, best energy efficient, guarantee, and max performance.
3. Write request register with epp in energy balanced mode. And let
CPU and firmware to enter autonomous mode.
Also, create a sysctl handler to allow userspace to change epp value.
In intel's hwpstate, The epp value can be in package level and core level.
However, in AMD's one, there is only core level. Thus, to sync with the
intel's code, we implement package level control in software and provide
another sysctl (machdep.hwpstate_pkg_ctrl) to control it.
[5 lines not shown]
[libc++] Fix constraints for `optional`'s constructors taking `in_place_t` and related `make_optional` overloads (#173467)
Some constraints are incorrect for constructors of `optional<T&>`:
- for the `(in_place_t, Arg&&)` constructor, it should be more
constrained to reject dangling references;
- for the `(in_place_t, initializer_list<U>, Args&&...)` constructor, it
shouldn't be available for `optional<T&>` at all.
For `make_optional` overloads, the standard wording already required
them to propagate SFINAE constraints before LWG3627 (via "_Effects_:
Equivalent to", see also [structure.specifications]/4). So they need to
be constrained.
Drive-by: Refactor test files to run more cases during constant
evaluation.
lang/jpm: Add runtime dependencies
- Change maintainer email address
- Add janet as runtime dependency since jpm is just a script that uses
janet executable.
- Add git since "jmp deps" requires it
Reviewed by: David Marker <dave at freedave.net>
Differential Revision: https://reviews.freebsd.org/D54185
[-Wunsafe-buffer-usage] Fix a false negative introduced in #173096 (#174253)
A downstream test recovers a false negative introduced in #173096, where
it changed the use of variable `FmtArgIdx` to `FmtArgStartingIdx`. The
two variables are different in that `FmtArgIdx` refers to the index of
the format string and `FmtArgStartingIdx` refers to the index of the
first format argument. The consequence is that the analysis will miss
reporting an unsafe format string.
This fix also upstreams the test catching the FN.
freerdp3: attempt at update of freerdp to 3.19.0
Doesn't currently build as needs a replacement for sysinfo(), specifically the
uptime field, on NetBSD.
Avoid crashing in apps.query
This commit handles FileNotFoundError on app query when ix-apps
dataset is unmounted. Although this is an unexpected situation,
the broad failures caused by attachment failures prevents admins
from easily recovering.