From: kbuild test robot <lkp@intel.com>
To: Liming Sun <lsun@mellanox.com>
Cc: kbuild-all@01.org, Andy Shevchenko <andy@infradead.org>,
Darren Hart <dvhart@infradead.org>,
Vadim Pasternak <vadimp@mellanox.com>,
David Woods <dwoods@mellanox.com>, Liming Sun <lsun@mellanox.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/1] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc
Date: Fri, 1 Feb 2019 13:16:42 +0800 [thread overview]
Message-ID: <201902011338.icDcSZPG%fengguang.wu@intel.com> (raw)
In-Reply-To: <0b74e9ad12360b56bc0a3c2ca972798c424f2610.1548790896.git.lsun@mellanox.com>
[-- Attachment #1: Type: text/plain, Size: 4089 bytes --]
Hi Liming,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.0-rc4 next-20190131]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Liming-Sun/platform-mellanox-Add-bootctl-driver-for-Mellanox-BlueField-Soc/20190201-104657
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=arm64
All errors (new ones prefixed by >>):
drivers/platform/mellanox/mlxbf-bootctl.c:260:36: error: array type has incomplete element type 'struct acpi_device_id'
static const struct acpi_device_id mlxbf_bootctl_acpi_ids[] = {
^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/module.h:18,
from drivers/platform/mellanox/mlxbf-bootctl.c:12:
>> drivers/platform/mellanox/mlxbf-bootctl.c:314:20: error: expected ',' or ';' before 'DRIVER_DESCRIPTION'
MODULE_DESCRIPTION(DRIVER_DESCRIPTION);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:24:26: note: in definition of macro '__MODULE_INFO'
= __stringify(tag) "=" info
^~~~
include/linux/module.h:208:42: note: in expansion of macro 'MODULE_INFO'
#define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description)
^~~~~~~~~~~
drivers/platform/mellanox/mlxbf-bootctl.c:314:1: note: in expansion of macro 'MODULE_DESCRIPTION'
MODULE_DESCRIPTION(DRIVER_DESCRIPTION);
^~~~~~~~~~~~~~~~~~
vim +314 drivers/platform/mellanox/mlxbf-bootctl.c
259
> 260 static const struct acpi_device_id mlxbf_bootctl_acpi_ids[] = {
261 {"MLNXBF04", 0},
262 {},
263 };
264
265 MODULE_DEVICE_TABLE(acpi, mlxbf_bootctl_acpi_ids);
266
267 static int mlxbf_bootctl_probe(struct platform_device *pdev)
268 {
269 struct arm_smccc_res res;
270
271 /*
272 * Ensure we have the UUID we expect for this service.
273 * Note that the functionality we want is present in the first
274 * released version of this service, so we don't check the version.
275 */
276 arm_smccc_smc(MLXBF_BOOTCTL_SIP_SVC_UID, 0, 0, 0, 0, 0, 0, 0, &res);
277 if (res.a0 != 0x89c036b4 || res.a1 != 0x11e6e7d7 ||
278 res.a2 != 0x1a009787 || res.a3 != 0xc4bf00ca)
279 return -ENODEV;
280
281 /*
282 * When watchdog is used, it sets boot mode to MLXBF_BOOTCTL_SWAP_EMMC
283 * in case of boot failures. However it doesn't clear the state if there
284 * is no failure. Restore the default boot mode here to avoid any
285 * unnecessary boot partition swapping.
286 */
287 if (mlxbf_bootctl_smc_call1(MLXBF_BOOTCTL_SET_RESET_ACTION,
288 MLXBF_BOOTCTL_EMMC) < 0)
289 pr_err("Unable to reset the EMMC boot mode\n");
290
291 pr_info("%s (version %s)\n", MLXBF_BOOTCTL_DRIVER_DESCRIPTION,
292 MLXBF_BOOTCTL_DRIVER_VERSION);
293
294 return 0;
295 }
296
297 static int mlxbf_bootctl_remove(struct platform_device *pdev)
298 {
299 return 0;
300 }
301
302 static struct platform_driver mlxbf_bootctl_driver = {
303 .probe = mlxbf_bootctl_probe,
304 .remove = mlxbf_bootctl_remove,
305 .driver = {
306 .name = MLXBF_BOOTCTL_DRIVER_NAME,
307 .groups = mlxbf_bootctl_attr_groups,
308 .acpi_match_table = ACPI_PTR(mlxbf_bootctl_acpi_ids),
309 }
310 };
311
312 module_platform_driver(mlxbf_bootctl_driver);
313
> 314 MODULE_DESCRIPTION(DRIVER_DESCRIPTION);
---
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: 63186 bytes --]
next prev parent reply other threads:[~2019-02-01 11:42 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 20:59 Liming Sun
2019-01-29 22:03 ` Andy Shevchenko
2019-01-30 6:24 ` Vadim Pasternak
2019-01-30 20:56 ` Liming Sun
2019-01-30 20:47 ` Liming Sun
2019-01-30 21:17 ` Andy Shevchenko
2019-01-31 16:53 ` Liming Sun
2019-01-31 16:53 ` [PATCH v2] " Liming Sun
2019-01-31 17:02 ` Andy Shevchenko
2019-01-31 17:18 ` Liming Sun
2019-01-31 19:20 ` Liming Sun
2019-01-31 19:19 ` [PATCH v3] " Liming Sun
2019-02-01 5:16 ` kbuild test robot [this message]
2019-02-01 20:48 ` [PATCH v1 1/1] " Liming Sun
2019-02-01 20:46 ` [PATCH v4] " Liming Sun
2019-02-05 17:21 ` Andy Shevchenko
2019-05-17 17:49 ` Liming Sun
2019-05-17 17:49 ` [PATCH v5 1/2] " Liming Sun
2019-05-20 15:56 ` Greg KH
2019-05-20 18:07 ` Liming Sun
2019-05-20 19:12 ` Greg KH
2019-05-20 20:43 ` Liming Sun
2019-05-21 7:58 ` Arnd Bergmann
2019-05-22 15:12 ` Liming Sun
2019-05-22 13:34 ` Mark Rutland
2019-05-22 14:51 ` Liming Sun
2019-05-17 17:49 ` [PATCH v5 2/2] platform/mellanox/mlxbf-bootctl: Add the ABI definitions Liming Sun
2019-05-17 17:59 ` Greg Kroah-Hartman
2019-05-17 20:36 ` Liming Sun
2019-05-18 6:35 ` Greg Kroah-Hartman
2019-05-20 15:20 ` Liming Sun
2019-05-20 15:53 ` Greg Kroah-Hartman
2019-10-07 15:48 ` [PATCH v6 1/2] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc Liming Sun
2019-10-07 15:48 ` [PATCH v6 2/2] platform/mellanox/mlxbf-bootctl: Add the ABI definitions Liming Sun
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=201902011338.icDcSZPG%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andy@infradead.org \
--cc=dvhart@infradead.org \
--cc=dwoods@mellanox.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lsun@mellanox.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=vadimp@mellanox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®