All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2023-02-04  9:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-04  9:27 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2023-02-04  9:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-04  9:27 [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 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.