Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Martin Povišer" <povik+lin@cutebit.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Janne Grunau <j@jannau.net>
Subject: [asahilinux:bits/070-audio 11/120] sound/soc/codecs/tas2764.c:811:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
Date: Fri, 13 Sep 2024 07:56:41 +0800	[thread overview]
Message-ID: <202409130720.UbqysLMg-lkp@intel.com> (raw)

tree:   https://github.com/AsahiLinux/linux bits/070-audio
head:   8bb0ee8e8fd75aa60a4bb4efe074711f2c35ca5c
commit: 4505843a945e1d46e759f01c0822a855eec41cea [11/120] ASoC: apple: Add macaudio machine driver
config: arm64-randconfig-004-20240913 (https://download.01.org/0day-ci/archive/20240913/202409130720.UbqysLMg-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project bf684034844c660b778f0eba103582f582b710c9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240913/202409130720.UbqysLMg-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/202409130720.UbqysLMg-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/soc/codecs/tas2764.c:12:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2258:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   sound/soc/codecs/tas2764.c:758:20: warning: cast to smaller integer type 'enum tas2764_devid' from 'const void *' [-Wvoid-pointer-to-enum-cast]
     758 |                 tas2764->devid = (enum tas2764_devid) of_id->data;
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/codecs/tas2764.c:811:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
     811 | module_i2c_driver(tas2764_i2c_driver);
         | ^
         | int
>> sound/soc/codecs/tas2764.c:811:19: error: a parameter list without types is only allowed in a function definition
     811 | module_i2c_driver(tas2764_i2c_driver);
         |                   ^
   2 warnings and 2 errors generated.
--
   In file included from sound/soc/codecs/cs42l83-i2c.c:9:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2258:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> sound/soc/codecs/cs42l83-i2c.c:235:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
     235 | module_i2c_driver(cs42l83_i2c_driver);
         | ^
         | int
>> sound/soc/codecs/cs42l83-i2c.c:235:19: error: a parameter list without types is only allowed in a function definition
     235 | module_i2c_driver(cs42l83_i2c_driver);
         |                   ^
   1 warning and 2 errors generated.
--
   In file included from sound/soc/codecs/tas2770.c:16:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2258:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> sound/soc/codecs/tas2770.c:726:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
     726 | module_i2c_driver(tas2770_i2c_driver);
         | ^
         | int
>> sound/soc/codecs/tas2770.c:726:19: error: a parameter list without types is only allowed in a function definition
     726 | module_i2c_driver(tas2770_i2c_driver);
         |                   ^
   1 warning and 2 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_SOC_CS42L83
   Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=m] && I2C [=n]
   Selected by [m]:
   - SND_SOC_APPLE_MACAUDIO [=m] && SOUND [=y] && SND [=y] && SND_SOC [=m] && (ARCH_APPLE [=y] || COMPILE_TEST [=y])
   WARNING: unmet direct dependencies detected for SND_SOC_TAS2764
   Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=m] && I2C [=n]
   Selected by [m]:
   - SND_SOC_APPLE_MACAUDIO [=m] && SOUND [=y] && SND [=y] && SND_SOC [=m] && (ARCH_APPLE [=y] || COMPILE_TEST [=y])
   WARNING: unmet direct dependencies detected for SND_SOC_TAS2770
   Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=m] && I2C [=n]
   Selected by [m]:
   - SND_SOC_APPLE_MACAUDIO [=m] && SOUND [=y] && SND [=y] && SND_SOC [=m] && (ARCH_APPLE [=y] || COMPILE_TEST [=y])


vim +/int +811 sound/soc/codecs/tas2764.c

827ed8a0fa50bd Dan Murphy       2020-10-07  802  
827ed8a0fa50bd Dan Murphy       2020-10-07  803  static struct i2c_driver tas2764_i2c_driver = {
827ed8a0fa50bd Dan Murphy       2020-10-07  804  	.driver = {
827ed8a0fa50bd Dan Murphy       2020-10-07  805  		.name   = "tas2764",
827ed8a0fa50bd Dan Murphy       2020-10-07  806  		.of_match_table = of_match_ptr(tas2764_of_match),
827ed8a0fa50bd Dan Murphy       2020-10-07  807  	},
9abcd24002bf79 Uwe Kleine-König 2023-04-25  808  	.probe      = tas2764_i2c_probe,
827ed8a0fa50bd Dan Murphy       2020-10-07  809  	.id_table   = tas2764_i2c_id,
827ed8a0fa50bd Dan Murphy       2020-10-07  810  };
827ed8a0fa50bd Dan Murphy       2020-10-07 @811  module_i2c_driver(tas2764_i2c_driver);
827ed8a0fa50bd Dan Murphy       2020-10-07  812  

:::::: The code at line 811 was first introduced by commit
:::::: 827ed8a0fa50bdd365c9f4c9f6ef561ca7032e49 ASoC: tas2764: Add the driver for the TAS2764

:::::: TO: Dan Murphy <dmurphy@ti.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

                 reply	other threads:[~2024-09-12 23:57 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=202409130720.UbqysLMg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=j@jannau.net \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=povik+lin@cutebit.org \
    /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