All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2025-11-15  0:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-15  0:51 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-15  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-15  0:51 [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 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.