Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2025-06-12 83/85] sound/soc/intel/avs/boards/rt5640.c:70:12: error: member reference type 'struct snd_soc_dapm_context *' is a pointer; did you mean to use '->'?
Date: Tue, 17 Jun 2025 05:43:51 +0800	[thread overview]
Message-ID: <202506170540.br7XFfZ5-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2025-06-12
head:   1d90fbcaa764745c6048fb1f9145b0d1663f861e
commit: 5c652408212f6180dfe7664ea31c1b03e864ca55 [83/85] ASoC: soc-dapm: add snd_soc_dapm_alloc()
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20250617/202506170540.br7XFfZ5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250617/202506170540.br7XFfZ5-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/202506170540.br7XFfZ5-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/soc/intel/avs/boards/rt5640.c:13:
   In file included from include/sound/soc.h:17:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
>> sound/soc/intel/avs/boards/rt5640.c:70:12: error: member reference type 'struct snd_soc_dapm_context *' is a pointer; did you mean to use '->'?
      70 |         card->dapm.idle_bias_off = true;
         |         ~~~~~~~~~~^
         |                   ->
   sound/soc/intel/avs/boards/rt5640.c:70:13: error: no member named 'idle_bias_off' in 'struct snd_soc_dapm_context'; did you mean 'idle_bias'?
      70 |         card->dapm.idle_bias_off = true;
         |                    ^~~~~~~~~~~~~
         |                    idle_bias
   include/sound/soc-dapm.h:587:7: note: 'idle_bias' declared here
     587 |         bool idle_bias;                         /* Use BIAS_OFF instead of STANDBY when false */
         |              ^
   1 warning and 2 errors generated.


vim +70 sound/soc/intel/avs/boards/rt5640.c

c95e925daa434e Cezary Rojewski 2025-05-30  48  
c95e925daa434e Cezary Rojewski 2025-05-30  49  static int avs_rt5640_codec_init(struct snd_soc_pcm_runtime *runtime)
c95e925daa434e Cezary Rojewski 2025-05-30  50  {
c95e925daa434e Cezary Rojewski 2025-05-30  51  	struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(runtime, 0);
c95e925daa434e Cezary Rojewski 2025-05-30  52  	struct snd_soc_card *card = runtime->card;
c95e925daa434e Cezary Rojewski 2025-05-30  53  	struct snd_soc_jack_pin *pins;
c95e925daa434e Cezary Rojewski 2025-05-30  54  	struct snd_soc_jack *jack;
c95e925daa434e Cezary Rojewski 2025-05-30  55  	int num_pins, ret;
c95e925daa434e Cezary Rojewski 2025-05-30  56  
c95e925daa434e Cezary Rojewski 2025-05-30  57  	jack = snd_soc_card_get_drvdata(card);
c95e925daa434e Cezary Rojewski 2025-05-30  58  	num_pins = ARRAY_SIZE(card_headset_pins);
c95e925daa434e Cezary Rojewski 2025-05-30  59  
c95e925daa434e Cezary Rojewski 2025-05-30  60  	pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL);
c95e925daa434e Cezary Rojewski 2025-05-30  61  	if (!pins)
c95e925daa434e Cezary Rojewski 2025-05-30  62  		return -ENOMEM;
c95e925daa434e Cezary Rojewski 2025-05-30  63  
c95e925daa434e Cezary Rojewski 2025-05-30  64  	ret = snd_soc_card_jack_new_pins(card, "Headset Jack", SND_JACK_HEADSET, jack, pins,
c95e925daa434e Cezary Rojewski 2025-05-30  65  					 num_pins);
c95e925daa434e Cezary Rojewski 2025-05-30  66  	if (ret)
c95e925daa434e Cezary Rojewski 2025-05-30  67  		return ret;
c95e925daa434e Cezary Rojewski 2025-05-30  68  
c95e925daa434e Cezary Rojewski 2025-05-30  69  	snd_soc_component_set_jack(codec_dai->component, jack, NULL);
c95e925daa434e Cezary Rojewski 2025-05-30 @70  	card->dapm.idle_bias_off = true;
c95e925daa434e Cezary Rojewski 2025-05-30  71  
c95e925daa434e Cezary Rojewski 2025-05-30  72  	return 0;
c95e925daa434e Cezary Rojewski 2025-05-30  73  }
c95e925daa434e Cezary Rojewski 2025-05-30  74  

:::::: The code at line 70 was first introduced by commit
:::::: c95e925daa434ee1a40a86aec6476ce588e4bd77 ASoC: Intel: avs: Add rt5640 machine board

:::::: TO: Cezary Rojewski <cezary.rojewski@intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

                 reply	other threads:[~2025-06-16 21:44 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=202506170540.br7XFfZ5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.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