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 X-Spam-Level: X-Spam-Status: No, score=-18.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A7FC4338F for ; Wed, 18 Aug 2021 00:38:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4B5AF60FA0 for ; Wed, 18 Aug 2021 00:38:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4B5AF60FA0 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id C9A876B006C; Tue, 17 Aug 2021 20:38:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4B096B0072; Tue, 17 Aug 2021 20:38:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B398F6B0073; Tue, 17 Aug 2021 20:38:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0239.hostedemail.com [216.40.44.239]) by kanga.kvack.org (Postfix) with ESMTP id 966376B006C for ; Tue, 17 Aug 2021 20:38:13 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 41F651803032D for ; Wed, 18 Aug 2021 00:38:13 +0000 (UTC) X-FDA: 78486339666.20.055786C Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by imf26.hostedemail.com (Postfix) with ESMTP id F40692002827 for ; Wed, 18 Aug 2021 00:38:12 +0000 (UTC) Received: by mail-lf1-f48.google.com with SMTP id g13so760904lfj.12 for ; Tue, 17 Aug 2021 17:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zDk0fcihHrwq9BHr/kHKMRiJXnJvIkUdaH/I/cQ2cxY=; b=WasWLNYLVAdB5feAN1KC+uWbsZHxGSVD/XqOFLeV2ITUaHHPOOK6gBFkQ2FEUQ3bSp lyJXBb51UF1RgBTBgGMPQJqCRcWHshr3b1AkeKHGmFit+QQGG5wYkQ+Qo28vCDMdpmPI s77FCv1PBmoL5LjmttC+eIlY6/tVc701FBqjNUQ8mXuEMAng8CenLmCqFIIn8mFia4u8 CbZLsHTW6GwQ5DJTafDdWzWtnhGIfm8ABgJEiY2TQYyOSI/ExSMaw+7132wh1krztyZ6 jW/SwIXPQJ7EQcy7/LJKpa5OYrt1YRilc6esJi52OI/uG5vIfs0i7O0OZEzYg0zitSRq KN0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zDk0fcihHrwq9BHr/kHKMRiJXnJvIkUdaH/I/cQ2cxY=; b=Fi43N8P+Lht4a2lZM5YqavxFmTSq+1KoL0gtbk2MYjGyT7Jjd1YezFDrWpbvKJiCo3 gdtNZbc2qSEqEZz86ITUrj4+VCL4iLHSkDCnc5hWQ7Gm+zLXBqhByZN7z4S+eWwJVQsi ZAuiJq9P5e5ITrJo2IdBWvbx1fmCTpepSdPfMONQ0ZAg8O08lGtmzpKNzm31MTaIrouv ye7XXNa3rdKbQYmmrAOG5sWtMjsUnsFWzOACp7SPiFgQer5Z0BDXdlIXuW5A+zkr3X6M /sIvOEd3b/zLzP1PXA2J1uaK7ReLHKdryQ2yPA14Ux0n71/lDJQomvDe+tcH1es08prH /PRA== X-Gm-Message-State: AOAM533abe4QeJ25Vv+vSLVEjrx4BZK219t8EA64Rep6TxAV/TetEPWq GnQGKZTPItqc8uhach5Tp9QXp2167t+vHNc3g89bcQ== X-Google-Smtp-Source: ABdhPJxYsSePp917DVnXQmF0HoZwO7Bueg00Fip9aY4ObHpq69LXxYx4fTYYcPQoaop3POvNn0/wgu4PfEdql86pocQ= X-Received: by 2002:ac2:5f10:: with SMTP id 16mr4181472lfq.368.1629247090923; Tue, 17 Aug 2021 17:38:10 -0700 (PDT) MIME-Version: 1.0 References: <202108180658.IgbgwsPI-lkp@intel.com> In-Reply-To: From: Nick Desaulniers Date: Tue, 17 Aug 2021 17:37:59 -0700 Message-ID: Subject: Re: [linux-next:master 7954/8516] include/linux/trace_events.h:695:81: warning: unused parameter 'bpf_cookie' To: Andrii Nakryiko Cc: kernel test robot , Andrii Nakryiko , clang-built-linux , kbuild-all@lists.01.org, Linux Memory Management List , Daniel Borkmann Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20161025 header.b=WasWLNYL; spf=pass (imf26.hostedemail.com: domain of ndesaulniers@google.com designates 209.85.167.48 as permitted sender) smtp.mailfrom=ndesaulniers@google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: F40692002827 X-Stat-Signature: sektzgs5xeypswf9worqf6fxqheckcct X-HE-Tag: 1629247092-99145 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Aug 17, 2021 at 5:25 PM Andrii Nakryiko wrote: > > On Tue, Aug 17, 2021 at 3:36 PM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 9803fb968c8c2e1283f67b3baeb88e0adba435b4 > > commit: 82e6b1eee6a8875ef4eacfd60711cce6965c6b04 [7954/8516] bpf: Allow to specify user-provided bpf_cookie for BPF perf links > > config: i386-randconfig-r021-20210816 (attached as .config) > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6) > > reproduce (this is a W=1 build): ^ W=1 build > > vim +/bpf_cookie +695 include/linux/trace_events.h > > > > 693 > > 694 static inline int > > > 695 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) > > This is expected for such stub implementations. Is there any way to > silence this or make the compiler happy about that? Leaving the name off unused parameters: https://godbolt.org/z/eaaen8ToP > > > 696 { > > 697 return -EOPNOTSUPP; > > 698 } > > 699 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAEf4BzaLJqYxRWZJbVMr%2Boa%2B_7Y7mgfxtUg3KuvbqMo%3DfT4-7Q%40mail.gmail.com. -- Thanks, ~Nick Desaulniers From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4985996910647600419==" MIME-Version: 1.0 From: Nick Desaulniers To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 7954/8516] include/linux/trace_events.h:695:81: warning: unused parameter 'bpf_cookie' Date: Tue, 17 Aug 2021 17:37:59 -0700 Message-ID: In-Reply-To: List-Id: --===============4985996910647600419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Aug 17, 2021 at 5:25 PM Andrii Nakryiko wrote: > > On Tue, Aug 17, 2021 at 3:36 PM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git master > > head: 9803fb968c8c2e1283f67b3baeb88e0adba435b4 > > commit: 82e6b1eee6a8875ef4eacfd60711cce6965c6b04 [7954/8516] bpf: Allow= to specify user-provided bpf_cookie for BPF perf links > > config: i386-randconfig-r021-20210816 (attached as .config) > > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c= 6448cdc2f68f8c28fd0bd9404182b81306e6e6) > > reproduce (this is a W=3D1 build): ^ W=3D1 build > > vim +/bpf_cookie +695 include/linux/trace_events.h > > > > 693 > > 694 static inline int > > > 695 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf= _prog *prog, u64 bpf_cookie) > > This is expected for such stub implementations. Is there any way to > silence this or make the compiler happy about that? Leaving the name off unused parameters: https://godbolt.org/z/eaaen8ToP > > > 696 { > > 697 return -EOPNOTSUPP; > > 698 } > > 699 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org > > -- > You received this message because you are subscribed to the Google Groups= "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to clang-built-linux+unsubscribe(a)googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgi= d/clang-built-linux/CAEf4BzaLJqYxRWZJbVMr%2Boa%2B_7Y7mgfxtUg3KuvbqMo%3DfT4-= 7Q%40mail.gmail.com. -- = Thanks, ~Nick Desaulniers --===============4985996910647600419==--