All of lore.kernel.org
 help / color / mirror / Atom feed
* [jirislaby:devel 77/101] drivers/char/pcmcia/synclink_cs.c:1424:27: error: implicit declaration of function 'uart_get_byte_size'
@ 2021-02-19 18:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-19 18:11 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head:   ccf63100a2114b19c81d53db1e7cc76de85d9839
commit: 8ee1d6933417ddd5cbd186b9186406a155d1b209 [77/101] make use of uart_get_byte_size
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commit/?id=8ee1d6933417ddd5cbd186b9186406a155d1b209
        git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
        git fetch --no-tags jirislaby devel
        git checkout 8ee1d6933417ddd5cbd186b9186406a155d1b209
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/char/pcmcia/synclink_cs.c: In function 'mgslpc_change_params':
>> drivers/char/pcmcia/synclink_cs.c:1424:27: error: implicit declaration of function 'uart_get_byte_size' [-Werror=implicit-function-declaration]
    1424 |  info->params.data_bits = uart_get_byte_size(cflag, false, false, false);
         |                           ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/uart_get_byte_size +1424 drivers/char/pcmcia/synclink_cs.c

  1398	
  1399	/* Reconfigure adapter based on new parameters
  1400	 */
  1401	static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty)
  1402	{
  1403		unsigned cflag;
  1404		int bits_per_char;
  1405	
  1406		if (!tty)
  1407			return;
  1408	
  1409		if (debug_level >= DEBUG_LEVEL_INFO)
  1410			printk("%s(%d):mgslpc_change_params(%s)\n",
  1411				 __FILE__, __LINE__, info->device_name);
  1412	
  1413		cflag = tty->termios.c_cflag;
  1414	
  1415		/* if B0 rate (hangup) specified then negate RTS and DTR */
  1416		/* otherwise assert RTS and DTR */
  1417		if (cflag & CBAUD)
  1418			info->serial_signals |= SerialSignal_RTS | SerialSignal_DTR;
  1419		else
  1420			info->serial_signals &= ~(SerialSignal_RTS | SerialSignal_DTR);
  1421	
  1422		/* byte size and parity */
  1423	
> 1424		info->params.data_bits = uart_get_byte_size(cflag, false, false, false);
  1425	
  1426		if (cflag & CSTOPB)
  1427			info->params.stop_bits = 2;
  1428		else
  1429			info->params.stop_bits = 1;
  1430	
  1431		info->params.parity = ASYNC_PARITY_NONE;
  1432		if (cflag & PARENB) {
  1433			if (cflag & PARODD)
  1434				info->params.parity = ASYNC_PARITY_ODD;
  1435			else
  1436				info->params.parity = ASYNC_PARITY_EVEN;
  1437	#ifdef CMSPAR
  1438			if (cflag & CMSPAR)
  1439				info->params.parity = ASYNC_PARITY_SPACE;
  1440	#endif
  1441		}
  1442	
  1443		/* calculate number of jiffies to transmit a full
  1444		 * FIFO (32 bytes) at specified data rate
  1445		 */
  1446		bits_per_char = info->params.data_bits +
  1447				info->params.stop_bits + 1;
  1448	
  1449		/* if port data rate is set to 460800 or less then
  1450		 * allow tty settings to override, otherwise keep the
  1451		 * current data rate.
  1452		 */
  1453		if (info->params.data_rate <= 460800) {
  1454			info->params.data_rate = tty_get_baud_rate(tty);
  1455		}
  1456	
  1457		if (info->params.data_rate) {
  1458			info->timeout = (32*HZ*bits_per_char) /
  1459					info->params.data_rate;
  1460		}
  1461		info->timeout += HZ/50;		/* Add .02 seconds of slop */
  1462	
  1463		tty_port_set_cts_flow(&info->port, cflag & CRTSCTS);
  1464		tty_port_set_check_carrier(&info->port, ~cflag & CLOCAL);
  1465	
  1466		/* process tty input control flags */
  1467	
  1468		info->read_status_mask = 0;
  1469		if (I_INPCK(tty))
  1470			info->read_status_mask |= BIT7 | BIT6;
  1471		if (I_IGNPAR(tty))
  1472			info->ignore_status_mask |= BIT7 | BIT6;
  1473	
  1474		mgslpc_program_hw(info, tty);
  1475	}
  1476	

---
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: 58996 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-19 18:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 18:11 [jirislaby:devel 77/101] drivers/char/pcmcia/synclink_cs.c:1424:27: error: implicit declaration of function 'uart_get_byte_size' 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.