Hi Shivasharan, [auto build test WARNING on scsi/for-next] [cannot apply to v4.10-rc7] [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/Shivasharan-S/megaraid_sas-Updates-for-scsi-next/20170206-181304 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next config: i386-randconfig-x007-201706 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/scsi/megaraid/megaraid_sas_fusion.c: In function 'megasas_make_prp_nvme': >> drivers/scsi/megaraid/megaraid_sas_fusion.c:1642:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] ptr_sgl_phys = (u64 *)cmd->sg_frame_phys_addr; ^ vim +1642 drivers/scsi/megaraid/megaraid_sas_fusion.c 1626 return false; 1627 1628 /* 1629 * Nvme has a very convoluted prp format. One prp is required 1630 * for each page or partial page. Driver need to split up OS sg_list 1631 * entries if it is longer than one page or cross a page 1632 * boundary. Driver also have to insert a PRP list pointer entry as 1633 * the last entry in each physical page of the PRP list. 1634 * 1635 * NOTE: The first PRP "entry" is actually placed in the first 1636 * SGL entry in the main message as IEEE 64 format. The 2nd 1637 * entry in the main message is the chain element, and the rest 1638 * of the PRP entries are built in the contiguous pcie buffer. 1639 */ 1640 page_mask = mr_nvme_pg_size - 1; 1641 ptr_sgl = (u64 *)cmd->sg_frame; > 1642 ptr_sgl_phys = (u64 *)cmd->sg_frame_phys_addr; 1643 memset(ptr_sgl, 0, instance->max_chain_frame_sz); 1644 1645 /* Build chain frame element which holds all prps except first*/ 1646 main_chain_element = (struct MPI25_IEEE_SGE_CHAIN64 *) 1647 ((u8 *)sgl_ptr + sizeof(struct MPI25_IEEE_SGE_CHAIN64)); 1648 1649 main_chain_element->Address = cpu_to_le64((uintptr_t)ptr_sgl_phys); 1650 main_chain_element->NextChainOffset = 0; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation