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]
Message-ID: <202111270054.cbnfZNTH-lkp@intel.com>
Date:   Sat, 27 Nov 2021 00:29:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Benjamin Tissoires <benjamin.tissoires@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Tero Kristo <tero.kristo@...ux.intel.com>
Subject: [t-kristo-pm:usi-5.16-rfc-v2-bpf 5/30] drivers/hid/hid-bpf.c:94:5:
 warning: no previous prototype for 'hid_bpf_prog_detach'

tree:   https://github.com/t-kristo/linux-pm usi-5.16-rfc-v2-bpf
head:   241207b4769fca049dfcc4dbde0bda92e4f67027
commit: 1995666cad0e362400a48617c5486a2a04f4d158 [5/30] HID: initial BPF implementation
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20211127/202111270054.cbnfZNTH-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/t-kristo/linux-pm/commit/1995666cad0e362400a48617c5486a2a04f4d158
        git remote add t-kristo-pm https://github.com/t-kristo/linux-pm
        git fetch --no-tags t-kristo-pm usi-5.16-rfc-v2-bpf
        git checkout 1995666cad0e362400a48617c5486a2a04f4d158
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash drivers/hid/

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

All warnings (new ones prefixed by >>):

>> drivers/hid/hid-bpf.c:94:5: warning: no previous prototype for 'hid_bpf_prog_detach' [-Wmissing-prototypes]
      94 | int hid_bpf_prog_detach(struct hid_device *hdev, struct bpf_prog *prog)
         |     ^~~~~~~~~~~~~~~~~~~


vim +/hid_bpf_prog_detach +94 drivers/hid/hid-bpf.c

    93	
  > 94	int hid_bpf_prog_detach(struct hid_device *hdev, struct bpf_prog *prog)
    95	{
    96		switch(prog->expected_attach_type) {
    97		case BPF_HID_RAW_EVENT:
    98			return __hid_bpf_prog_detach(hdev, &hdev->bpf.event_progs, prog);
    99		default:
   100			return -EINVAL;
   101		}
   102	
   103		return -EINVAL;
   104	}
   105	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ