Matt Macy
fc2e87be2b
intr unbreak KTR/LINT build
2018-05-19 07:04:43 +00:00
Matt Macy
d0ba1baed3
ctfconvert: silence useless enum has too many values warning
2018-05-19 06:31:17 +00:00
Matt Macy
f5ad6b4b00
pmap: silence warnings
2018-05-19 05:58:05 +00:00
Matt Macy
24a7d6d3a6
netmap and iflib drivers, silence unused var warnings
2018-05-19 05:57:26 +00:00
Matt Macy
f6960e207e
netinet silence warnings
2018-05-19 05:56:21 +00:00
Matt Macy
7a3c5b05e4
tcp sysctl fix may be uninitialized
2018-05-19 05:55:31 +00:00
Matt Macy
21f6fe2d7c
tcp fastopen: fix may be uninitialized
2018-05-19 05:55:00 +00:00
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