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 C4003EE3F00 for ; Mon, 11 Sep 2023 20:50:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236911AbjIKUuJ (ORCPT ); Mon, 11 Sep 2023 16:50:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244358AbjIKUKq (ORCPT ); Mon, 11 Sep 2023 16:10:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2851185 for ; Mon, 11 Sep 2023 13:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694463041; x=1725999041; h=date:from:to:cc:subject:message-id:mime-version; bh=0xWLHe7NkDlXoKQHWTZn+No1mBECYYmu9UVDtprxQS8=; b=U0fw7ksXEedxeKx4nKgRJgagQbYK1KbEdxbNt/oGyR4vkTcXO78uOsdh uzeOyBuQ00rWjePYiXuGo2S0rUoE4zKQXLEAu48/5p+VZKPkCSPEFiRkj bVJWd8by9Nwr/xka5/8cvJMf+uPiENpA6zXpRXTnMAp9RsOkfmazsVTAd 7KfLsGjsSvpR8VOsiezqpo3sk0K3ATroNGZkadvK6/9aYrL5IYYsFKtSg iMrV7UUxXKwzU5L1M4jHajkBGizS/+C41Rx6EwQDV5BO96g2hBc/+qwgy SnAFGkQGPP2iTOb/FYH1QH9h/bRVaMv4F/lIPjXXlTXvLRKT1ELMGDLco g==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="409152621" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="409152621" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 13:10:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="746579510" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="746579510" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 11 Sep 2023 13:10:39 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qfnEz-0006gq-0z; Mon, 11 Sep 2023 20:10:37 +0000 Date: Tue, 12 Sep 2023 04:09:44 +0800 From: kernel test robot To: Viktor Malik Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alexei Starovoitov Subject: net/bpf/test_run.c:563:14: warning: no previous declaration for 'bpf_fentry_shadow_test' Message-ID: <202309120423.DpcjZ6lB-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d commit: aa3d65de4b9004d799f97700751a86d3ebd7d5f9 bpf/selftests: Test fentry attachment to shadowed functions date: 6 months ago config: x86_64-randconfig-002-20230910 (https://download.01.org/0day-ci/archive/20230912/202309120423.DpcjZ6lB-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230912/202309120423.DpcjZ6lB-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309120423.DpcjZ6lB-lkp@intel.com/ All warnings (new ones prefixed by >>): net/bpf/test_run.c:489:17: warning: no previous declaration for 'bpf_fentry_test1' [-Wmissing-declarations] __bpf_kfunc int bpf_fentry_test1(int a) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:495:14: warning: no previous declaration for 'bpf_fentry_test2' [-Wmissing-declarations] int noinline bpf_fentry_test2(int a, u64 b) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:500:14: warning: no previous declaration for 'bpf_fentry_test3' [-Wmissing-declarations] int noinline bpf_fentry_test3(char a, int b, u64 c) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:505:14: warning: no previous declaration for 'bpf_fentry_test4' [-Wmissing-declarations] int noinline bpf_fentry_test4(void *a, char b, int c, u64 d) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:510:14: warning: no previous declaration for 'bpf_fentry_test5' [-Wmissing-declarations] int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:515:14: warning: no previous declaration for 'bpf_fentry_test6' [-Wmissing-declarations] int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:524:14: warning: no previous declaration for 'bpf_fentry_test7' [-Wmissing-declarations] int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:529:14: warning: no previous declaration for 'bpf_fentry_test8' [-Wmissing-declarations] int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg) ^~~~~~~~~~~~~~~~ net/bpf/test_run.c:534:17: warning: no previous declaration for 'bpf_modify_return_test' [-Wmissing-declarations] __bpf_kfunc int bpf_modify_return_test(int a, int *b) ^~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:540:17: warning: no previous declaration for 'bpf_kfunc_call_test1' [-Wmissing-declarations] __bpf_kfunc u64 bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d) ^~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:545:17: warning: no previous declaration for 'bpf_kfunc_call_test2' [-Wmissing-declarations] __bpf_kfunc int bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b) ^~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:550:26: warning: no previous declaration for 'bpf_kfunc_call_test3' [-Wmissing-declarations] __bpf_kfunc struct sock *bpf_kfunc_call_test3(struct sock *sk) ^~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:555:15: warning: no previous declaration for 'bpf_kfunc_call_test4' [-Wmissing-declarations] long noinline bpf_kfunc_call_test4(signed char a, short b, int c, long d) ^~~~~~~~~~~~~~~~~~~~ >> net/bpf/test_run.c:563:14: warning: no previous declaration for 'bpf_fentry_shadow_test' [-Wmissing-declarations] int noinline bpf_fentry_shadow_test(int a) ^~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:593:1: warning: no previous declaration for 'bpf_kfunc_call_test_acquire' [-Wmissing-declarations] bpf_kfunc_call_test_acquire(unsigned long *scalar_ptr) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:600:1: warning: no previous declaration for 'bpf_kfunc_call_memb_acquire' [-Wmissing-declarations] bpf_kfunc_call_memb_acquire(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:606:18: warning: no previous declaration for 'bpf_kfunc_call_test_release' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_release(struct prog_test_ref_kfunc *p) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:614:18: warning: no previous declaration for 'bpf_kfunc_call_memb_release' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_memb_release(struct prog_test_member *p) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:618:18: warning: no previous declaration for 'bpf_kfunc_call_memb1_release' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_memb1_release(struct prog_test_member1 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:631:18: warning: no previous declaration for 'bpf_kfunc_call_test_get_rdwr_mem' [-Wmissing-declarations] __bpf_kfunc int *bpf_kfunc_call_test_get_rdwr_mem(struct prog_test_ref_kfunc *p, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:637:18: warning: no previous declaration for 'bpf_kfunc_call_test_get_rdonly_mem' [-Wmissing-declarations] __bpf_kfunc int *bpf_kfunc_call_test_get_rdonly_mem(struct prog_test_ref_kfunc *p, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:648:18: warning: no previous declaration for 'bpf_kfunc_call_test_acq_rdonly_mem' [-Wmissing-declarations] __bpf_kfunc int *bpf_kfunc_call_test_acq_rdonly_mem(struct prog_test_ref_kfunc *p, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:654:18: warning: no previous declaration for 'bpf_kfunc_call_int_mem_release' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_int_mem_release(int *p) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:659:1: warning: no previous declaration for 'bpf_kfunc_call_test_kptr_get' [-Wmissing-declarations] bpf_kfunc_call_test_kptr_get(struct prog_test_ref_kfunc **pp, int a, int b) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:707:18: warning: no previous declaration for 'bpf_kfunc_call_test_pass_ctx' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_pass_ctx(struct __sk_buff *skb) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:711:18: warning: no previous declaration for 'bpf_kfunc_call_test_pass1' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_pass1(struct prog_test_pass1 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:715:18: warning: no previous declaration for 'bpf_kfunc_call_test_pass2' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_pass2(struct prog_test_pass2 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:719:18: warning: no previous declaration for 'bpf_kfunc_call_test_fail1' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_fail1(struct prog_test_fail1 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:723:18: warning: no previous declaration for 'bpf_kfunc_call_test_fail2' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_fail2(struct prog_test_fail2 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:727:18: warning: no previous declaration for 'bpf_kfunc_call_test_fail3' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_fail3(struct prog_test_fail3 *p) ^~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:731:18: warning: no previous declaration for 'bpf_kfunc_call_test_mem_len_pass1' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_mem_len_pass1(void *mem, int mem__sz) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:735:18: warning: no previous declaration for 'bpf_kfunc_call_test_mem_len_fail1' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_mem_len_fail1(void *mem, int len) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:739:18: warning: no previous declaration for 'bpf_kfunc_call_test_mem_len_fail2' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_mem_len_fail2(u64 *mem, int len) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:743:18: warning: no previous declaration for 'bpf_kfunc_call_test_ref' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_ref(struct prog_test_ref_kfunc *p) ^~~~~~~~~~~~~~~~~~~~~~~ net/bpf/test_run.c:748:18: warning: no previous declaration for 'bpf_kfunc_call_test_destructive' [-Wmissing-declarations] __bpf_kfunc void bpf_kfunc_call_test_destructive(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/bpf_fentry_shadow_test +563 net/bpf/test_run.c 544 > 545 __bpf_kfunc int bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b) 546 { 547 return a + b; 548 } 549 550 __bpf_kfunc struct sock *bpf_kfunc_call_test3(struct sock *sk) 551 { 552 return sk; 553 } 554 555 long noinline bpf_kfunc_call_test4(signed char a, short b, int c, long d) 556 { 557 /* Provoke the compiler to assume that the caller has sign-extended a, 558 * b and c on platforms where this is required (e.g. s390x). 559 */ 560 return (long)a + (long)b + (long)c + d; 561 } 562 > 563 int noinline bpf_fentry_shadow_test(int a) 564 { 565 return a + 1; 566 } 567 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki