From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: drivers/scsi/mpi3mr/mpi3mr_app.c:3277:8-16: WARNING: please use sysfs_emit or sysfs_emit_at
Date: Sat, 18 Jul 2026 04:08:25 +0800 [thread overview]
Message-ID: <202607180403.VsiBIgm9-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Ranjan Kumar <ranjan.kumar@broadcom.com>
CC: "Martin K. Petersen" <martin.petersen@oracle.com>
CC: Salomon Dushimirimana <salomondush@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: af5e34a41cd607c00ef752e00331736570992354
commit: ec54b348f274fdd2bd32bbe74de6d62ae1a10a18 scsi: mpi3mr: Record and report controller firmware faults
date: 6 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 6 months ago
config: powerpc64-randconfig-r064-20260716 (https://download.01.org/0day-ci/archive/20260718/202607180403.VsiBIgm9-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project b3e6e6dabdc02153552a64fc74ff5c7532447eed)
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
| Fixes: ec54b348f274 ("scsi: mpi3mr: Record and report controller firmware faults")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202607180403.VsiBIgm9-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/scsi/mpi3mr/mpi3mr_app.c:3277:8-16: WARNING: please use sysfs_emit or sysfs_emit_at
vim +3277 drivers/scsi/mpi3mr/mpi3mr_app.c
986d6bad2103fb Sumit Saxena 2022-04-29 3257
ec54b348f274fd Ranjan Kumar 2026-01-16 3258 /**
ec54b348f274fd Ranjan Kumar 2026-01-16 3259 * fwfault_count_show() - SysFS callback to show firmware fault count
ec54b348f274fd Ranjan Kumar 2026-01-16 3260 * @dev: class device
ec54b348f274fd Ranjan Kumar 2026-01-16 3261 * @attr: Device attribute
ec54b348f274fd Ranjan Kumar 2026-01-16 3262 * @buf: Buffer to copy data into
ec54b348f274fd Ranjan Kumar 2026-01-16 3263 *
ec54b348f274fd Ranjan Kumar 2026-01-16 3264 * Displays the total number of firmware faults detected by the driver
ec54b348f274fd Ranjan Kumar 2026-01-16 3265 * since the controller was initialized.
ec54b348f274fd Ranjan Kumar 2026-01-16 3266 *
ec54b348f274fd Ranjan Kumar 2026-01-16 3267 * Return: Number of bytes written to @buf
ec54b348f274fd Ranjan Kumar 2026-01-16 3268 */
ec54b348f274fd Ranjan Kumar 2026-01-16 3269
ec54b348f274fd Ranjan Kumar 2026-01-16 3270 static ssize_t
ec54b348f274fd Ranjan Kumar 2026-01-16 3271 fwfault_count_show(struct device *dev, struct device_attribute *attr,
ec54b348f274fd Ranjan Kumar 2026-01-16 3272 char *buf)
ec54b348f274fd Ranjan Kumar 2026-01-16 3273 {
ec54b348f274fd Ranjan Kumar 2026-01-16 3274 struct Scsi_Host *shost = class_to_shost(dev);
ec54b348f274fd Ranjan Kumar 2026-01-16 3275 struct mpi3mr_ioc *mrioc = shost_priv(shost);
ec54b348f274fd Ranjan Kumar 2026-01-16 3276
ec54b348f274fd Ranjan Kumar 2026-01-16 @3277 return snprintf(buf, PAGE_SIZE, "%llu\n", mrioc->fwfault_counter);
ec54b348f274fd Ranjan Kumar 2026-01-16 3278 }
ec54b348f274fd Ranjan Kumar 2026-01-16 3279 static DEVICE_ATTR_RO(fwfault_count);
ec54b348f274fd Ranjan Kumar 2026-01-16 3280
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-17 20:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202607180403.VsiBIgm9-lkp@intel.com \
--to=lkp@intel.com \
--cc=julia.lawall@inria.fr \
--cc=oe-kbuild@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 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.