All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Shuming Fan <shumingf@realtek.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
	kbuild-all@01.org
Subject: [asoc:for-4.18 35/37] sound/soc/codecs/rt1305.c:1179:23: error: implicit declaration of function 'ACPI_PTR'; did you mean 'ERR_PTR'?
Date: Tue, 17 Apr 2018 03:41:24 +0800	[thread overview]
Message-ID: <201804170321.o4jkfmnc%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-4.18
head:   fbeabd09236664f34ea3e4a9f7dcf5a0cdb7fc47
commit: 29bc643ddd7efb741d07c8b2d9a4c3dd9228865b [35/37] ASoC: rt1305: Add RT1305/RT1306 amplifier driver
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 29bc643ddd7efb741d07c8b2d9a4c3dd9228865b
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

>> sound/soc/codecs/rt1305.c:1179:23: error: implicit declaration of function 'ACPI_PTR'; did you mean 'ERR_PTR'? [-Werror=implicit-function-declaration]
      .acpi_match_table = ACPI_PTR(rt1305_acpi_match)
                          ^~~~~~~~
                          ERR_PTR
>> sound/soc/codecs/rt1305.c:1179:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/codecs/rt1305.c:1179:23: note: (near initialization for 'rt1305_i2c_driver.driver.acpi_match_table')
>> sound/soc/codecs/rt1305.c:1179:23: error: initializer element is not constant
   sound/soc/codecs/rt1305.c:1179:23: note: (near initialization for 'rt1305_i2c_driver.driver.acpi_match_table')
   cc1: some warnings being treated as errors

coccinelle warnings: (new ones prefixed by >>)

>> sound/soc/codecs/rt1305.c:1174:3-8: No need to set .owner here. The core will do it.

Please review and possibly fold the followup patch.

vim +1179 sound/soc/codecs/rt1305.c

  1169	
  1170	
  1171	static struct i2c_driver rt1305_i2c_driver = {
  1172		.driver = {
  1173			.name = "rt1305",
> 1174			.owner = THIS_MODULE,
  1175	#if defined(CONFIG_OF)
  1176			.of_match_table = rt1305_of_match,
  1177	#endif
  1178	#if defined(CONFIG_ACPI)
> 1179			.acpi_match_table = ACPI_PTR(rt1305_acpi_match)
  1180	#endif
  1181		},
  1182		.probe = rt1305_i2c_probe,
  1183		.remove   = rt1305_i2c_remove,
  1184		.shutdown = rt1305_i2c_shutdown,
  1185		.id_table = rt1305_i2c_id,
  1186	};
  1187	module_i2c_driver(rt1305_i2c_driver);
  1188	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 62937 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2018-04-16 19:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16 19:41 kbuild test robot [this message]
2018-04-16 19:41 ` [PATCH] ASoC: rt1305: fix platform_no_drv_owner.cocci warnings kbuild test robot
2018-04-17 10:30   ` Applied "ASoC: rt1305: fix platform_no_drv_owner.cocci warnings" to the asoc tree Mark Brown
2018-04-17 10:30     ` Mark Brown
2018-04-17 10:32   ` Mark Brown
2018-04-17 10:32     ` Mark Brown
2018-04-17 11:29   ` Mark Brown
2018-04-17 11:29     ` Mark Brown

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=201804170321.o4jkfmnc%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=shumingf@realtek.com \
    /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.