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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201608011020.ZLgTswM8%fengguang.wu@intel.com>
Date:	Mon, 1 Aug 2016 10:49:30 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Serge Semin <fancer.lancer@...il.com>
Cc:	kbuild-all@...org, jdmason@...zu.us, dave.jiang@...el.com,
	Allen.Hubbe@....com, Xiangliang.Yu@....com,
	Sergey.Semin@...latforms.ru, linux-ntb@...glegroups.com,
	linux-kernel@...r.kernel.org, Serge Semin <fancer.lancer@...il.com>
Subject: Re: [PATCH v2 3/3] ntb: Test client drivers for asynchronous NTB
 devices

Hi Serge,

[auto build test WARNING on ntb/ntb-next]
[cannot apply to v4.7 next-20160729]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Serge-Semin/ntb-Asynchronous-NTB-devices-support/20160728-183315
base:   https://github.com/jonmason/ntb ntb-next
config: i386-randconfig-x011-08010912 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/ntb/test/ntb_mw_test.c: In function 'mw_set_outmw_addr':
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
     dev_err(&ctx->ntb->dev, ## args)
                                ^~~~
>> drivers/ntb/test/ntb_mw_test.c:419:3: note: in expansion of macro 'dev_err_mw'
      dev_err_mw(ctx,
      ^~~~~~~~~~
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
     dev_err(&ctx->ntb->dev, ## args)
                                ^~~~
   drivers/ntb/test/ntb_mw_test.c:429:3: note: in expansion of macro 'dev_err_mw'
      dev_err_mw(ctx, "Failed to set the translated address %p of "
      ^~~~~~~~~~
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
>> include/linux/device.h:1206:41: note: in expansion of macro 'CAST_DMA_PTR'
      dev_printk(KERN_DEBUG, dev, format, ##arg); \
                                            ^~~
   drivers/ntb/test/ntb_mw_test.c:195:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(&ctx->ntb->dev, ## args)
     ^~~~~~~
   drivers/ntb/test/ntb_mw_test.c:438:2: note: in expansion of macro 'dev_dbg_mw'
     dev_dbg_mw(ctx, "Outbound memory window %d is initialized with "
     ^~~~~~~~~~
   drivers/ntb/test/ntb_mw_test.c: In function 'mw_dbgfs_outmw_cfg_read':
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
   drivers/ntb/test/ntb_mw_test.c:774:30: note: in expansion of macro 'CAST_DMA_PTR'
      "DMA address\t\t- 0x%p\n", CAST_DMA_PTR(wrap->dma_addr));
                                 ^~~~~~~~~~~~
   drivers/ntb/test/ntb_mw_test.c:779:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      "Physycal map address\t- 0x%p\n", (void *)wrap->phys_addr);
                                        ^
   drivers/ntb/test/ntb_mw_test.c: In function 'mw_dbgfs_inmw_cfg_read':
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
   drivers/ntb/test/ntb_mw_test.c:923:30: note: in expansion of macro 'CAST_DMA_PTR'
      "DMA address\t\t- 0x%p\n", CAST_DMA_PTR(wrap->dma_addr));
                                 ^~~~~~~~~~~~
   drivers/ntb/test/ntb_mw_test.c: In function 'mw_create_inmws':
   drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((void *)(phys_addr_t)(addr))
      ^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
     dev_err(&ctx->ntb->dev, ## args)
                                ^~~~
   drivers/ntb/test/ntb_mw_test.c:1204:4: note: in expansion of macro 'dev_err_mw'
       dev_err_mw(ctx, "DMA address %p of inbound mw %d isn't "
       ^~~~~~~~~~

vim +/CAST_DMA_PTR +189 drivers/ntb/test/ntb_mw_test.c

   183	}
   184	
   185	/*
   186	 * Wrapper dev_err/dev_warn/dev_info/dev_dbg macros
   187	 */
   188	#define dev_err_mw(ctx, args...) \
 > 189		dev_err(&ctx->ntb->dev, ## args)
   190	#define dev_warn_mw(ctx, args...) \
   191		dev_warn(&ctx->ntb->dev, ## args)
   192	#define dev_info_mw(ctx, args...) \
   193		dev_info(&ctx->ntb->dev, ## args)
   194	#define dev_dbg_mw(ctx, args...) \
   195		dev_dbg(&ctx->ntb->dev, ## args)
   196	
   197	/*
   198	 * Some common constant used in the driver for better readability:
   199	 * @ON: Enable something
   200	 * @OFF: Disable something
   201	 * @SUCCESS: Success of a function execution
   202	 * @MIN_MW_CNT:	Minimum memory windows count
   203	 * @MAX_MW_CNT: Maximum memory windows count
   204	 */
   205	#define ON ((u32)0x1)
   206	#define OFF ((u32)0x0)
   207	#define SUCCESS 0
   208	#define MIN_MW_CNT ((unsigned char)1)
   209	#define MAX_MW_CNT ((unsigned char)255)
   210	
   211	/*
   212	 * Shared data converter to support the different CPU architectures
   213	 */
   214	#define to_sh32(data) \
   215		cpu_to_le32((data))
   216	#define from_sh32(data) \
   217		le32_to_cpu((data))
   218	
   219	/*
   220	 * Cast DMA address to real address pointer
   221	 *
   222	 * NOTE It's used in the printf's to get rid of warnings
   223	 */
   224	#define CAST_DMA_PTR(addr) \
 > 225		((void *)(phys_addr_t)(addr))
   226	
   227	/*
   228	 * Module parameters:

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ