Quiesce a couple of clang warnings
Submitted by: hiren panchasara <hiren.panchasara@gmail.com> Obtained from: Yahoo! Inc
This commit is contained in:
parent
4c95a24141
commit
ca57f64f7d
sys/dev/hwpmc
@ -3022,7 +3022,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args)
|
||||
}
|
||||
|
||||
nevent = 0;
|
||||
for (ev = PMC_EV_SOFT_FIRST; ev <= PMC_EV_SOFT_LAST; ev++) {
|
||||
for (ev = PMC_EV_SOFT_FIRST; (int)ev <= PMC_EV_SOFT_LAST; ev++) {
|
||||
ps = pmc_soft_ev_acquire(ev);
|
||||
if (ps == NULL)
|
||||
continue;
|
||||
|
@ -116,7 +116,7 @@ soft_allocate_pmc(int cpu, int ri, struct pmc *pm,
|
||||
return (EPERM);
|
||||
|
||||
ev = pm->pm_event;
|
||||
if (ev < PMC_EV_SOFT_FIRST || ev > PMC_EV_SOFT_LAST)
|
||||
if ((int)ev < PMC_EV_SOFT_FIRST || (int)ev > PMC_EV_SOFT_LAST)
|
||||
return (EINVAL);
|
||||
|
||||
/* Check if event is registered. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user