From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:5.15-2.2.x-imx 6094/20209] drivers/gpu/drm/imx/sec_mipi_dsim-imx.c:64:5: warning: "CONFIG_PM" is not defined, evaluates to 0
Date: Sat, 4 Feb 2023 17:27:33 +0800 [thread overview]
Message-ID: <202302041719.b3EhkanG-lkp@intel.com> (raw)
Hi Dong,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.15-2.2.x-imx
head: 3248ffcb12d15a0e40b9a020ba362591b8137923
commit: ba7179b2e4a0549e119cc83c5dfe5eb013cef3c2 [6094/20209] Merge remote-tracking branch 'origin/display/dsim' into display/next
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20230204/202302041719.b3EhkanG-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.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://github.com/Freescale/linux-fslc/commit/ba7179b2e4a0549e119cc83c5dfe5eb013cef3c2
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.15-2.2.x-imx
git checkout ba7179b2e4a0549e119cc83c5dfe5eb013cef3c2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/accessibility/speakup/ drivers/firmware/imx/ drivers/gpu/drm/imx/ drivers/irqchip/ drivers/mfd/ drivers/soc/imx/ drivers/spi/ drivers/staging/media/imx/ sound/soc/sof/intel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/imx/sec_mipi_dsim-imx.c:64:5: warning: "CONFIG_PM" is not defined, evaluates to 0 [-Wundef]
64 | #if CONFIG_PM
| ^~~~~~~~~
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c: In function 'sec_dsim_of_parse_resets':
>> drivers/gpu/drm/imx/sec_mipi_dsim-imx.c:291:18: warning: variable 'len' set but not used [-Wunused-but-set-variable]
291 | uint32_t len, rstc_num = 0;
| ^~~
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c: At top level:
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c:72:12: warning: 'imx_sec_dsim_runtime_resume' defined but not used [-Wunused-function]
72 | static int imx_sec_dsim_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c:68:12: warning: 'imx_sec_dsim_runtime_suspend' defined but not used [-Wunused-function]
68 | static int imx_sec_dsim_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/CONFIG_PM +64 drivers/gpu/drm/imx/sec_mipi_dsim-imx.c
25799de94b286c Fancy Fang 2018-06-06 63
b5a7aa6c474c92 Fancy Fang 2018-07-02 @64 #if CONFIG_PM
b5a7aa6c474c92 Fancy Fang 2018-07-02 65 static int imx_sec_dsim_runtime_suspend(struct device *dev);
b5a7aa6c474c92 Fancy Fang 2018-07-02 66 static int imx_sec_dsim_runtime_resume(struct device *dev);
b5a7aa6c474c92 Fancy Fang 2018-07-02 67 #else
b5a7aa6c474c92 Fancy Fang 2018-07-02 68 static int imx_sec_dsim_runtime_suspend(struct device *dev)
b5a7aa6c474c92 Fancy Fang 2018-07-02 69 {
b5a7aa6c474c92 Fancy Fang 2018-07-02 70 return 0;
b5a7aa6c474c92 Fancy Fang 2018-07-02 71 }
b5a7aa6c474c92 Fancy Fang 2018-07-02 72 static int imx_sec_dsim_runtime_resume(struct device *dev)
b5a7aa6c474c92 Fancy Fang 2018-07-02 73 {
b5a7aa6c474c92 Fancy Fang 2018-07-02 74 return 0;
b5a7aa6c474c92 Fancy Fang 2018-07-02 75 }
b5a7aa6c474c92 Fancy Fang 2018-07-02 76 #endif
b5a7aa6c474c92 Fancy Fang 2018-07-02 77
:::::: The code at line 64 was first introduced by commit
:::::: b5a7aa6c474c926d8d7d919ebdb84ac3dfb328bd MLK-19017-6 drm/imx: add system pm support for SEC DSIM
:::::: TO: Fancy Fang <chen.fang@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-04 9:27 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=202302041719.b3EhkanG-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.