From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 579F7C001DD for ; Mon, 3 Jul 2023 19:17:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230356AbjGCTRF (ORCPT ); Mon, 3 Jul 2023 15:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjGCTRE (ORCPT ); Mon, 3 Jul 2023 15:17:04 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1ABE7B for ; Mon, 3 Jul 2023 12:16:56 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-53fbf2c42bfso3532964a12.3 for ; Mon, 03 Jul 2023 12:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688411816; x=1691003816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wmfYPyzMN3TrxeJJNRGqcc1V78+Dvq57QM07q24THxo=; b=cBXXw1BX/YQS5OhV4wyvCMLEJtw2faKDUqVuqbWKxU8/5yCELOp1tCfXiXtEv52L9k Yug4x5JvummwpTGtDjxJFlx12KJExacvZghztwNbjKCtREYW/fbFvq3eUtxNKLV+zRXg QTsAuM4NQEoG6QGtlMfRxMY7t78OQSQoth/0E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688411816; x=1691003816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wmfYPyzMN3TrxeJJNRGqcc1V78+Dvq57QM07q24THxo=; b=Oy3yE2TUEDIYPLgP0jY9VewPDNbT2pSr+TKUoJFoHbMXRh+Svaf1OZmnlf/23XSWn5 f33JaqwFkMIslq7DyNkniTeY0oSYR0P0pIS8qbiwvfGCWT9d1Bc3Yy+W0q6AA58KhCJY a+j3IfL6HuQ5XHHExXbtb8wQ23s+yWU6hWHRpa2FVBFxMgD+bIyuv1KhEmU4OpOirUe9 oVTiYL+CLOZUhetRkKTl2WUmr0bo2T8r+vAZGwIoeUJ4mj+hETkjiF6bJS0VRjsy4Obi X3EGb8fFst09ALuxoxXlkhs3Zyi+lfzYppcdG2XrAHqjkjq4A/cPzRzVjovncL4i3RmM xYRg== X-Gm-Message-State: ABy/qLbdvOnqJ/CbuoAbNgERUNYWT87IWxRu2kOjBuwhRkVyc9ZwlsrI 03IwOB5+VwujchozICGJ0i4Bg1dKSLS0YQXIbRA= X-Google-Smtp-Source: APBJJlHAwULPXSe6lmSlODSHADBgzpaDcCSBPzHCTRoQEzG85Wo3jO6XKklJK6hdUmff3Yl9O+EZ7g== X-Received: by 2002:a05:6a20:2595:b0:126:3528:5a13 with SMTP id k21-20020a056a20259500b0012635285a13mr13907284pzd.53.1688411816317; Mon, 03 Jul 2023 12:16:56 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id i11-20020aa78b4b000000b0066a6ba123eesm14325571pfd.51.2023.07.03.12.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 12:16:55 -0700 (PDT) Date: Mon, 3 Jul 2023 12:16:55 -0700 From: Kees Cook To: Naresh Kamboju Cc: open list , linux-perf-users@vger.kernel.org, bpf , Andrei Vagin , "Peter Zijlstra (Intel)" , Arnaldo Carvalho de Melo , Arnd Bergmann Subject: Re: next: perf: 32-bit: bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'uint64_t' Message-ID: <202307031216.171373CD3@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org On Mon, Jul 03, 2023 at 12:55:59PM +0530, Naresh Kamboju wrote: > Following build regressions noticed on Linux next-20230703. > > Reported-by: Linux Kernel Functional Testing > > Regressions found on i386: > > - build/gcc-11-lkftconfig-perf > > Regressions found on arm: > > - build/gcc-10-lkftconfig-perf > - build/gcc-11-lkftconfig-perf > > Build error: > ======= > bench/sched-seccomp-notify.c: In function 'bench_sched_seccomp_notify': > bench/sched-seccomp-notify.c:139:24: error: format '%lu' expects > argument of type 'long unsigned int', but argument 2 has type > 'uint64_t' {aka 'long long unsigned int'} [-Werror=format=] > 139 | printf("# Executed %lu system calls\n\n", > | ~~^ > | | > | long unsigned int > | %llu > 140 | loops); > | ~~~~~ > | | > | uint64_t {aka long long unsigned int} > cc1: all warnings being treated as errors > make[4]: *** [tools/build/Makefile.build:97: > /home/tuxbuild/.cache/tuxmake/builds/1/build/bench/sched-seccomp-notify.o] > Error 1 Thanks! I've updated the format string to use "%"PRIu64 now. -Kees > > Links: > - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230703/testrun/18069798/suite/build/test/gcc-10-lkftconfig-perf/history/ > > > -- > Linaro LKFT > https://lkft.linaro.org -- Kees Cook