Quiesce a couple of clang warnings

Submitted by:	hiren panchasara <hiren.panchasara@gmail.com>
Obtained from:	Yahoo! Inc
This commit is contained in:
Sean Bruno 2013-01-12 18:30:52 +00:00
parent 4c95a24141
commit ca57f64f7d
2 changed files with 2 additions and 2 deletions

@ -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. */