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:   Mon, 21 Feb 2022 21:07:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jessica Zhang <quic_jesszhan@...cinc.com>
Subject: [drm-msm:msm-next-staging 7/60]
 drivers/gpu/drm/msm/msm_io_utils.c:65:31: sparse: sparse: incorrect type in
 return expression (different address spaces)

tree:   https://gitlab.freedesktop.org/drm/msm.git msm-next-staging
head:   bc2112583a0b473f5c4ba87c00da84abd5d0b3fd
commit: d89e5028346bd80f79c3073d132123e7a17e1177 [7/60] drm/msm: move utility functions from msm_drv.c
config: ia64-randconfig-s031-20220221 (https://download.01.org/0day-ci/archive/20220221/202202212126.kJLPeuny-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        git remote add drm-msm https://gitlab.freedesktop.org/drm/msm.git
        git fetch --no-tags drm-msm msm-next-staging
        git checkout d89e5028346bd80f79c3073d132123e7a17e1177
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/drm/msm/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/msm/msm_io_utils.c:65:31: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void [noderef] __iomem * @@     got void * @@
   drivers/gpu/drm/msm/msm_io_utils.c:65:31: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/msm/msm_io_utils.c:65:31: sparse:     got void *
   drivers/gpu/drm/msm/msm_io_utils.c:74:31: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void [noderef] __iomem * @@     got void * @@
   drivers/gpu/drm/msm/msm_io_utils.c:74:31: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/msm/msm_io_utils.c:74:31: sparse:     got void *

vim +65 drivers/gpu/drm/msm/msm_io_utils.c

    49	
    50	static void __iomem *_msm_ioremap(struct platform_device *pdev, const char *name,
    51					  bool quiet, phys_addr_t *psize)
    52	{
    53		struct resource *res;
    54		unsigned long size;
    55		void __iomem *ptr;
    56	
    57		if (name)
    58			res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
    59		else
    60			res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
    61	
    62		if (!res) {
    63			if (!quiet)
    64				DRM_DEV_ERROR(&pdev->dev, "failed to get memory resource: %s\n", name);
  > 65			return ERR_PTR(-EINVAL);
    66		}
    67	
    68		size = resource_size(res);
    69	
    70		ptr = devm_ioremap(&pdev->dev, res->start, size);
    71		if (!ptr) {
    72			if (!quiet)
    73				DRM_DEV_ERROR(&pdev->dev, "failed to ioremap: %s\n", name);
    74			return ERR_PTR(-ENOMEM);
    75		}
    76	
    77		if (psize)
    78			*psize = size;
    79	
    80		return ptr;
    81	}
    82	

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