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] [thread-next>] [day] [month] [year] [list]
Message-ID: <201706060334.Gr0opyQJ%fengguang.wu@intel.com>
Date:   Tue, 6 Jun 2017 03:07:22 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Baolin Wang <baolin.wang@...eadtrum.com>
Cc:     kbuild-all@...org, linus.walleij@...aro.org, mark.rutland@....com,
        robh+dt@...nel.org, linux-gpio@...r.kernel.org,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        broonie@...nel.org, baolin.wang@...aro.org,
        baolin.wang@...eadtrum.com
Subject: Re: [PATCH v2 2/2] pinctrl: sprd: Add Spreadtrum pin control driver

Hi Baolin,

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.12-rc4]
[cannot apply to pinctrl/devel next-20170605]
[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/Baolin-Wang/DT-pinctrl-Add-binding-documentation-for-Spreadtrum-pin-controller/20170605-222351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/pinctrl/sprd/pinctrl-sprd.c: In function 'sprd_pinconf_set':
>> drivers/pinctrl/sprd/pinctrl-sprd.c:484:4: warning: case value '129' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_SLEEP_MODE:
       ^~~~
   drivers/pinctrl/sprd/pinctrl-sprd.c:497:4: warning: case value '131' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_INPUT_SLEEP:
       ^~~~
   drivers/pinctrl/sprd/pinctrl-sprd.c:502:4: warning: case value '132' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_OUTPUT_SLEEP:
       ^~~~
   drivers/pinctrl/sprd/pinctrl-sprd.c:534:4: warning: case value '130' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_PULLUP:
       ^~~~
   drivers/pinctrl/sprd/pinctrl-sprd.c:543:4: warning: case value '133' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_PULLUP_SLEEP:
       ^~~~
   drivers/pinctrl/sprd/pinctrl-sprd.c:548:4: warning: case value '134' not in enumerated type 'enum pin_config_param' [-Wswitch]
       case SPRD_PIN_CONFIG_PULLDOWN_SLEEP:
       ^~~~

vim +484 drivers/pinctrl/sprd/pinctrl-sprd.c

   468	
   469		for (i = 0; i < num_configs; i++) {
   470			enum pin_config_param param;
   471			u32 shift, mask, arg, val;
   472	
   473			param = pinconf_to_config_param(configs[i]);
   474			arg = pinconf_to_config_argument(configs[i]);
   475	
   476			val = 0;
   477			shift = 0;
   478			mask = 0;
   479			if (pin->type == GLOBAL_CTRL_PIN &&
   480			    param == SPRD_PIN_CONFIG_CONTROL) {
   481				val = arg;
   482			} else if (pin->type == COMMON_PIN) {
   483				switch (param) {
 > 484				case SPRD_PIN_CONFIG_SLEEP_MODE:
   485					if (arg & AP_SLEEP)
   486						val |= BIT(13);
   487					if (arg & PUBCP_SLEEP)
   488						val |= BIT(14);
   489					if (arg & TGLDSP_SLEEP)
   490						val |= BIT(15);
   491					if (arg & AGDSP_SLEEP)
   492						val |= BIT(16);

---
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" (60113 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ