freebsd-skq/sys/powerpc
jhibbits b709c9275b Add a INTR_TRIG_INVALID, and use it in the powerpc interrupt code.
Summary:
Clang throws the following warning in powerpc intr_machdep:

/usr/src/sys/powerpc/powerpc/intr_machdep.c:454:15: warning: comparison of
constant -1 with expression of type 'enum intr_trigger' is always false
[-Wtautological-constant-out-of-range-compare]
    if (i->trig == -1)
        ~~~~~~~ ^  ~~

This may lead to legitimate problems with aggressive optimizations, if not now
then in the future.  To avoid this, add a new enum, INTR_TRIG_INVALID, set to
-1, and use this new enumeration in these checks.

Test Plan: Compile test.

Reviewed By: jhb, kib
Differential Revision: https://reviews.freebsd.org/D9300
2017-01-30 02:21:29 +00:00
..
aim Use the explicit expanded form of cmp. 2017-01-18 03:42:21 +00:00
booke Use trunc_page() instead of rolling my own in pmap_track_page() 2016-12-05 02:27:50 +00:00
conf Migrate e1000 to the IFLIB framework: 2017-01-10 03:23:22 +00:00
cpufreq
fpu Un-static two local variables in the FPU emulator 2016-10-19 02:23:29 +00:00
include Add atomic_fcmpset_*() inlines for powerpc 2017-01-30 02:15:54 +00:00
mambo
mikrotik
mpc85xx Fix r312613. 2017-01-22 06:17:31 +00:00
ofw Revert part of r306065 2016-09-21 22:09:17 +00:00
powermac
powerpc Add a INTR_TRIG_INVALID, and use it in the powerpc interrupt code. 2017-01-30 02:21:29 +00:00
ps3 Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
pseries Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
psim