All of lore.kernel.org
 help / color / mirror / Atom feed
* samples/rpmsg/rpmsg_client_sample.c:66:4: warning: format specifies type 'long' but the argument has type 'ssize_t' (aka 'int')
@ 2026-05-07 19:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-07 19:23 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Tanmay-Shah/rpmsg-virtio_rpmsg_bus-allow-different-size-of-tx-and-rx-bufs/20260507-142615, commit: 3e451c450d540c8d733336d136eed8f559eb9038"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
TO: Tanmay Shah <tanmay.shah@amd.com>
CC: 0day robot <lkp@intel.com>

tree:   https://github.com/intel-lab-lkp/linux/commits/Tanmay-Shah/rpmsg-virtio_rpmsg_bus-allow-different-size-of-tx-and-rx-bufs/20260507-142615
head:   2496f9ad32bd2e27c5c7006f3c2c5e7f170db4d5
commit: 3e451c450d540c8d733336d136eed8f559eb9038 samples: rpmsg: add mtu size info
date:   10 hours ago
:::::: branch date: 9 hours ago
:::::: commit date: 10 hours ago
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260508/202605080314.3ReAbbdv-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605080314.3ReAbbdv-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/r/202605080314.3ReAbbdv-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> samples/rpmsg/rpmsg_client_sample.c:66:4: warning: format specifies type 'long' but the argument has type 'ssize_t' (aka 'int') [-Wformat]
      65 |         dev_info(&rpdev->dev, "rpmsg mtu size = %ld\n",
         |                                                 ~~~
         |                                                 %zd
      66 |                  rpmsg_get_mtu(rpdev->ept));
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:160:67: note: expanded from macro 'dev_info'
     160 |         dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                  ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ~~~    ^~~~~~~~~~~
   1 warning generated.


vim +66 samples/rpmsg/rpmsg_client_sample.c

779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  50  
92e1de51bf2cb8d Bjorn Andersson 2016-09-01  51  static int rpmsg_sample_probe(struct rpmsg_device *rpdev)
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  52  {
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  53  	int ret;
a138c883193a66c Anna, Suman     2016-08-12  54  	struct instance_data *idata;
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  55  
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  56  	dev_info(&rpdev->dev, "new channel: 0x%x -> 0x%x!\n",
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  57  					rpdev->src, rpdev->dst);
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  58  
a138c883193a66c Anna, Suman     2016-08-12  59  	idata = devm_kzalloc(&rpdev->dev, sizeof(*idata), GFP_KERNEL);
a138c883193a66c Anna, Suman     2016-08-12  60  	if (!idata)
a138c883193a66c Anna, Suman     2016-08-12  61  		return -ENOMEM;
a138c883193a66c Anna, Suman     2016-08-12  62  
a138c883193a66c Anna, Suman     2016-08-12  63  	dev_set_drvdata(&rpdev->dev, idata);
a138c883193a66c Anna, Suman     2016-08-12  64  
3e451c450d540c8 Tanmay Shah     2026-04-29  65  	dev_info(&rpdev->dev, "rpmsg mtu size = %ld\n",
3e451c450d540c8 Tanmay Shah     2026-04-29 @66  		 rpmsg_get_mtu(rpdev->ept));
3e451c450d540c8 Tanmay Shah     2026-04-29  67  
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  68  	/* send a message to our remote processor */
2a48d7322dc88f1 Bjorn Andersson 2016-09-01  69  	ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG));
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  70  	if (ret) {
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  71  		dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret);
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  72  		return ret;
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  73  	}
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  74  
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  75  	return 0;
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  76  }
779b96d20ca97cf Ohad Ben-Cohen  2011-10-20  77  

-- 
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:[~2026-05-07 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 19:23 samples/rpmsg/rpmsg_client_sample.c:66:4: warning: format specifies type 'long' but the argument has type 'ssize_t' (aka 'int') 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.