All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:pr/78 2379/3687] drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1609:3: error: implicit declaration of function 'mt_eint_unmask'
@ 2021-01-22  7:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-22  7:00 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/Freescale/linux-fslc pr/78
head:   35b10ca99cd3cb57e545010466bbd588987c96f6
commit: 82175ffdfb34155e9e0463e16306821c12784ad0 [2379/3687] MLK-17829 touchscreen: Add synaptics_dsx S3508 i2c touch driver
config: x86_64-randconfig-r011-20210122 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-20) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/Freescale/linux-fslc/commit/82175ffdfb34155e9e0463e16306821c12784ad0
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/78
        git checkout 82175ffdfb34155e9e0463e16306821c12784ad0
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:792:5: warning: no previous prototype for 'tpd_i2c_read_data' [-Wmissing-prototypes]
     792 | int tpd_i2c_read_data(struct synaptics_rmi4_data *rmi4_data, struct i2c_client *client,
         |     ^~~~~~~~~~~~~~~~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:911:5: warning: no previous prototype for 'tpd_i2c_write_data' [-Wmissing-prototypes]
     911 | int tpd_i2c_write_data(struct synaptics_rmi4_data *rmi4_data, struct i2c_client *client,
         |     ^~~~~~~~~~~~~~~~~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c: In function 'touch_event_handler':
>> drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1609:3: error: implicit declaration of function 'mt_eint_unmask' [-Werror=implicit-function-declaration]
    1609 |   mt_eint_unmask(CUST_EINT_TOUCH_PANEL_NUM);
         |   ^~~~~~~~~~~~~~
>> drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1609:18: error: 'CUST_EINT_TOUCH_PANEL_NUM' undeclared (first use in this function)
    1609 |   mt_eint_unmask(CUST_EINT_TOUCH_PANEL_NUM);
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1609:18: note: each undeclared identifier is reported only once for each function it appears in
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c: In function 'synaptics_rmi4_irq_enable':
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1648:19: error: 'CUST_EINT_TOUCH_PANEL_NUM' undeclared (first use in this function)
    1648 |    mt_eint_unmask(CUST_EINT_TOUCH_PANEL_NUM);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1659:4: error: implicit declaration of function 'mt_eint_mask' [-Werror=implicit-function-declaration]
    1659 |    mt_eint_mask(CUST_EINT_TOUCH_PANEL_NUM);
         |    ^~~~~~~~~~~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c: In function 'synaptics_rmi4_probe':
>> drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:3287:2: error: 'touch_irq' undeclared (first use in this function); did you mean 'touch_atime'?
    3287 |  touch_irq = client->irq;
         |  ^~~~~~~~~
         |  touch_atime
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:3194:14: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    3194 |  int retval, ret;
         |              ^~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c: At top level:
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:175:27: warning: 'synaptics_rmi4_suspend' used but never defined
     175 | static int __maybe_unused synaptics_rmi4_suspend(struct device *dev);
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:177:27: warning: 'synaptics_rmi4_resume' used but never defined
     177 | static int __maybe_unused synaptics_rmi4_resume(struct device *dev);
         |                           ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/mt_eint_unmask +1609 drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c

  1586	
  1587	static int touch_event_handler(void *data)
  1588	{
  1589		struct synaptics_rmi4_data *rmi4_data = data;
  1590	
  1591		do {
  1592			set_current_state(TASK_INTERRUPTIBLE);
  1593	
  1594			while (tpd_halt) {
  1595				tpd_flag = 0;
  1596				msleep(20);
  1597			}
  1598	
  1599			wait_event_interruptible(waiter, tpd_flag != 0);
  1600	
  1601			tpd_flag = 0;
  1602			set_current_state(TASK_RUNNING);
  1603	
  1604			if (!rmi4_data->touch_stopped)
  1605				synaptics_rmi4_sensor_report(rmi4_data);
  1606	#ifdef CONFIG_OF_TOUCH
  1607			enable_irq(touch_irq);
  1608	#else
> 1609			mt_eint_unmask(CUST_EINT_TOUCH_PANEL_NUM);
  1610	#endif
  1611	
  1612		} while (1);
  1613	
  1614		return 0;
  1615	}
  1616	
  1617	 /**
  1618	  * synaptics_rmi4_irq_enable()
  1619	  *
  1620	  * Called by synaptics_rmi4_probe() and the power management functions
  1621	  * in this driver and also exported to other expansion Function modules
  1622	  * such as rmi_dev.
  1623	  *
  1624	  * This function handles the enabling and disabling of the attention
  1625	  * irq including the setting up of the ISR thread.
  1626	  */
  1627	static int synaptics_rmi4_irq_enable(struct synaptics_rmi4_data *rmi4_data,
  1628			bool enable)
  1629	{
  1630		int retval = 0;
  1631		unsigned char intr_status[MAX_INTR_REGISTERS];
  1632	
  1633		if (enable) {
  1634	
  1635			/* Clear interrupts first */
  1636			retval = synaptics_rmi4_i2c_read(rmi4_data,
  1637					rmi4_data->f01_data_base_addr + 1,
  1638					intr_status,
  1639					rmi4_data->num_of_intr_regs);
  1640			if (retval < 0)
  1641				return retval;
  1642	
  1643			/* set up irq */
  1644			if (!rmi4_data->irq_enabled) {
  1645	#ifdef CONFIG_OF_TOUCH
  1646				enable_irq(touch_irq);
  1647	#else
  1648				mt_eint_unmask(CUST_EINT_TOUCH_PANEL_NUM);
  1649	#endif
  1650				rmi4_data->irq_enabled = true;
  1651	
  1652			}
  1653	
  1654		} else {
  1655			if (rmi4_data->irq_enabled) {
  1656	#ifdef CONFIG_OF_TOUCH
  1657				disable_irq_nosync(touch_irq);
  1658	#else
> 1659				mt_eint_mask(CUST_EINT_TOUCH_PANEL_NUM);
  1660	#endif
  1661				rmi4_data->irq_enabled = false;
  1662			}
  1663		}
  1664	
  1665		return retval;
  1666	}
  1667	

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

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

only message in thread, other threads:[~2021-01-22  7:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  7:00 [freescale-fslc:pr/78 2379/3687] drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c:1609:3: error: implicit declaration of function 'mt_eint_unmask' 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.