All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Tue, 30 Apr 2024 16:59:47 +0800	[thread overview]
Message-ID: <202404301640.dWDkfv9r-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-04-30  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202404301640.dWDkfv9r-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.