Hi Hans,

[auto build test ERROR on chanwoo-extcon/extcon-next]
[also build test ERROR on v4.11-rc7 next-20170421]
[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/Hans-de-Goede/extcon-Allow-extcon-drivers-to-specify-the-extcon-name/20170422-025657
base:   https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git 
extcon-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 errors (new ones prefixed by >>):

   drivers/extcon/extcon-fusb302.c: In function 'fusb302_set_state':
>> drivers/extcon/extcon-fusb302.c:311:18: error: 'USB_TYPEC_POLARITY_NORMAL' 
>> undeclared (first use in this function)
       prop.intval = USB_TYPEC_POLARITY_NORMAL;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/extcon/extcon-fusb302.c:311:18: note: each undeclared identifier is 
reported only once for each function it appears in
>> drivers/extcon/extcon-fusb302.c:315:18: error: 'USB_TYPEC_POLARITY_FLIP' 
>> undeclared (first use in this function)
       prop.intval = USB_TYPEC_POLARITY_FLIP;
                     ^~~~~~~~~~~~~~~~~~~~~~~

vim +/USB_TYPEC_POLARITY_NORMAL +311 drivers/extcon/extcon-fusb302.c

   305                  fusb302_write_reg(data, REG_POWER, POWER_NORMAL);
   306  
   307                  /* Enable pull-down on CC1 / CC2 based on orientation */
   308                  switch (data->status1a & STATUS1A_TOGSS_MASK) {
   309                  case STATUS1A_TOGSS_SNK_CC1:
   310                          switches0 = SWITCHES0_PDWN1 | 
SWITCHES0_MEAS_CC1;
 > 311                          prop.intval = USB_TYPEC_POLARITY_NORMAL;
   312                          break;
   313                  case STATUS1A_TOGSS_SNK_CC2:
   314                          switches0 = SWITCHES0_PDWN2 | 
SWITCHES0_MEAS_CC2;
 > 315                          prop.intval = USB_TYPEC_POLARITY_FLIP;
   316                          break;
   317                  }
   318                  fusb302_write_reg(data, REG_SWITCHES0, switches0);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to