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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201510051903.B0uZLhVF%fengguang.wu@intel.com>
Date:	Mon, 5 Oct 2015 19:50:55 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Benjamin Gaignard <benjamin.gaignard@...aro.org>
Cc:	kbuild-all@...org, linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
	daniel.vetter@...ll.ch, robdclark@...il.com, treding@...dia.com,
	sumit.semwal@...aro.org, tom.cooksey@....com,
	daniel.stone@...labora.com, linux-security-module@...r.kernel.org,
	xiaoquan.li@...antecorp.com, tom.gall@...aro.org,
	linaro-mm-sig@...ts.linaro.org,
	Benjamin Gaignard <benjamin.gaignard@...aro.org>
Subject: Re: [PATCH v4 2/2] SMAF: add CMA allocator

Hi Benjamin,

[auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: sparc-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc 

All warnings (new ones prefixed by >>):

   drivers/smaf/smaf-cma.c: In function 'smaf_kmap_atomic':
>> drivers/smaf/smaf-cma.c:118:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     return (void *)info->paddr + offset;
            ^

vim +118 drivers/smaf/smaf-cma.c

   102				     info->size, &attrs);
   103	
   104		return ret;
   105	}
   106	
   107	static void *smaf_cma_vmap(struct dma_buf *dmabuf)
   108	{
   109		struct smaf_cma_buffer_info *info = dmabuf->priv;
   110	
   111		return info->vaddr;
   112	}
   113	
   114	static void *smaf_kmap_atomic(struct dma_buf *dmabuf, unsigned long offset)
   115	{
   116		struct smaf_cma_buffer_info *info = dmabuf->priv;
   117	
 > 118		return (void *)info->paddr + offset;
   119	}
   120	
   121	static struct dma_buf_ops smaf_cma_ops = {
   122		.map_dma_buf = smaf_cma_map,
   123		.unmap_dma_buf = smaf_cma_unmap,
   124		.mmap = smaf_cma_mmap,
   125		.release = smaf_cma_release,
   126		.kmap_atomic = smaf_kmap_atomic,

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (43420 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ