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.1-2.2.x-imx 4863/17898] drivers/soc/imx/rpmsg_life_cycle.c:126:13: error: 'pm_suspend_target_state' undeclared
Date: Tue, 20 Feb 2024 01:08:51 +0800	[thread overview]
Message-ID: <202402200134.2fMfdR9j-lkp@intel.com> (raw)

Hi Dong,

First bad commit (maybe != root cause):

tree:   https://github.com/Freescale/linux-fslc 6.1-2.2.x-imx
head:   4e3fc5471376a15279ee5c99e791a7c7b065cbc1
commit: d76441df9683065e8b622bc0cdf725ba3b2db0fd [4863/17898] Merge branch 'rpmsg/next' into next
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240220/202402200134.2fMfdR9j-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/20240220/202402200134.2fMfdR9j-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/202402200134.2fMfdR9j-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/soc/imx/rpmsg_life_cycle.c: In function 'rpmsg_lifecycle_pm_notify':
>> drivers/soc/imx/rpmsg_life_cycle.c:126:13: error: 'pm_suspend_target_state' undeclared (first use in this function)
     126 |         if (pm_suspend_target_state != PM_SUSPEND_MEM)
         |             ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/soc/imx/rpmsg_life_cycle.c:126:13: note: each undeclared identifier is reported only once for each function it appears in


vim +/pm_suspend_target_state +126 drivers/soc/imx/rpmsg_life_cycle.c

ef6386e70ae4cf Jacky Bai 2021-09-23  119  
fb9fd020919b41 Jacky Bai 2021-10-18  120  static int __maybe_unused rpmsg_lifecycle_pm_notify(bool enter)
fb9fd020919b41 Jacky Bai 2021-10-18  121  {
fb9fd020919b41 Jacky Bai 2021-10-18  122  	struct pm_rpmsg_data msg = {};
fb9fd020919b41 Jacky Bai 2021-10-18  123  	int ret;
fb9fd020919b41 Jacky Bai 2021-10-18  124  
fb9fd020919b41 Jacky Bai 2021-10-18  125  	/* Only need to do lifecycle notify when APD enter mem(HW PD) mode */
fb9fd020919b41 Jacky Bai 2021-10-18 @126  	if (pm_suspend_target_state != PM_SUSPEND_MEM)
fb9fd020919b41 Jacky Bai 2021-10-18  127  		return 0;
fb9fd020919b41 Jacky Bai 2021-10-18  128  
fb9fd020919b41 Jacky Bai 2021-10-18  129  	msg.data = enter ? PM_RPMSG_SUSPEND : PM_RPMSG_ACTIVE;
fb9fd020919b41 Jacky Bai 2021-10-18  130  	msg.header.cate = IMX_RMPSG_LIFECYCLE;
fb9fd020919b41 Jacky Bai 2021-10-18  131  	msg.header.major = IMX_RMPSG_MAJOR;
fb9fd020919b41 Jacky Bai 2021-10-18  132  	msg.header.minor = IMX_RMPSG_MINOR;
fb9fd020919b41 Jacky Bai 2021-10-18  133  	msg.header.type = PM_RPMSG_TYPE;
fb9fd020919b41 Jacky Bai 2021-10-18  134  	msg.header.cmd = PM_RPMSG_MODE;
fb9fd020919b41 Jacky Bai 2021-10-18  135  
fb9fd020919b41 Jacky Bai 2021-10-18  136  	reinit_completion(&cmd_complete);
fb9fd020919b41 Jacky Bai 2021-10-18  137  
fb9fd020919b41 Jacky Bai 2021-10-18  138  	ret = rpmsg_send(life_cycle_rpdev->ept, &msg, sizeof(struct pm_rpmsg_data));
fb9fd020919b41 Jacky Bai 2021-10-18  139  	if (ret) {
fb9fd020919b41 Jacky Bai 2021-10-18  140  		dev_err(&life_cycle_rpdev->dev, "rpmsg send failed:%d\n", ret);
fb9fd020919b41 Jacky Bai 2021-10-18  141  		return ret;
fb9fd020919b41 Jacky Bai 2021-10-18  142  	}
fb9fd020919b41 Jacky Bai 2021-10-18  143  
fb9fd020919b41 Jacky Bai 2021-10-18  144  	ret = wait_for_completion_timeout(&cmd_complete,
fb9fd020919b41 Jacky Bai 2021-10-18  145  					msecs_to_jiffies(RPMSG_TIMEOUT));
fb9fd020919b41 Jacky Bai 2021-10-18  146  	if (!ret) {
fb9fd020919b41 Jacky Bai 2021-10-18  147  		dev_err(&life_cycle_rpdev->dev, "rpmsg_send timeout!\n");
fb9fd020919b41 Jacky Bai 2021-10-18  148  		return -ETIMEDOUT;
fb9fd020919b41 Jacky Bai 2021-10-18  149  	}
fb9fd020919b41 Jacky Bai 2021-10-18  150  
fb9fd020919b41 Jacky Bai 2021-10-18  151  	return 0;
fb9fd020919b41 Jacky Bai 2021-10-18  152  }
fb9fd020919b41 Jacky Bai 2021-10-18  153  

:::::: The code at line 126 was first introduced by commit
:::::: fb9fd020919b41006aab5e892c5c2cb804071cb0 LF-6607-01 soc: imx: Add suspend/resume lifecycle sync support on imx8ulp

:::::: TO: Jacky Bai <ping.bai@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>

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

                 reply	other threads:[~2024-02-19 17:10 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=202402200134.2fMfdR9j-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.