mmacy
02971321ff
netinet silence warnings
2018-05-19 05:56:21 +00:00
mmacy
d6172458e9
tcp sysctl fix may be uninitialized
2018-05-19 05:55:31 +00:00
mmacy
11ed7bdd8d
tcp fastopen: fix may be uninitialized
2018-05-19 05:55:00 +00:00
mmacy
20798cced4
AF_UNIX: switch to annotations to avoid warnings
2018-05-19 05:37:58 +00:00
mmacy
23ede0cc2e
netmap: compare e1 with e2, not with itself
2018-05-19 05:37:18 +00:00
mmacy
0db6398617
net: fix set but not used
2018-05-19 05:27:49 +00:00
mmacy
3886da5a93
capsicum: propagate const correctness
2018-05-19 05:14:05 +00:00
mmacy
b862678077
back out DBGSET macro
2018-05-19 05:12:57 +00:00
mmacy
680fe8339d
intr: eliminate / annotate unused stack locals
2018-05-19 05:12:18 +00:00
mmacy
dac24b3417
sendfile: annotate unused value and ensure that npages is actually initialized
2018-05-19 05:10:51 +00:00
mmacy
a029bbc5e5
umtx: don't call umtxq_getchain unless the value is needed
2018-05-19 05:09:10 +00:00
mmacy
5eda5d6711
cpuset: revert and annotate instead
2018-05-19 05:07:31 +00:00
mmacy
861014e26c
conf: revert last change and annotate unused var instead
2018-05-19 05:07:03 +00:00
mmacy
56410d49b1
kevent: annotate unused stack local
2018-05-19 05:06:18 +00:00
mmacy
c78ee89370
lockf: annotate LOCKF_DEBUG only var
2018-05-19 05:04:38 +00:00
mmacy
aac0792101
capsicum: annotate variable only used by debug
2018-05-19 05:02:40 +00:00
mmacy
63ce31f3b1
turnstile / sleepqueue: annotate variables only used by debug builds
2018-05-19 05:00:16 +00:00
mmacy
4eacc08586
vfs: annotate variables only used by debug builds as __unused
2018-05-19 04:59:39 +00:00
jhibbits
c6cca6917f
Add SPR_HSRR0/SPR_HSRR1 definitions
...
Reported by: Mark Millard
Pointy-hat to: jhibbits
2018-05-19 04:56:10 +00:00
mmacy
214cb70c1a
tty: use __unused annotation instead to silence warnings
2018-05-19 04:48:26 +00:00
mmacy
ace81143fd
epoch: avoid warning when INVARIANTS is not enabled
2018-05-19 04:47:34 +00:00
mmacy
b2201d4e88
disable set but not used on code that can't be changed
2018-05-19 04:46:34 +00:00
mmacy
366f674ab5
malloc: avoid possibly returning stack garbage if MALLOC_DEBUG is defined
2018-05-19 04:43:49 +00:00
jhibbits
96915338d5
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
mmacy
a42e239a05
cpuset_thread0: avoid unused assignment on non debug build
2018-05-19 04:14:00 +00:00
mmacy
07e1c3def4
make_dev: avoid unused assignments on non debug builds
2018-05-19 04:13:20 +00:00
mmacy
77a3ff4fe0
mqueue: avoid unused variables
2018-05-19 04:10:53 +00:00
mmacy
71ee67e907
physio: avoid uninitialized variables
2018-05-19 04:09:58 +00:00
mmacy
0cad561f8c
cache_lookup remove unused variable and initialize used
2018-05-19 04:08:11 +00:00
mmacy
e1c41612d0
filt_timerdetach: only assign to old if we're going to check it in
...
a KASSERT
2018-05-19 04:07:00 +00:00
mmacy
ae3e2f4e32
getnextevent: put variable only used by KTR under ifdef KTR
2018-05-19 04:05:36 +00:00
mmacy
1edae3372d
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
mmacy
3b202e89e0
tty: conditionally assign to ret value only used by MPASS statement
2018-05-19 04:02:29 +00:00
jhibbits
d02acb9927
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
mmacy
130d8ea8de
remove unused locked variable in lockmgr_unlock_fast_path
2018-05-19 03:58:40 +00:00
mmacy
ac52916f52
signotify: don't create a stack local that isn't used on non-debug builds
2018-05-19 03:57:41 +00:00
mmacy
1a9d954f7e
sysv_msg initialize saved_msgsz
2018-05-19 03:56:39 +00:00
mmacy
9adfff2b18
remove unused variable
2018-05-19 03:55:42 +00:00
mmacy
0c8764214e
fix uninitialized variable warning in reader locks
2018-05-19 03:52:55 +00:00
mmacy
35c4eb3fff
add DBGSET macro to conditionally assign to a variable depending on INVARIANTS
2018-05-19 03:50:29 +00:00
mmacy
350f657795
fix uninitialized variable warning
2018-05-19 03:49:36 +00:00
mmacy
dcf6fa9422
sys_process.c fix set but not used warning
2018-05-19 03:48:35 +00:00
mmacy
edbaf8fc62
subr_epoch.c fix unused variable warnings
2018-05-19 03:47:37 +00:00
jhibbits
bf8692e041
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
jhibbits
895c0483ab
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
jhibbits
c804777c4e
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
mmacy
79dec8cde3
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
mmacy
092fac4e4a
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
mmacy
d5878b87ff
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
mmacy
2a73e755ac
Annotate td_pre_epoch_prio in struct thread
...
Reported by: jhb
2018-05-18 23:17:49 +00:00