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: <202210221037.D3wcQJzF-lkp@intel.com>
Date:   Sat, 22 Oct 2022 10:15:13 +0800
From:   kernel test robot <lkp@...el.com>
To:     Oded Gabbay <ogabbay@...nel.org>
Cc:     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 '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: nios2-buildonly-randconfig-r003-20221019
compiler: nios2-linux-gcc (GCC) 12.1.0
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/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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 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 'accel_open' [-Wmissing-prototypes]
     470 | int accel_open(struct inode *inode, struct file *filp)
         |     ^~~~~~~~~~


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" (141887 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ