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
@ -3022,7 +3022,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nevent = 0;
|
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);
|
ps = pmc_soft_ev_acquire(ev);
|
||||||
if (ps == NULL)
|
if (ps == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
@ -116,7 +116,7 @@ soft_allocate_pmc(int cpu, int ri, struct pmc *pm,
|
|||||||
return (EPERM);
|
return (EPERM);
|
||||||
|
|
||||||
ev = pm->pm_event;
|
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);
|
return (EINVAL);
|
||||||
|
|
||||||
/* Check if event is registered. */
|
/* Check if event is registered. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user