lkml.org 
[lkml]   [2015]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] hwmon: (nct7802) Add device tree support
Hi Constantine,

[auto build test WARNING on hwmon/hwmon-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Constantine-Shulyupin/hwmon-nct7802-Add-device-tree-support/20151027-045621
config: x86_64-randconfig-x019-201543 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

drivers/hwmon/nct7802.c: In function 'nct7802_parse_dt':
>> drivers/hwmon/nct7802.c:1100:6: warning: unused variable 'i' [-Wunused-variable]
int i;
^
drivers/hwmon/nct7802.c: At top level:
drivers/hwmon/nct7802.c:1094:12: warning: 'nct7802_parse_dt' defined but not used [-Wunused-function]
static int nct7802_parse_dt(struct device_node *node,
^

vim +/i +1100 drivers/hwmon/nct7802.c

1084 (reg >= REG_PWM(0) && reg <= REG_PWM(2));
1085 }
1086
1087 static const struct regmap_config nct7802_regmap_config = {
1088 .reg_bits = 8,
1089 .val_bits = 8,
1090 .cache_type = REGCACHE_RBTREE,
1091 .volatile_reg = nct7802_regmap_is_volatile,
1092 };
1093
1094 static int nct7802_parse_dt(struct device_node *node,
1095 struct nct7802_platform_data *pdata)
1096 {
1097 struct device_node *child;
1098 const char *sen_type;
1099 int ret;
> 1100 int i;
1101
1102 for_each_child_of_node(node, child) {
1103 u32 reg = 0xFF;
1104
1105 of_property_read_u32(child, "reg", &reg);
1106 if (of_device_is_compatible(child, "nuvoton,nct7802-sensor")) {
1107 ret = of_property_read_string(child,
1108 "sensor-type", &sen_type);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2015-10-26 22:21    [W:0.073 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site