All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:incoming-android15-6.6-desktop-chromeos 498/498] drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:310:10: warning: returning 'int' from a function with return type 'struct mtk_apu_hw_logger *' makes pointer from integer without a cast
@ 2025-03-28  0:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-28  0:56 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

Hi Karl,

First bad commit (maybe != root cause):

tree:   https://android.googlesource.com/kernel/common incoming-android15-6.6-desktop-chromeos
head:   971c23c737d79895eb40ddbbed5817f6ee6ea162
commit: 6861d60ceacc0798de74530b42a39ef0c801434e [498/498] CHROMIUM: remoteproc: mediatek: Enable APU rproc building
config: arm-randconfig-004-20250328 (https://download.01.org/0day-ci/archive/20250328/202503280822.VoMCynL1-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250328/202503280822.VoMCynL1-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503280822.VoMCynL1-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/remoteproc/mediatek_apusys/mtk_apu_config.c: In function 'mtk_apu_config_setup':
>> drivers/remoteproc/mediatek_apusys/mtk_apu_config.c:120:19: warning: assignment to 'uint64_t' {aka 'long long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
     mdla_rv_mem->buf = mdla_buf;
                      ^
--
   In file included from drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:11:
   drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c: In function 'ioread32_atf':
   drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:132:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       dev_err(dev, "Not support addr: 0x%llx", (unsigned long long)addr[i]);
                                                ^
   include/linux/dev_printk.h:110:23: note: in definition of macro 'dev_printk_index_wrap'
      _p_func(dev, fmt, ##__VA_ARGS__);   \
                          ^~~~~~~~~~~
   drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:132:4: note: in expansion of macro 'dev_err'
       dev_err(dev, "Not support addr: 0x%llx", (unsigned long long)addr[i]);
       ^~~~~~~
   drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c: In function 'get_mtk_apu_hw_logger_device':
>> drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:310:10: warning: returning 'int' from a function with return type 'struct mtk_apu_hw_logger *' makes pointer from integer without a cast [-Wint-conversion]
      return -EPROBE_DEFER;
             ^
   drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:313:10: warning: returning 'int' from a function with return type 'struct mtk_apu_hw_logger *' makes pointer from integer without a cast [-Wint-conversion]
      return -EINVAL;
             ^


vim +310 drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c

1516d6dc338235 Karl Li 2025-01-02  295  
1516d6dc338235 Karl Li 2025-01-02  296  static struct platform_driver hw_logger_driver;
1516d6dc338235 Karl Li 2025-01-02  297  struct mtk_apu_hw_logger *get_mtk_apu_hw_logger_device(struct device_node *hw_logger_np)
1516d6dc338235 Karl Li 2025-01-02  298  {
1516d6dc338235 Karl Li 2025-01-02  299  	struct platform_device *pdev;
1516d6dc338235 Karl Li 2025-01-02  300  	struct device *dev;
1516d6dc338235 Karl Li 2025-01-02  301  	struct mtk_apu_hw_logger *hw_logger_data;
1516d6dc338235 Karl Li 2025-01-02  302  
1516d6dc338235 Karl Li 2025-01-02  303  	pdev = of_find_device_by_node(hw_logger_np);
1516d6dc338235 Karl Li 2025-01-02  304  	if (!pdev)
1516d6dc338235 Karl Li 2025-01-02  305  		return ERR_PTR(-ENODEV);
1516d6dc338235 Karl Li 2025-01-02  306  
1516d6dc338235 Karl Li 2025-01-02  307  	dev = &pdev->dev;
1516d6dc338235 Karl Li 2025-01-02  308  
1516d6dc338235 Karl Li 2025-01-02  309  	if (!dev->driver)
1516d6dc338235 Karl Li 2025-01-02 @310  		return -EPROBE_DEFER;
1516d6dc338235 Karl Li 2025-01-02  311  
1516d6dc338235 Karl Li 2025-01-02  312  	if (dev->driver != &hw_logger_driver.driver)
1516d6dc338235 Karl Li 2025-01-02  313  		return -EINVAL;
1516d6dc338235 Karl Li 2025-01-02  314  
1516d6dc338235 Karl Li 2025-01-02  315  	hw_logger_data = dev_get_drvdata(dev);
1516d6dc338235 Karl Li 2025-01-02  316  	put_device(dev);
1516d6dc338235 Karl Li 2025-01-02  317  
1516d6dc338235 Karl Li 2025-01-02  318  	return hw_logger_data;
1516d6dc338235 Karl Li 2025-01-02  319  }
1516d6dc338235 Karl Li 2025-01-02  320  

:::::: The code at line 310 was first introduced by commit
:::::: 1516d6dc33823500488342fce50de7ad8c838abf CHROMIUM: remoteproc: mediatek: Add APU hw_logger

:::::: TO: Karl Li <karl.li@mediatek.corp-partner.google.com>
:::::: CC: Hubert Mazur <hmazur@google.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-28  0:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28  0:56 [android-common:incoming-android15-6.6-desktop-chromeos 498/498] drivers/remoteproc/mediatek_apusys/mtk_apu_hw_logger.c:310:10: warning: returning 'int' from a function with return type 'struct mtk_apu_hw_logger *' makes pointer from integer without a cast kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.