lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 6 Dec 2022 09:57:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Song Liu <songliubraving@...com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Alexei Starovoitov <ast@...nel.org>
Subject: tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:16:14:
 warning: no previous prototype for 'bpf_testmod_loop_test'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bce9332220bd677d83b19d21502776ad555a0e73
commit: 025bd7c753aab18cd594924a46ab46ac47209df9 selftests/bpf: Add test for bpf_get_branch_snapshot
date:   1 year, 3 months ago
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=025bd7c753aab18cd594924a46ab46ac47209df9
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 025bd7c753aab18cd594924a46ab46ac47209df9
        make O=/tmp/kselftest headers
        make O=/tmp/kselftest -C tools/testing/selftests

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:16:14: warning: no previous prototype for 'bpf_testmod_loop_test' [-Wmissing-prototypes]
      16 | noinline int bpf_testmod_loop_test(int n)
         |              ^~~~~~~~~~~~~~~~~~~~~
   tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:29:1: warning: no previous prototype for 'bpf_testmod_test_read' [-Wmissing-prototypes]
      29 | bpf_testmod_test_read(struct file *file, struct kobject *kobj,
         | ^~~~~~~~~~~~~~~~~~~~~
   tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:51:1: warning: no previous prototype for 'bpf_testmod_test_write' [-Wmissing-prototypes]
      51 | bpf_testmod_test_write(struct file *file, struct kobject *kobj,
         | ^~~~~~~~~~~~~~~~~~~~~~


vim +/bpf_testmod_loop_test +16 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c

    15	
  > 16	noinline int bpf_testmod_loop_test(int n)
    17	{
    18		int i, sum = 0;
    19	
    20		/* the primary goal of this test is to test LBR. Create a lot of
    21		 * branches in the function, so we can catch it easily.
    22		 */
    23		for (i = 0; i < n; i++)
    24			sum += i;
    25		return sum;
    26	}
    27	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (144178 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ