From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Li Yuting <liyuting2071@phytium.com.cn>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 1466/1466] drivers/gpu/drm/phytium/phytium_platform.c:253:12: warning: 'phytium_platform_pm_resume' defined but not used
Date: Thu, 14 Nov 2024 02:49:45 +0800 [thread overview]
Message-ID: <202411140250.sY9gSIIA-lkp@intel.com> (raw)
Hi Li,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 19640fb08a2ccfb131121859517dfdbc6a04ccb6
commit: 792b82446538ed840a6e23b89673ce21564702bd [1466/1466] Fix gic support for Phytium S2500
config: arm64-randconfig-002-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140250.sY9gSIIA-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140250.sY9gSIIA-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/202411140250.sY9gSIIA-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/phytium/phytium_platform.c:19:5: warning: no previous prototype for 'phytium_platform_carveout_mem_init' [-Wmissing-prototypes]
19 | int phytium_platform_carveout_mem_init(struct platform_device *pdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_platform.c:60:6: warning: no previous prototype for 'phytium_platform_carveout_mem_fini' [-Wmissing-prototypes]
60 | void phytium_platform_carveout_mem_fini(struct platform_device *pdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/phytium/phytium_platform.c:253:12: warning: 'phytium_platform_pm_resume' defined but not used [-Wunused-function]
253 | static int phytium_platform_pm_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/phytium/phytium_platform.c:245:12: warning: 'phytium_platform_pm_suspend' defined but not used [-Wunused-function]
245 | static int phytium_platform_pm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/gpu/drm/phytium/phytium_pci.c:23:6: warning: no previous prototype for 'phytium_pci_vram_hw_init' [-Wmissing-prototypes]
23 | void phytium_pci_vram_hw_init(struct phytium_display_private *priv)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_pci.c:30:5: warning: no previous prototype for 'phytium_pci_vram_init' [-Wmissing-prototypes]
30 | int phytium_pci_vram_init(struct pci_dev *pdev, struct phytium_display_private *priv)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_pci.c:68:6: warning: no previous prototype for 'phytium_pci_vram_fini' [-Wmissing-prototypes]
68 | void phytium_pci_vram_fini(struct pci_dev *pdev, struct phytium_display_private *priv)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_pci.c:89:5: warning: no previous prototype for 'phytium_pci_dma_init' [-Wmissing-prototypes]
89 | int phytium_pci_dma_init(struct phytium_display_private *priv)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_pci.c:137:6: warning: no previous prototype for 'phytium_pci_dma_fini' [-Wmissing-prototypes]
137 | void phytium_pci_dma_fini(struct phytium_display_private *priv)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_pci.c: In function 'phytium_pci_probe':
drivers/gpu/drm/phytium/phytium_pci.c:236:23: error: implicit declaration of function 'pci_enable_msi'; did you mean 'pci_enable_sriov'? [-Wimplicit-function-declaration]
236 | ret = pci_enable_msi(pdev);
| ^~~~~~~~~~~~~~
| pci_enable_sriov
drivers/gpu/drm/phytium/phytium_pci.c:271:17: error: implicit declaration of function 'pci_disable_msi'; did you mean 'pci_disable_sriov'? [-Wimplicit-function-declaration]
271 | pci_disable_msi(pdev);
| ^~~~~~~~~~~~~~~
| pci_disable_sriov
drivers/gpu/drm/phytium/phytium_pci.c: At top level:
>> drivers/gpu/drm/phytium/phytium_pci.c:328:12: warning: 'phytium_pci_pm_resume' defined but not used [-Wunused-function]
328 | static int phytium_pci_pm_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/phytium/phytium_pci.c:305:12: warning: 'phytium_pci_pm_suspend' defined but not used [-Wunused-function]
305 | static int phytium_pci_pm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/phytium_platform_pm_resume +253 drivers/gpu/drm/phytium/phytium_platform.c
b80df10f845813 lishuo 2024-01-31 244
b80df10f845813 lishuo 2024-01-31 @245 static int phytium_platform_pm_suspend(struct device *dev)
b80df10f845813 lishuo 2024-01-31 246 {
b80df10f845813 lishuo 2024-01-31 247 struct drm_device *drm_dev = dev_get_drvdata(dev);
b80df10f845813 lishuo 2024-01-31 248 struct phytium_display_private *priv = drm_dev->dev_private;
b80df10f845813 lishuo 2024-01-31 249
b80df10f845813 lishuo 2024-01-31 250 return priv->display_pm_suspend(drm_dev);
b80df10f845813 lishuo 2024-01-31 251 }
b80df10f845813 lishuo 2024-01-31 252
b80df10f845813 lishuo 2024-01-31 @253 static int phytium_platform_pm_resume(struct device *dev)
b80df10f845813 lishuo 2024-01-31 254 {
b80df10f845813 lishuo 2024-01-31 255 struct drm_device *drm_dev = dev_get_drvdata(dev);
b80df10f845813 lishuo 2024-01-31 256 struct phytium_display_private *priv = drm_dev->dev_private;
b80df10f845813 lishuo 2024-01-31 257
b80df10f845813 lishuo 2024-01-31 258 return priv->display_pm_resume(drm_dev);
b80df10f845813 lishuo 2024-01-31 259 }
b80df10f845813 lishuo 2024-01-31 260
:::::: The code at line 253 was first introduced by commit
:::::: b80df10f845813bb4fc2002b5386ecdfa8be5f6c DRM: Phytium display DRM driver
:::::: TO: lishuo <lishuo@phytium.com.cn>
:::::: CC: lishuo <lishuo@phytium.com.cn>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-11-13 18:50 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=202411140250.sY9gSIIA-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=liyuting2071@phytium.com.cn \
--cc=oe-kbuild-all@lists.linux.dev \
/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.