Date: Sat, 12 Jan 2013 18:30:52 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245339 - head/sys/dev/hwpmc Message-ID: <201301121830.r0CIUq7u025276@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Sat Jan 12 18:30:52 2013 New Revision: 245339 URL: http://svnweb.freebsd.org/changeset/base/245339 Log: Quiesce a couple of clang warnings Submitted by: hiren panchasara <hiren.panchasara@gmail.com> Obtained from: Yahoo! Inc Modified: head/sys/dev/hwpmc/hwpmc_mod.c head/sys/dev/hwpmc/hwpmc_soft.c Modified: head/sys/dev/hwpmc/hwpmc_mod.c ============================================================================== --- head/sys/dev/hwpmc/hwpmc_mod.c Sat Jan 12 18:25:48 2013 (r245338) +++ head/sys/dev/hwpmc/hwpmc_mod.c Sat Jan 12 18:30:52 2013 (r245339) @@ -3022,7 +3022,7 @@ pmc_syscall_handler(struct thread *td, v } 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; Modified: head/sys/dev/hwpmc/hwpmc_soft.c ============================================================================== --- head/sys/dev/hwpmc/hwpmc_soft.c Sat Jan 12 18:25:48 2013 (r245338) +++ head/sys/dev/hwpmc/hwpmc_soft.c Sat Jan 12 18:30:52 2013 (r245339) @@ -116,7 +116,7 @@ soft_allocate_pmc(int cpu, int ri, struc 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301121830.r0CIUq7u025276>