From: kernel test robot <lkp@intel.com>
To: Suraj Patil <surajpatil522@gmail.com>, jic23@kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
lars@metafoo.de, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org,
Suraj Patil <surajpatil522@gmail.com>
Subject: Re: [PATCH] iio: industrialio-trigger: Fix typos in comments
Date: Thu, 13 Mar 2025 08:51:18 +0800 [thread overview]
Message-ID: <202503130826.WiaC6K1E-lkp@intel.com> (raw)
In-Reply-To: <20250311155927.467523-1-surajpatil522@gmail.com>
Hi Suraj,
kernel test robot noticed the following build errors:
[auto build test ERROR on jic23-iio/togreg]
[also build test ERROR on linus/master v6.14-rc6 next-20250312]
[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/Suraj-Patil/iio-industrialio-trigger-Fix-typos-in-comments/20250312-000420
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
patch link: https://lore.kernel.org/r/20250311155927.467523-1-surajpatil522%40gmail.com
patch subject: [PATCH] iio: industrialio-trigger: Fix typos in comments
config: csky-randconfig-002-20250313 (https://download.01.org/0day-ci/archive/20250313/202503130826.WiaC6K1E-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250313/202503130826.WiaC6K1E-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/202503130826.WiaC6K1E-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iio/industrialio-trigger.c: In function 'iio_reenable_work_fn':
>> drivers/iio/industrialio-trigger.c:165:18: error: 'const struct iio_trigger_ops' has no member named 're'
165 | trig->ops->re-enable(trig);
| ^~
>> drivers/iio/industrialio-trigger.c:165:23: error: implicit declaration of function 'enable'; did you mean 'enable_nmi'? [-Wimplicit-function-declaration]
165 | trig->ops->re-enable(trig);
| ^~~~~~
| enable_nmi
drivers/iio/industrialio-trigger.c: In function 'iio_trigger_notify_done_atomic':
drivers/iio/industrialio-trigger.c:185:22: error: 'const struct iio_trigger_ops' has no member named 're'
185 | trig->ops->re-enable)
| ^~
>> drivers/iio/industrialio-trigger.c:185:27: error: 'enable' undeclared (first use in this function)
185 | trig->ops->re-enable)
| ^~~~~~
drivers/iio/industrialio-trigger.c:185:27: note: each undeclared identifier is reported only once for each function it appears in
drivers/iio/industrialio-trigger.c: In function 'iio_trigger_notify_done':
drivers/iio/industrialio-trigger.c:246:22: error: 'const struct iio_trigger_ops' has no member named 're'
246 | trig->ops->re-enable)
| ^~
drivers/iio/industrialio-trigger.c:246:27: error: 'enable' undeclared (first use in this function)
246 | trig->ops->re-enable)
| ^~~~~~
drivers/iio/industrialio-trigger.c:247:26: error: 'const struct iio_trigger_ops' has no member named 're'
247 | trig->ops->re-enable(trig);
| ^~
vim +165 drivers/iio/industrialio-trigger.c
155
156 static void iio_reenable_work_fn(struct work_struct *work)
157 {
158 struct iio_trigger *trig = container_of(work, struct iio_trigger,
159 reenable_work);
160
161 /*
162 * This 'might' occur after the trigger state is set to disabled -
163 * in that case the driver should skip reenabling.
164 */
> 165 trig->ops->re-enable(trig);
166 }
167
168 /*
169 * In general, re-enable callbacks may need to sleep and this path is
170 * not performance sensitive, so just queue up a work item
171 * to reneable the trigger for us.
172 *
173 * Races that can cause this.
174 * 1) A handler occurs entirely in interrupt context so the counter
175 * the final decrement is still in this interrupt.
176 * 2) The trigger has been removed, but one last interrupt gets through.
177 *
178 * For (1) we must call re-enable, but not in atomic context.
179 * For (2) it should be safe to call reenanble, if drivers never blindly
180 * re-enable after state is off.
181 */
182 static void iio_trigger_notify_done_atomic(struct iio_trigger *trig)
183 {
184 if (atomic_dec_and_test(&trig->use_count) && trig->ops &&
> 185 trig->ops->re-enable)
186 schedule_work(&trig->reenable_work);
187 }
188
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-13 0:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 15:59 [PATCH] iio: industrialio-trigger: Fix typos in comments Suraj Patil
2025-03-13 0:51 ` kernel test robot [this message]
2025-03-13 1:53 ` kernel test robot
2025-03-15 13:00 ` Jonathan Cameron
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=202503130826.WiaC6K1E-lkp@intel.com \
--to=lkp@intel.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=surajpatil522@gmail.com \
/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