From owner-freebsd-current@FreeBSD.ORG Sat Apr 11 13:53:49 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6728013C for ; Sat, 11 Apr 2015 13:53:49 +0000 (UTC) Received: from mail-vn0-f50.google.com (mail-vn0-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27C36772 for ; Sat, 11 Apr 2015 13:53:48 +0000 (UTC) Received: by vnbf190 with SMTP id f190so11339118vnb.1 for ; Sat, 11 Apr 2015 06:53:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=8AiAxlmJnUDcrPg5XqLbo3sr+dqO9uUZ4S6t5ttT7oU=; b=LH+wFtePVI+rjxRm5m/uooiKlOlfLi8STlcnwZlLH+wHTZMHh1U5fvmI5Iw7eGKIx8 Me04W/Gpuxd8FcOV0j1z1e0XqRPV+NsCTOh4RmGALmMnPdtZ5RnBGZjskXILK0lLHYEi GIa4mndUIoSazd6Qn03iHWaK1goyzb8wgorGbc+Su/6zmNmZdTU0/H8g5rXfqfCpffbH wDgd76aB4VKvuwv4WipcU9X3iE+4TC+uI3nAHTHB/NuhA6z6vDgEp9T9lUfBTzSxVgq7 KdVk/Md9iAerlPgE+UpsP4y2K7JLFGRKv1SgX5MZG4UvldrnIlz+7upc5EO24LkJcfOK w4iw== X-Gm-Message-State: ALoCoQkeJyYZfurwVPNqkv++A7x9mm8xPr0Umb2zvI+rwHnf2NWv8nQaKg/zB2MVhZLEruZcnM4E MIME-Version: 1.0 X-Received: by 10.202.84.135 with SMTP id i129mr1913624oib.114.1428760421856; Sat, 11 Apr 2015 06:53:41 -0700 (PDT) Received: by 10.202.80.6 with HTTP; Sat, 11 Apr 2015 06:53:41 -0700 (PDT) Date: Sat, 11 Apr 2015 15:53:41 +0200 Message-ID: Subject: WARNING: FOO.c: enum pmc_event has too many values: 1930 > 1023 From: Oliver Pinter To: current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2015 13:53:49 -0000 Hi all! I just found the line in the subject in our jenkinsbuild log in both amd64 and i386 case (we don't modified these files): http://nyi-01.build.hardenedbsd.org:8180/jenkins/job/HardenedBSD-master-i386/56/console http://nyi-01.build.hardenedbsd.org:8180/jenkins/job/HardenedBSD-master-amd64/58/consoleFull And more similar lines: WARNING: kern_pmc.c: enum pmc_event has too many values: 1930 > 1023 WARNING: kern_rwlock.c: enum pmc_event has too many values: 1930 > 1023 WARNING: kern_sx.c: enum pmc_event has too many values: 1930 > 1023 WARNING: kern_clock.c: enum pmc_event has too many values: 1930 > 1023 WARNING: kern_mutex.c: enum pmc_event has too many values: 1930 > 1023 WARNING: trap.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_soft.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_intel.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_amd.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_tsc.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_x86.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_logging.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_piv.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_uncore.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_core.c: enum pmc_event has too many values: 1930 > 1023 WARNING: hwpmc_mod.c: enum pmc_event has too many values: 1930 > 1023 WARNING: kern_lock.c: enum pmc_event has too many values: 1930 > 1023 and some other hwpmc related warnings too: --- kern_pmc.o --- /jenkins/workspace/HardenedBSD-master-amd64/sys/kern/kern_pmc.c:290:32: warning: comparison of constant 131072 with expression of type 'enum pmc_event' is always false [-Wtautological-constant-out-of-range-compare] KASSERT(ps->ps_ev.pm_ev_code >= PMC_EV_SOFT_FIRST && ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/systm.h:84:24: note: expanded from macro 'KASSERT' if (__predict_false(!(exp))) \ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/cdefs.h:453:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/kern/kern_pmc.c:291:28: warning: comparison of constant 135167 with expression of type 'enum pmc_event' is always true [-Wtautological-constant-out-of-range-compare] ps->ps_ev.pm_ev_code <= PMC_EV_SOFT_LAST, ~~~~~~~~~~~~~~~~~~~~ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/systm.h:84:24: note: expanded from macro 'KASSERT' if (__predict_false(!(exp))) \ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/cdefs.h:453:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^ --- kern_prot.o --- --- kern_pmc.o --- /jenkins/workspace/HardenedBSD-master-amd64/sys/kern/kern_pmc.c:307:13: warning: comparison of constant 131072 with expression of type 'enum pmc_event' is always false [-Wtautological-constant-out-of-range-compare] KASSERT(ev >= PMC_EV_SOFT_FIRST && ~~ ^ ~~~~~~~~~~~~~~~~~ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/systm.h:84:24: note: expanded from macro 'KASSERT' if (__predict_false(!(exp))) \ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/cdefs.h:453:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/kern/kern_pmc.c:308:9: warning: comparison of constant 135167 with expression of type 'enum pmc_event' is always true [-Wtautological-constant-out-of-range-compare] ev <= PMC_EV_SOFT_LAST, ~~ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/systm.h:84:24: note: expanded from macro 'KASSERT' if (__predict_false(!(exp))) \ ^ /jenkins/workspace/HardenedBSD-master-amd64/sys/sys/cdefs.h:453:51: note: expanded from macro '__predict_false' #define __predict_false(exp) __builtin_expect((exp), 0) ^