Commit Graph

300996 Commits

Author SHA1 Message Date
mlelstv 1abfed5d46 codec translates to 16bit slinear_le, not the internal format. 2023-04-30 14:20:23 +00:00
riastradh 28bfa2211f sys/sdt.h: Omit spurious trailing semicolon in DTRACE_PROBE*. 2023-04-30 08:46:33 +00:00
riastradh c6e9851d18 sys/sdt.h: Nix needless SDT_VAR_DECL.
Previously introduced as a provisional build fix, its need has been
obviated by making SDT_PROBE* do __USE on the arguments in builds
without KDTRACE_HOOKS.
2023-04-30 08:46:20 +00:00
riastradh 281a66cd35 kern/vfs_subr.c: Revert previous build fixes, no longer needed.
SDT_PROBE* will now DTRT here.
2023-04-30 08:46:11 +00:00
riastradh 5bbc6a78a7 sys/sdt.h: Make sure SDT_PROBE*, DTRACE_PROBE* compile the arguments.
This way there's no need to fuss around with conditional declarations
and assignments in the callers to avoid `variable set but not used'
errors in builds without KDTRACE_HOOKS.
2023-04-30 08:46:03 +00:00
riastradh b375b01c22 sys/cdefs.h: New __MACROUSE for macros to type-check arguments.
This way, if there's a macro F(x) with a conditional definition --
e.g., conditional on DIAGNOSTIC or KDTRACE_HOOKS -- it can do
__MACROUSE(x) in the definition that's supposed to compile away,
without triggering `variable set but not used' errors, while still
catching type errors in the expression x.  But there's no cost or
side effects incurred in the generated code because the value is not
computed.

This should be the same as __USE, but I haven't figured out how to
make it work for both bit fields (which are likely to appear in macro
arguments) and aggregates (structs/unions, which are likely to appear
as variable declarations), so for now we use two separate macros.
2023-04-30 08:45:48 +00:00
riastradh 234b72b965 sys/sdt.h: Whitespace cleanup (and internal macro semicolon tidying).
No functional change intended.
2023-04-30 08:45:39 +00:00
riastradh 93c37acce4 sys/sdt.h: Properly parenthesize macro arguments. 2023-04-30 08:45:30 +00:00
riastradh f4f166c00e sys/sdt.h: Nix trailing whitspace.
No functional change intended.
2023-04-30 08:45:19 +00:00
mlelstv e05ae633c4 xhci doesn't like 80 packets per USB interval, but 40 seems to be fine
for xhci (and ehci).
2023-04-30 08:35:52 +00:00
kre bb29462f14 Fix builds (hopefully) when DTRACE hooks are not included. 2023-04-29 23:30:18 +00:00
uwe d13ac07234 pthread_create(3): minor markup tweaks 2023-04-29 21:37:07 +00:00
jschauma 9f411f7283 delete spurious space 2023-04-29 20:51:45 +00:00
christos 7185162193 Like everywhere else make sure DESTDIR is not empty before using it.
Otherwise if it is empty before we were adding an optargless -d, which
ended up using the next argument (a -Isomething) after the recent change
to xlint.c related to sysroot. This broke using the native tools make
with the cross toolchain (for example typing make in /usr/src/bin/ls)
to build and install a single program.
2023-04-29 20:31:59 +00:00
jmcneill 44165b578c sdmmc: Only check chipset WP status for SD cards.
The sdmmc_chip_write_protect callback returns the write protect switch
status from the controller (SDWP#). This signal does not exist for eMMC;
instead, write protect is signaled using card registers (CSD). So lets
skip asking the chipset for WP status on eMMC cards for each write
request.
2023-04-29 13:21:31 +00:00
riastradh 016912d05c dk(4): Rename label for consistency. No functional change intended. 2023-04-29 13:00:17 +00:00
rillig 7b4c9b2cdf tests/make: extend test for target-local variables 2023-04-29 10:16:24 +00:00
riastradh 976e1dd950 vfs: Sprinkle dtrace probes into syncer. 2023-04-29 10:07:30 +00:00
riastradh 7539b5051b vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cache.c to vfs_init.c.
Not a namecache-specific thing.
2023-04-29 10:07:22 +00:00
riastradh 49f51120ef kern/vfs_init.c: Sort includes. No functional change intended. 2023-04-29 10:07:13 +00:00
riastradh 889f57d951 sys/vnode_impl.h: Declare vfs sdt provider.
This way it can be used by more than just vfs_cache.c.
2023-04-29 10:07:05 +00:00
riastradh 760ebcf1aa kern/vfs_subr.c: Sort includes. No functional change intended. 2023-04-29 10:06:33 +00:00
skrll 309d94a738 Fix build after previous. m68k uses symnum instead of symidx. 2023-04-29 10:01:51 +00:00
riastradh 9fc4d1f3de tmpfs: Assert no arithmetic overflow in directory node tn_size.
Need >2^57 directory entries before this is a problem.  If we created
a million per second, this would take over 4000 years.
2023-04-29 08:15:13 +00:00
riastradh 08655e8aab tmpfs: Refuse sizes that overflow round_page.
Reported-by: syzbot+8dbeee84de15f86df65b@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=4a27b9fe074f8d4b0afbe22969339b8dfdb157e8
2023-04-29 08:13:27 +00:00
riastradh 769a293eed kern/vfs_syscalls.c: Nix trailing whitesapce.
No functional change intended.
2023-04-29 06:34:20 +00:00
riastradh fc536c0710 tmpfs: Nix trailing whitespace. No functional change intended. 2023-04-29 06:29:55 +00:00
riastradh 0e8c8df430 sys/vnode_impl.h: Nix trailing whitespace.
No functional change intended.
2023-04-29 06:28:12 +00:00
riastradh 76e8386e99 dk(4): Fix lock assertion in size increase: parent's, not wedge's.
Reported-by: syzbot+d4dc610473cacc5183dd@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=e18ddae8283d6fab44cfb1ac7e3f8e791f8c0700
2023-04-29 06:23:37 +00:00
isaki 72945852e3 White space fix. 2023-04-29 03:36:55 +00:00
isaki b78a8edb10 m68k: Support TT(Transparent Translation) for 020/030 buserror handler.
This avoids a panic when trying badaddr() against to an address where
bus error occurs in the TT region.  Only luna68k and news68k use TT.
Discussed on port-m68k.
2023-04-29 03:17:30 +00:00
andvar a002c830eb fix few typos and grammar in comments. 2023-04-28 22:31:38 +00:00
andvar 6ef0b3e460 one more place for recently fixed typo, s/phisycal/physical/. 2023-04-28 22:23:45 +00:00
gutteridge 58e631d846 3RDPARTY: the atf-devel mailing list was closed years ago 2023-04-28 16:13:11 +00:00
rillig 471bb2782b tests/make: add tests for target-local variables
While here, move a test from var-scope-local.mk to parse.mk since that
test is not related to variables.
2023-04-28 13:09:48 +00:00
pgoyette 2c712e3804 Fix typo in comment 2023-04-28 09:56:45 +00:00
skrll e341d80516 Pass local symbols relocations in both passes and provide the kobj_reloc
implementation visibility of these relocations.

Currently all implementations resolve local symbol relocations in the first
pass and simply skip them in the second. The RISC-V implementation will
make use of this visiblity.
2023-04-28 07:33:55 +00:00
blymn 3aed864489 Don't set the clear_to_eol variable in doupdate to NULL, this was a
leftover from previous code that makes no sense and makes worms(6)
crash randomly.  Thanks to kre@ for reporting this.
2023-04-28 07:12:39 +00:00
hgutch 6d7231e655 Unbreak creation of i386 PIEs on amd64.
Functional patch by RVP;  set lists updated accordingly.

This fixes PR toolchain/57380.
2023-04-27 20:55:27 +00:00
roy a3a592bb82 dhcpcd: Fix non INET6 builds.
Thanks to J. Hannken-Illjes for the fix.
2023-04-27 13:21:59 +00:00
skrll ed6865dc19 Remove an unnecessary cast in a KASSERTMSG 2023-04-27 06:30:09 +00:00
skrll 6fc09aadfb Correct a type. 2023-04-27 06:23:31 +00:00
kre 8552e825c7 Add a little optional colour, optionally distinguish worm heads,
and optionally randomise worm lengths.   Just exit instead of
continuing with a nonsense display if the window shrinks (and
for consistency if it grows).

Most of the ideas and code from RVP.   Bugs and man page mangling
from me.
2023-04-26 22:58:09 +00:00
wiz 2dbb90eecc gcc 13.1 is out 2023-04-26 18:42:41 +00:00
kre 211e5fcd48 Us daemons don't need no unions - just wait, the easy way. 2023-04-26 18:25:02 +00:00
rillig 0878a3d7ee lint: reword message for missing declaration in header
Suggested by Christos.
2023-04-25 19:00:57 +00:00
christos 4ee547369c pass lint. 2023-04-25 17:51:32 +00:00
gutteridge 15ad6013dd tip.1: s/Mail.1/mail.1/ ("Mail" was removed in 9) 2023-04-25 01:48:37 +00:00
uwe c9764f2dff tests/rump/modautoload: reorder -lrumpvfs_nofifofs
Make the way we spell "-lrumpvfs -lrumpvfs_nofifofs" hack consistent.
The order doesn't matter here because of --whole-archive.
2023-04-24 20:55:53 +00:00
uwe 1694588bdd tests: trim down the list of LIBRUMPBASE libraries
Now that cyclic dependencies are (mostly) broken, we can drop repeated
-l instances that worked around those cycles.  Links on sun2.
2023-04-24 20:35:49 +00:00