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: <202209300317.kqZ4yO4b-lkp@intel.com>
Date:   Fri, 30 Sep 2022 03:59:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [driver-core:kobject-const 9/18] drivers/firmware/dmi-id.c:158:48:
 warning: omitting the parameter name in a function definition is a C2x
 extension

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const
head:   bdafbcc6c07cf164a8b73f0dc3fa7b9b46ac5064
commit: f3ce9d6f74313cee192dac6c6273a7cc727d30e3 [9/18] driver core: make struct class.dev_uevent() take a const *
config: i386-randconfig-a004
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=f3ce9d6f74313cee192dac6c6273a7cc727d30e3
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core kobject-const
        git checkout f3ce9d6f74313cee192dac6c6273a7cc727d30e3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/firmware/

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 >>):

>> drivers/firmware/dmi-id.c:158:48: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
   static int dmi_dev_uevent(const struct device *, struct kobj_uevent_env *env)
                                                  ^
   1 warning generated.


vim +158 drivers/firmware/dmi-id.c

   157	
 > 158	static int dmi_dev_uevent(const struct device *, struct kobj_uevent_env *env)
   159	{
   160		ssize_t len;
   161	
   162		if (add_uevent_var(env, "MODALIAS="))
   163			return -ENOMEM;
   164		len = get_modalias(&env->buf[env->buflen - 1],
   165				   sizeof(env->buf) - env->buflen);
   166		if (len >= (sizeof(env->buf) - env->buflen))
   167			return -ENOMEM;
   168		env->buflen += len;
   169		return 0;
   170	}
   171	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ