Matt Macy
4b06dee1e5
AF_UNIX: switch to annotations to avoid warnings
2018-05-19 05:37:58 +00:00
Matt Macy
3535fae847
netmap: compare e1 with e2, not with itself
2018-05-19 05:37:18 +00:00
Matt Macy
46d0f824be
net: fix set but not used
2018-05-19 05:27:49 +00:00
Matt Macy
acbde29858
capsicum: propagate const correctness
2018-05-19 05:14:05 +00:00
Matt Macy
af2ffa3d52
back out DBGSET macro
2018-05-19 05:12:57 +00:00
Matt Macy
ba3f7276c0
intr: eliminate / annotate unused stack locals
2018-05-19 05:12:18 +00:00
Matt Macy
7fd6841438
sendfile: annotate unused value and ensure that npages is actually initialized
2018-05-19 05:10:51 +00:00
Matt Macy
e1a92f058f
umtx: don't call umtxq_getchain unless the value is needed
2018-05-19 05:09:10 +00:00
Matt Macy
a6c7423a92
cpuset: revert and annotate instead
2018-05-19 05:07:31 +00:00
Matt Macy
6fa5abfdda
conf: revert last change and annotate unused var instead
2018-05-19 05:07:03 +00:00
Matt Macy
1c0336c1c1
kevent: annotate unused stack local
2018-05-19 05:06:18 +00:00
Matt Macy
788390df0a
lockf: annotate LOCKF_DEBUG only var
2018-05-19 05:04:38 +00:00
Matt Macy
d1230b1159
capsicum: annotate variable only used by debug
2018-05-19 05:02:40 +00:00
Matt Macy
3adccf38e3
turnstile / sleepqueue: annotate variables only used by debug builds
2018-05-19 05:00:16 +00:00
Matt Macy
84482abd21
vfs: annotate variables only used by debug builds as __unused
2018-05-19 04:59:39 +00:00
Justin Hibbits
4a11ed7159
Add SPR_HSRR0/SPR_HSRR1 definitions
...
Reported by: Mark Millard
Pointy-hat to: jhibbits
2018-05-19 04:56:10 +00:00
Matt Macy
a2bb4e080e
tty: use __unused annotation instead to silence warnings
2018-05-19 04:48:26 +00:00
Matt Macy
b25651a46a
epoch: avoid warning when INVARIANTS is not enabled
2018-05-19 04:47:34 +00:00
Matt Macy
e5ae3af78b
disable set but not used on code that can't be changed
2018-05-19 04:46:34 +00:00
Matt Macy
5072a5f465
malloc: avoid possibly returning stack garbage if MALLOC_DEBUG is defined
2018-05-19 04:43:49 +00:00
Justin Hibbits
5321c01b50
Add hypervisor trap handling, using HSRR0/HSRR1
...
Summary:
Some hypervisor exceptions on POWER architecture only save state to HSRR0/HSRR1.
Until we have bhyve on POWER, use a lightweight exception frontend which copies
HSRR0/HSRR1 into SRR0/SRR1, and run the normal trap handler.
The first user of this is the Hypervisor Virtualization Interrupt, which targets
the XIVE interrupt controller on POWER9.
Reviewed By: nwhitehorn
Differential Revision: https://reviews.freebsd.org/D15487
2018-05-19 04:21:50 +00:00
Matt Macy
39eef2f45a
cpuset_thread0: avoid unused assignment on non debug build
2018-05-19 04:14:00 +00:00
Matt Macy
926cfdb8da
make_dev: avoid unused assignments on non debug builds
2018-05-19 04:13:20 +00:00
Matt Macy
4949ad7264
mqueue: avoid unused variables
2018-05-19 04:10:53 +00:00
Matt Macy
cd6ba3f086
physio: avoid uninitialized variables
2018-05-19 04:09:58 +00:00
Matt Macy
e9b1074bc7
cache_lookup remove unused variable and initialize used
2018-05-19 04:08:11 +00:00
Matt Macy
ec8d23352b
filt_timerdetach: only assign to old if we're going to check it in
...
a KASSERT
2018-05-19 04:07:00 +00:00
Matt Macy
5cc2d25a2b
getnextevent: put variable only used by KTR under ifdef KTR
2018-05-19 04:05:36 +00:00
Matt Macy
bfd0eacb02
simplify control flow so that gcc knows we never pass save to curthread_pflags_restore
...
without initializing
2018-05-19 04:04:44 +00:00
Matt Macy
3ef78c9c96
tty: conditionally assign to ret value only used by MPASS statement
2018-05-19 04:02:29 +00:00
Justin Hibbits
30f3b0f5f7
powerpc64: Add OPAL definitions
...
Summary:
Add additional OPAL PCI definitions and expand the code to use them in order to
ease the OPAL interface process for new comers.
These definitions came directly from the OPAL code and they are the same for
both PHB3 (POWER8) and PHB4 (POWER9).
Submitted by: Breno Leitao
Differential Revision: https://reviews.freebsd.org/D15432
2018-05-19 04:01:15 +00:00
Matt Macy
02fe8a2409
remove unused locked variable in lockmgr_unlock_fast_path
2018-05-19 03:58:40 +00:00
Matt Macy
ddd4d15ecd
signotify: don't create a stack local that isn't used on non-debug builds
2018-05-19 03:57:41 +00:00
Matt Macy
46117e1f0c
sysv_msg initialize saved_msgsz
2018-05-19 03:56:39 +00:00
Matt Macy
11d4f748d7
remove unused variable
2018-05-19 03:55:42 +00:00
Matt Macy
1dce110f63
fix uninitialized variable warning in reader locks
2018-05-19 03:52:55 +00:00
Matt Macy
f1b2eaf13b
add DBGSET macro to conditionally assign to a variable depending on INVARIANTS
2018-05-19 03:50:29 +00:00
Matt Macy
b203713694
fix uninitialized variable warning
2018-05-19 03:49:36 +00:00
Matt Macy
ac8b2d5cb1
sys_process.c fix set but not used warning
2018-05-19 03:48:35 +00:00
Matt Macy
e339e43685
subr_epoch.c fix unused variable warnings
2018-05-19 03:47:37 +00:00
Justin Hibbits
c07c77a311
Fix a manual copy from the original diff for r333825
...
The 'else' was in the original diff.
Submitted by: Breno Leitao
2018-05-19 03:47:28 +00:00
Justin Hibbits
876f3b9295
Add yet another option for gathering available memory
...
On some POWER9 systems, 'reg' denotes the full memory in the system, while
'linux,usable-memory' denotes the usable memory. Some memory is reserved for
NVLink usage, so is partitioned off.
Submitted by: Breno Leitao
2018-05-19 03:45:38 +00:00
Justin Hibbits
829c98b82e
Add some Hypervisor interrupt definitions
...
This mostly completes the interrupt definitions. There are still some left out,
less likely to be used in the near term.
2018-05-19 03:23:46 +00:00
Matt Macy
ae6be8e6f7
pidctrl Actually use the variables that we assign to as seatbelts to prevent divide
...
by zero
Reviewed by: jeffr
2018-05-19 02:17:18 +00:00
Matt Macy
c0874c3468
fix gcc8 unused variable and set but not used variable in unix sockets
...
add copyright from lock rewrite while here
2018-05-19 02:15:40 +00:00
Simon J. Gerraty
494f719155
Merge bmake-20180512
...
Skip polling job token pipe,
better handle sysV style includes with variables.
2018-05-19 00:26:00 +00:00
Matt Macy
cccc969bc7
Silence non-actionable warnings in vendor code
...
We can't modify vendor code so there's no signal in warnings from it.
Similarly -Waddress-of-packed-member is not useful on networking code
as access to packed structures is fundamental to its operation.
2018-05-19 00:04:01 +00:00
Matt Macy
3f25f5fbe5
Annotate td_pre_epoch_prio in struct thread
...
Reported by: jhb
2018-05-18 23:17:49 +00:00
Mateusz Guzik
10391db530
lockmgr: avoid atomic on unlock in the slow path
...
The code is pretty much guaranteed not to be able to unlock.
This is a minor nit. The code still performs way too many reads.
The altered exclusive-locked condition is supposed to be always
true as well, to be cleaned up at a later date.
2018-05-18 22:57:52 +00:00
Edward Tomasz Napierala
6b7e508c4a
Stop claiming the device-side USB serial interfaces talk Hayes AT.
...
There should be no functional difference.
Reviewed by: hselasky@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2018-05-18 20:24:19 +00:00