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]
Date:   Sat, 12 Aug 2017 07:42:23 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Badhri Jagan Sridharan <badhri@...gle.com>
Cc:     kbuild-all@...org, Guenter Roeck <linux@...ck-us.net>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        devel@...verdev.osuosl.org,
        Badhri Jagan Sridharan <Badhri@...gle.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: typec: tcpm: Consider port_type while
 determining unattached_state

Hi Badhri,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.13-rc4 next-20170811]
[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/Badhri-Jagan-Sridharan/staging-typec-tcpm-Consider-port_type-while-determining-unattached_state/20170812-071822
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/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=xtensa 

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

   drivers/staging/typec/tcpm.c: In function 'unattached_state':
>> drivers/staging/typec/tcpm.c:2101:10: error: 'struct tcpm_port' has no member named 'port_type'
     if (port->port_type == TYPEC_PORT_DRP) {
             ^
   drivers/staging/typec/tcpm.c:2106:17: error: 'struct tcpm_port' has no member named 'port_type'
     } else if (port->port_type == TYPEC_PORT_DFP) {
                    ^
>> drivers/staging/typec/tcpm.c:2111:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +2101 drivers/staging/typec/tcpm.c

  2098	
  2099	static inline enum tcpm_state unattached_state(struct tcpm_port *port)
  2100	{
> 2101		if (port->port_type == TYPEC_PORT_DRP) {
  2102			if (port->pwr_role == TYPEC_SOURCE)
  2103				return SRC_UNATTACHED;
  2104			else
  2105				return SNK_UNATTACHED;
  2106		} else if (port->port_type == TYPEC_PORT_DFP) {
  2107			return SRC_UNATTACHED;
  2108		} else {
  2109			return SNK_UNATTACHED;
  2110		}
> 2111	}
  2112	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ