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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 24 Nov 2016 01:21:23 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Quentin Schulz <quentin.schulz@...e-electrons.com>
Cc:     kbuild-all@...org, linus.walleij@...aro.org, gnurou@...il.com,
        robh+dt@...nel.org, mark.rutland@....com, wens@...e.org,
        Quentin Schulz <quentin.schulz@...e-electrons.com>,
        linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, thomas.petazzoni@...e-electrons.com
Subject: Re: [PATCH 2/2] gpio: axp209: add pinctrl support

Hi Quentin,

[auto build test WARNING on gpio/for-next]
[also build test WARNING on v4.9-rc6 next-20161123]
[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/Quentin-Schulz/add-support-for-AXP209-GPIOs-functions/20161124-003102
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
config: x86_64-randconfig-i0-201647 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpio/gpio-axp209.c: In function 'axp20x_gpio_get_direction':
>> drivers/gpio/gpio-axp209.c:131:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int pin_reg = (int)pctl->desc->pins[offset].pin.drv_data;
                   ^
   drivers/gpio/gpio-axp209.c: In function 'axp20x_gpio_set':
   drivers/gpio/gpio-axp209.c:158:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int pin_reg = (int)pctl->desc->pins[offset].pin.drv_data;
                   ^
   drivers/gpio/gpio-axp209.c: In function 'axp20x_pmx_set':
   drivers/gpio/gpio-axp209.c:183:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     int pin_reg = (int)pctl->desc->pins[offset].pin.drv_data;
                   ^
   drivers/gpio/gpio-axp209.c: At top level:
   drivers/gpio/gpio-axp209.c:348:21: error: 'pinconf_generic_dt_node_to_map_group' undeclared here (not in a function)
     .dt_node_to_map  = pinconf_generic_dt_node_to_map_group,
                        ^
   drivers/gpio/gpio-axp209.c:349:18: error: 'pinconf_generic_dt_free_map' undeclared here (not in a function)
     .dt_free_map  = pinconf_generic_dt_free_map,
                     ^

vim +131 drivers/gpio/gpio-axp209.c

   115	static int axp20x_gpio_get(struct gpio_chip *chip, unsigned offset)
   116	{
   117		struct axp20x_pctl *pctl = gpiochip_get_data(chip);
   118		unsigned int val;
   119		int ret;
   120	
   121		ret = regmap_read(pctl->regmap, AXP20X_GPIO20_SS, &val);
   122		if (ret)
   123			return ret;
   124	
   125		return !!(val & BIT(offset + 4));
   126	}
   127	
   128	static int axp20x_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
   129	{
   130		struct axp20x_pctl *pctl = gpiochip_get_data(chip);
 > 131		int pin_reg = (int)pctl->desc->pins[offset].pin.drv_data;
   132		unsigned int val;
   133		int ret;
   134	
   135		ret = regmap_read(pctl->regmap, pin_reg, &val);
   136		if (ret)
   137			return ret;
   138	
   139		/*

---
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/gzip" (33990 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ