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:   Sat, 22 Oct 2022 09:34:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Oded Gabbay <ogabbay@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [ogabbay:accel 7/9] drivers/gpu/drm/drm_file.c:470:5: warning: no
 previous prototype for function 'accel_open'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git accel
head:   ab741984de51f780334f1c4ce2ee98ef81a8a28f
commit: 39e251c7f78ef9d4a4d3d92db1896a68dc3b3e9e [7/9] handle drm_open
config: arm-randconfig-r004-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/?id=39e251c7f78ef9d4a4d3d92db1896a68dc3b3e9e
        git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
        git fetch --no-tags ogabbay accel
        git checkout 39e251c7f78ef9d4a4d3d92db1896a68dc3b3e9e
        # 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=arm SHELL=/bin/bash drivers/gpu/drm/

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/gpu/drm/drm_file.c:470:5: warning: no previous prototype for function 'accel_open' [-Wmissing-prototypes]
   int accel_open(struct inode *inode, struct file *filp)
       ^
   drivers/gpu/drm/drm_file.c:470:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int accel_open(struct inode *inode, struct file *filp)
   ^
   static 
   1 warning generated.


vim +/accel_open +470 drivers/gpu/drm/drm_file.c

   456	
   457	/**
   458	 * accel_open - open method for ACCEL file
   459	 * @inode: device inode
   460	 * @filp: file pointer.
   461	 *
   462	 * This function must be used by drivers as their &file_operations.open method.
   463	 * It looks up the correct ACCEL device and instantiates all the per-file
   464	 * resources for it. It also calls the &drm_driver.open driver callback.
   465	 *
   466	 * RETURNS:
   467	 *
   468	 * 0 on success or negative errno value on failure.
   469	 */
 > 470	int accel_open(struct inode *inode, struct file *filp)
   471	{
   472		struct drm_minor *minor;
   473	
   474		minor = drm_minor_acquire(iminor(inode), true);
   475		if (IS_ERR(minor))
   476			return PTR_ERR(minor);
   477	
   478		return __drm_open(inode, filp, minor);
   479	}
   480	EXPORT_SYMBOL(accel_open);
   481	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ