All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:6.6-1.0.x-imx 5948/11728] drivers/firmware/imx/sm-bbm.c:122:5: warning: no previous prototype for 'scmi_imx_bbm_pwrkey_event'
@ 2024-04-30  8:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-30  8:59 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc 6.6-1.0.x-imx
head:   37770f55ac9c4f6cd958eb5544939207eed8478f
commit: bd493ca3f0194d0b2b41e5b3b03f35ce6f4d792d [5948/11728] LF-10711-7 firmware: imx: sm-bbm: support pwrkey
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240430/202404301640.dWDkfv9r-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240430/202404301640.dWDkfv9r-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404301640.dWDkfv9r-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/firmware/imx/sm-bbm.c:122:5: warning: no previous prototype for 'scmi_imx_bbm_pwrkey_event' [-Wmissing-prototypes]
     122 | int scmi_imx_bbm_pwrkey_event(struct scmi_imx_bbm *bbnsm)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/scmi_imx_bbm_pwrkey_event +122 drivers/firmware/imx/sm-bbm.c

   121	
 > 122	int scmi_imx_bbm_pwrkey_event(struct scmi_imx_bbm *bbnsm)
   123	{
   124		struct input_dev *input = bbnsm->input;
   125	
   126		schedule_delayed_work(&bbnsm->check_work, msecs_to_jiffies(DEBOUNCE_TIME));
   127	
   128		/*
   129		 * Directly report key event after resume to make no key press
   130		 * event is missed.
   131		 */
   132		if (bbnsm->suspended) {
   133			bbnsm->keystate = 1;
   134			input_event(input, EV_KEY, bbnsm->keycode, 1);
   135			input_sync(input);
   136		}
   137	
   138		return 0;
   139	}
   140	static void scmi_imx_bbm_pwrkey_act(void *pdata)
   141	{
   142		struct scmi_imx_bbm *bbnsm = pdata;
   143	
   144		cancel_delayed_work_sync(&bbnsm->check_work);
   145	}
   146	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-04-30  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30  8:59 [freescale-fslc:6.6-1.0.x-imx 5948/11728] drivers/firmware/imx/sm-bbm.c:122:5: warning: no previous prototype for 'scmi_imx_bbm_pwrkey_event' 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.