lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201510270501.By83O51Q%fengguang.wu@intel.com>
Date:	Tue, 27 Oct 2015 05:04:39 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Constantine Shulyupin <const@...elinux.com>
Cc:	kbuild-all@...org, Jean Delvare <jdelvare@...e.com>,
	Guenter Roeck <linux@...ck-us.net>,
	"open list:HARDWARE MONITORING" <lm-sensors@...sensors.org>,
	open list <linux-kernel@...r.kernel.org>,
	Constantine Shulyupin <const@...eLinux.com>
Subject: Re: [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

Download attachment ".config.gz" of type "application/octet-stream" (25708 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ