* [chrome-platform-linux:for-kernelci 5/9] drivers/platform/chrome/cros_ec_typec.c:364:5: warning: no previous prototype for 'cros_typec_configure_mux'
@ 2020-06-20 0:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-20 0:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2476 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-kernelci
head: 565ffffee3366a1a9bc4fc040088f1b57bd6c6f9
commit: 7e7def15fa4bc9d6a2fa3d1d379286591c249381 [5/9] platform/chrome: cros_ec_typec: Add USB mux control
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7e7def15fa4bc9d6a2fa3d1d379286591c249381
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/platform/chrome/cros_ec_typec.c:364:5: warning: no previous prototype for 'cros_typec_configure_mux' [-Wmissing-prototypes]
364 | int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/cros_typec_configure_mux +364 drivers/platform/chrome/cros_ec_typec.c
363
> 364 int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
365 uint8_t mux_flags)
366 {
367 struct cros_typec_port *port = typec->ports[port_num];
368 enum typec_orientation orientation;
369 int ret;
370
371 if (!port->partner)
372 return 0;
373
374 if (mux_flags & USB_PD_MUX_POLARITY_INVERTED)
375 orientation = TYPEC_ORIENTATION_REVERSE;
376 else
377 orientation = TYPEC_ORIENTATION_NORMAL;
378
379 ret = typec_switch_set(port->ori_sw, orientation);
380 if (ret)
381 return ret;
382
383 port->state.alt = NULL;
384 port->state.mode = TYPEC_STATE_USB;
385
386 if (mux_flags & USB_PD_MUX_SAFE_MODE)
387 ret = cros_typec_usb_safe_state(port);
388 else if (mux_flags & USB_PD_MUX_USB_ENABLED)
389 ret = typec_mux_set(port->mux, &port->state);
390 else {
391 dev_info(typec->dev,
392 "Unsupported mode requested, mux flags: %x\n",
393 mux_flags);
394 ret = -ENOTSUPP;
395 }
396
397 return ret;
398 }
399
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64630 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-20 0:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20 0:14 [chrome-platform-linux:for-kernelci 5/9] drivers/platform/chrome/cros_ec_typec.c:364:5: warning: no previous prototype for 'cros_typec_configure_mux' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.