From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [linux-next:master 3458/8918] sound/soc/codecs/cs-amp-lib.c:534 cs_amp_create_debugfs() warn: 'dir' is an error pointer or valid
Date: Sat, 15 Nov 2025 08:51:33 +0800 [thread overview]
Message-ID: <202511150837.pTOmpYet-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Richard Fitzgerald <rf@opensource.cirrus.com>
CC: Mark Brown <broonie@kernel.org>
CC: Takashi Iwai <tiwai@suse.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0f2995693867bfb26197b117cd55624ddc57582f
commit: cdd27fa3298ad2f39788804f7d09ab31af2b416c [3458/8918] ASoC: cs-amp-lib: Add helpers for factory calibration
:::::: branch date: 19 hours ago
:::::: commit date: 3 weeks ago
config: um-randconfig-r073-20251115 (https://download.01.org/0day-ci/archive/20251115/202511150837.pTOmpYet-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202511150837.pTOmpYet-lkp@intel.com/
smatch warnings:
sound/soc/codecs/cs-amp-lib.c:534 cs_amp_create_debugfs() warn: 'dir' is an error pointer or valid
vim +/dir +534 sound/soc/codecs/cs-amp-lib.c
267b9cdee522d0 Richard Fitzgerald 2025-09-09 515
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 516 /**
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 517 * cs_amp_create_debugfs - create a debugfs directory for a device
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 518 *
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 519 * @dev: pointer to struct device
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 520 *
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 521 * Creates a node under "cirrus_logic" in the root of the debugfs filesystem.
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 522 * This is for Cirrus-specific debugfs functionality to be grouped in a
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 523 * defined way, independently of the debugfs provided by ALSA/ASoC.
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 524 * The general ALSA/ASoC debugfs may not be enabled, and does not necessarily
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 525 * have a stable layout or naming convention.
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 526 *
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 527 * Return: Pointer to the dentry for the created directory, or -ENODEV.
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 528 */
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 529 struct dentry *cs_amp_create_debugfs(struct device *dev)
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 530 {
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 531 struct dentry *dir;
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 532
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 533 dir = debugfs_lookup("cirrus_logic", NULL);
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 @534 if (!dir)
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 535 dir = debugfs_create_dir("cirrus_logic", NULL);
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 536
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 537 return debugfs_create_dir(dev_name(dev), dir);
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 538 }
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 539 EXPORT_SYMBOL_NS_GPL(cs_amp_create_debugfs, "SND_SOC_CS_AMP_LIB");
cdd27fa3298ad2 Richard Fitzgerald 2025-10-21 540
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-15 0:51 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=202511150837.pTOmpYet-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--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.