Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gyeyoung Baek <gye976@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC 7/9] iio: trigger: Add new API iio_trigger_attach_timestamp()
Date: Tue, 20 May 2025 11:14:52 +0800	[thread overview]
Message-ID: <202505201045.dS4OfoSM-lkp@intel.com> (raw)
In-Reply-To: <20250519-timestamp-v1-7-fcb4f6c2721c@gmail.com>

Hi Gyeyoung,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on 43a9eee06bf8a8535d8709b29379bec8cafcab56]

url:    https://github.com/intel-lab-lkp/linux/commits/Gyeyoung-Baek/iio-buffer-Fix-checkpatch-pl-warning/20250519-222930
base:   43a9eee06bf8a8535d8709b29379bec8cafcab56
patch link:    https://lore.kernel.org/r/20250519-timestamp-v1-7-fcb4f6c2721c%40gmail.com
patch subject: [PATCH RFC 7/9] iio: trigger: Add new API iio_trigger_attach_timestamp()
config: s390-randconfig-001-20250520 (https://download.01.org/0day-ci/archive/20250520/202505201045.dS4OfoSM-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505201045.dS4OfoSM-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/202505201045.dS4OfoSM-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/iio/industrialio-trigger.c:305:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     305 |         int ret;
         |             ^
   1 warning generated.


vim +/ret +305 drivers/iio/industrialio-trigger.c

3138e8998dbd8f Gyeyoung Baek 2025-05-19  299  
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  300  static int iio_poll_func_register(struct iio_poll_func *pf,
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  301  				  struct iio_trigger *trig)
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  302  {
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  303  	irq_handler_t tophalf = NULL;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  304  	irq_handler_t bottomhalf = pf->thread;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19 @305  	int ret;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  306  
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  307  	/*
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  308  	 * The consumer does not need timestamp.
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  309  	 * Just request raw irq handler.
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  310  	 */
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  311  	if (!pf->timestamp_enabled)
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  312  		goto out_request_irq;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  313  
3138e8998dbd8f Gyeyoung Baek 2025-05-19  314  	/*
3138e8998dbd8f Gyeyoung Baek 2025-05-19  315  	 * The trigger supports grabbing timestamp.
3138e8998dbd8f Gyeyoung Baek 2025-05-19  316  	 * Just request raw irq handler.
3138e8998dbd8f Gyeyoung Baek 2025-05-19  317  	 */
3138e8998dbd8f Gyeyoung Baek 2025-05-19  318  	if (trig->early_timestamp) {
3138e8998dbd8f Gyeyoung Baek 2025-05-19  319  		ret = iio_trigger_attach_timestamp(trig, pf);
3138e8998dbd8f Gyeyoung Baek 2025-05-19  320  		pf->timestamp_type = IIO_TIMESTAMP_TYPE_TRIGGER;
3138e8998dbd8f Gyeyoung Baek 2025-05-19  321  		goto out_request_irq;
3138e8998dbd8f Gyeyoung Baek 2025-05-19  322  	}
3138e8998dbd8f Gyeyoung Baek 2025-05-19  323  
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  324  	if (trig->trig_type & IIO_TRIG_TYPE_POLL_NESTED) {
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  325  		bottomhalf = iio_pollfunc_bottom_half_wrapper;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  326  		pf->timestamp_type = IIO_TIMESTAMP_TYPE_CONSUMER_BOTTOM_HALF;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  327  	} else if (trig->trig_type & IIO_TRIG_TYPE_POLL) {
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  328  		tophalf = iio_pollfunc_top_half_wrapper;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  329  		pf->timestamp_type = IIO_TIMESTAMP_TYPE_CONSUMER_TOP_HALF;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  330  	} else {
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  331  		pr_err("Trigger does not set valid trig_type.");
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  332  		return -EINVAL;
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  333  	}
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  334  
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  335  out_request_irq:
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  336  	return request_threaded_irq(pf->irq, tophalf, bottomhalf,
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  337  				    pf->type, pf->name, pf);
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  338  }
b14e7f938a5fa7 Gyeyoung Baek 2025-05-19  339  

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

           reply	other threads:[~2025-05-20  3:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250519-timestamp-v1-7-fcb4f6c2721c@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505201045.dS4OfoSM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gye976@gmail.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox