Hi Jyothi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on andi-shyti/i2c/i2c-host linus/master v6.17-rc4 
next-20250905]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Jyothi-Kumar-Seerapu/dmaengine-qcom-gpi-Add-GPI-Block-event-interrupt-support/20250903-153745
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link:    
https://lore.kernel.org/r/20250903073059.2151837-3-quic_jseerapu%40quicinc.com
patch subject: [PATCH v7 2/2] i2c: i2c-qcom-geni: Add Block event interrupt 
support
config: i386-allmodconfig 
(https://download.01.org/0day-ci/archive/20250906/202509062008.lsodhd4u-...@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250906/202509062008.lsodhd4u-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202509062008.lsodhd4u-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/i2c/busses/i2c-qcom-geni.c: In function 
'geni_i2c_gpi_multi_desc_unmap':
>> drivers/i2c/busses/i2c-qcom-geni.c:576:42: warning: cast from pointer to 
>> integer of different size [-Wpointer-to-int-cast]
     576 |                                    NULL, (dma_addr_t)NULL);
         |                                          ^


vim +576 drivers/i2c/busses/i2c-qcom-geni.c

   555  
   556  /**
   557   * geni_i2c_gpi_multi_desc_unmap() - Unmaps DMA buffers post multi 
message TX transfers
   558   * @gi2c: I2C dev handle
   559   * @msgs: Array of I2C  messages
   560   * @peripheral: Pointer to gpi_i2c_config
   561   */
   562  static void geni_i2c_gpi_multi_desc_unmap(struct geni_i2c_dev *gi2c, 
struct i2c_msg msgs[],
   563                                            struct gpi_i2c_config 
*peripheral)
   564  {
   565          u32 msg_xfer_cnt, wr_idx = 0;
   566          struct geni_i2c_gpi_multi_desc_xfer *tx_multi_xfer = 
&gi2c->i2c_multi_desc_config;
   567  
   568          msg_xfer_cnt = gi2c->err ? tx_multi_xfer->msg_idx_cnt : 
tx_multi_xfer->irq_cnt;
   569  
   570          /* Unmap the processed DMA buffers based on the received 
interrupt count */
   571          for (; tx_multi_xfer->unmap_msg_cnt < msg_xfer_cnt; 
tx_multi_xfer->unmap_msg_cnt++) {
   572                  wr_idx = tx_multi_xfer->unmap_msg_cnt;
   573                  geni_i2c_gpi_unmap(gi2c, &msgs[wr_idx],
   574                                     tx_multi_xfer->dma_buf[wr_idx],
   575                                     tx_multi_xfer->dma_addr[wr_idx],
 > 576                                     NULL, (dma_addr_t)NULL);
   577  
   578                  if (tx_multi_xfer->unmap_msg_cnt == gi2c->num_msgs - 1) 
{
   579                          kfree(tx_multi_xfer->dma_buf);
   580                          kfree(tx_multi_xfer->dma_addr);
   581                          break;
   582                  }
   583          }
   584  }
   585  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to