mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Badhri Jagan Sridharan <badhri@google.com>
Cc: kbuild-all@01.org, Guenter Roeck <linux@roeck-us.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	devel@driverdev.osuosl.org,
	Badhri Jagan Sridharan <Badhri@google.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: typec: tcpm: Consider port_type while determining unattached_state
Date: Sat, 12 Aug 2017 07:42:23 +0800	[thread overview]
Message-ID: <201708120718.dwm7Xlbs%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170810220633.15343-1-Badhri@google.com>

[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50949 bytes --]

  parent reply	other threads:[~2017-08-11 23:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-10 22:06 Badhri Jagan Sridharan
2017-08-10 22:16 ` Badhri Jagan Sridharan
2017-08-11 23:42 ` kbuild test robot [this message]
2017-08-11 23:43 ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201708120718.dwm7Xlbs%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=badhri@google.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®