lkml.org 
[lkml]   [2017]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] firmware: bluefield: add boot control driver
Hi Chris,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.14-rc4 next-20171009]
[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/Chris-Metcalf/firmware-bluefield-add-boot-control-driver/20171012-023624
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
make.cross ARCH=arm64

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

>> drivers/firmware/mlx-bootctl.c:146:21: error: expected ')' before numeric constant
DRIVER_ATTR(_name, 0600, _name##_show, _name##_store)
^
>> drivers/firmware/mlx-bootctl.c:148:8: note: in expansion of macro 'MBC_DRV_ATTR'
static MBC_DRV_ATTR(post_reset_wdog);
^~~~~~~~~~~~
>> drivers/firmware/mlx-bootctl.c:146:21: error: expected ')' before numeric constant
DRIVER_ATTR(_name, 0600, _name##_show, _name##_store)
^
drivers/firmware/mlx-bootctl.c:149:8: note: in expansion of macro 'MBC_DRV_ATTR'
static MBC_DRV_ATTR(reset_action);
^~~~~~~~~~~~
>> drivers/firmware/mlx-bootctl.c:146:21: error: expected ')' before numeric constant
DRIVER_ATTR(_name, 0600, _name##_show, _name##_store)
^
drivers/firmware/mlx-bootctl.c:150:8: note: in expansion of macro 'MBC_DRV_ATTR'
static MBC_DRV_ATTR(second_reset_action);
^~~~~~~~~~~~
>> drivers/firmware/mlx-bootctl.c:153:3: error: 'driver_attr_post_reset_wdog' undeclared here (not in a function)
&driver_attr_post_reset_wdog.attr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/firmware/mlx-bootctl.c:154:3: error: 'driver_attr_reset_action' undeclared here (not in a function)
&driver_attr_reset_action.attr,
^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/firmware/mlx-bootctl.c:155:3: error: 'driver_attr_second_reset_action' undeclared here (not in a function)
&driver_attr_second_reset_action.attr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:131:16: warning: 'second_reset_action_store' defined but not used [-Wunused-function]
static ssize_t second_reset_action_store(struct device_driver *drv,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:124:16: warning: 'second_reset_action_show' defined but not used [-Wunused-function]
static ssize_t second_reset_action_show(struct device_driver *drv,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:110:16: warning: 'reset_action_store' defined but not used [-Wunused-function]
static ssize_t reset_action_store(struct device_driver *drv,
^~~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:103:16: warning: 'reset_action_show' defined but not used [-Wunused-function]
static ssize_t reset_action_show(struct device_driver *drv,
^~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:87:16: warning: 'post_reset_wdog_store' defined but not used [-Wunused-function]
static ssize_t post_reset_wdog_store(struct device_driver *drv,
^~~~~~~~~~~~~~~~~~~~~
drivers/firmware/mlx-bootctl.c:81:16: warning: 'post_reset_wdog_show' defined but not used [-Wunused-function]
static ssize_t post_reset_wdog_show(struct device_driver *drv,
^~~~~~~~~~~~~~~~~~~~

vim +146 drivers/firmware/mlx-bootctl.c

144
145 #define MBC_DRV_ATTR(_name) \
> 146 DRIVER_ATTR(_name, 0600, _name##_show, _name##_store)
147
> 148 static MBC_DRV_ATTR(post_reset_wdog);
> 149 static MBC_DRV_ATTR(reset_action);
> 150 static MBC_DRV_ATTR(second_reset_action);
151
152 static struct attribute *mbc_dev_attrs[] = {
> 153 &driver_attr_post_reset_wdog.attr,
> 154 &driver_attr_reset_action.attr,
> 155 &driver_attr_second_reset_action.attr,
156 NULL
157 };
158

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-10-12 01:50    [W:0.087 / U:2.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site