All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <philip.li@intel.com>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: <oe-kbuild-all@lists.linux.dev>,
	Sebastian Reichel <sre@kernel.org>,
	"Algea Cao" <algea.cao@rock-chips.com>
Subject: [sre-misc:rk3588 31/37] drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:3251:12: warning: 'dw_hdmi_rockchip_suspend' defined but not used
Date: Tue, 14 Nov 2023 08:55:44 +0800	[thread overview]
Message-ID: <ZVLFkBOaQDhXbQ7R@rli9-mobl> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-misc.git rk3588
head:   f41b3e9a9d7f22bef0735b4fe0007321ce6b6d6b
commit: 171fd53717525f0f6dc56e90e6f38a9038c5c779 [31/37] drm/bridge: synopsys: Add initial support for DW HDMI QP TX Controller
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231114/202311140850.0vkZsfyQ-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231114/202311140850.0vkZsfyQ-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/r/202311140850.0vkZsfyQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2139:11: error: 'RK_IF_FORMAT_YCBCR_LQ' undeclared here (not in a function)
    2139 |         { RK_IF_FORMAT_YCBCR_LQ, "ycbcr_low_subsampling" },
         |           ^~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2140:11: error: 'RK_IF_FORMAT_MAX' undeclared here (not in a function)
    2140 |         { RK_IF_FORMAT_MAX, "invalid_output" },
         |           ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: In function 'dw_hdmi_rockchip_attach_properties':
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2219:49: error: 'RK_IF_PROP_COLOR_DEPTH' undeclared (first use in this function)
    2219 |                                                 RK_IF_PROP_COLOR_DEPTH,
         |                                                 ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2228:60: error: 'RK_IF_PROP_COLOR_FORMAT' undeclared (first use in this function)
    2228 |         prop = drm_property_create_enum(connector->dev, 0, RK_IF_PROP_COLOR_FORMAT,
         |                                                            ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2237:42: error: 'RK_IF_PROP_COLOR_DEPTH_CAPS' undeclared (first use in this function)
    2237 |                                          RK_IF_PROP_COLOR_DEPTH_CAPS,
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2245:42: error: 'RK_IF_PROP_COLOR_FORMAT_CAPS' undeclared (first use in this function)
    2245 |                                          RK_IF_PROP_COLOR_FORMAT_CAPS,
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2316:21: error: 'struct rockchip_drm_private' has no member named 'connector_id_prop'
    2316 |         if (!private->connector_id_prop)
         |                     ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2317:24: error: 'struct rockchip_drm_private' has no member named 'connector_id_prop'
    2317 |                 private->connector_id_prop = drm_property_create_range(connector->dev,
         |                        ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2320:20: error: 'struct rockchip_drm_private' has no member named 'connector_id_prop'
    2320 |         if (private->connector_id_prop)
         |                    ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2321:69: error: 'struct rockchip_drm_private' has no member named 'connector_id_prop'
    2321 |                 drm_object_attach_property(&connector->base, private->connector_id_prop, hdmi->id);
         |                                                                     ^~
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:6,
                    from include/linux/kernel.h:23,
                    from include/linux/clk.h:13,
                    from drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:6:
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: In function 'dw_hdmi_rockchip_get_property':
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2463:28: error: 'RK_IF_DEPTH_8' undeclared (first use in this function)
    2463 |                 *val = BIT(RK_IF_DEPTH_8);
         |                            ^~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2468:37: error: 'RK_IF_DEPTH_10' undeclared (first use in this function)
    2468 |                         *val |= BIT(RK_IF_DEPTH_10);
         |                                     ^~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2470:37: error: 'RK_IF_DEPTH_12' undeclared (first use in this function)
    2470 |                         *val |= BIT(RK_IF_DEPTH_12);
         |                                     ^~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2472:37: error: 'RK_IF_DEPTH_16' undeclared (first use in this function)
    2472 |                         *val |= BIT(RK_IF_DEPTH_16);
         |                                     ^~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2474:37: error: 'RK_IF_DEPTH_420_10' undeclared (first use in this function)
    2474 |                         *val |= BIT(RK_IF_DEPTH_420_10);
         |                                     ^~~~~~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2476:37: error: 'RK_IF_DEPTH_420_12' undeclared (first use in this function)
    2476 |                         *val |= BIT(RK_IF_DEPTH_420_12);
         |                                     ^~~~~~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2478:37: error: 'RK_IF_DEPTH_420_16' undeclared (first use in this function)
    2478 |                         *val |= BIT(RK_IF_DEPTH_420_16);
         |                                     ^~~~~~~~~~~~~~~~~~
   include/vdso/bits.h:7:44: note: in definition of macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                            ^~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: In function 'dw_hdmi_rockchip_bind':
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2880:44: error: 'drm_mode_convert_to_split_mode' undeclared (first use in this function); did you mean 'drm_mode_convert_to_umode'?
    2880 |         plat_data->convert_to_split_mode = drm_mode_convert_to_split_mode;
         |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                            drm_mode_convert_to_umode
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2881:45: error: 'drm_mode_convert_to_origin_mode' undeclared (first use in this function); did you mean 'drm_mode_convert_to_umode'?
    2881 |         plat_data->convert_to_origin_mode = drm_mode_convert_to_origin_mode;
         |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                             drm_mode_convert_to_umode
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:3101:25: error: implicit declaration of function 'rockchip_drm_register_sub_dev' [-Werror=implicit-function-declaration]
    3101 |                         rockchip_drm_register_sub_dev(&hdmi->sub_dev);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: In function 'dw_hdmi_rockchip_unbind':
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:3166:17: error: implicit declaration of function 'rockchip_drm_unregister_sub_dev' [-Werror=implicit-function-declaration]
    3166 |                 rockchip_drm_unregister_sub_dev(&hdmi->sub_dev);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: In function 'dw_hdmi_rockchip_get_edid_dsc_info':
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:2068:1: warning: control reaches end of non-void function [-Wreturn-type]
    2068 | }
         | ^
   drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c: At top level:
>> drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:3251:12: warning: 'dw_hdmi_rockchip_suspend' defined but not used [-Wunused-function]
    3251 | static int dw_hdmi_rockchip_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/dw_hdmi_rockchip_suspend +3251 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

171fd53717525f0 Cristian Ciocaltea 2023-11-01  3250  
171fd53717525f0 Cristian Ciocaltea 2023-11-01 @3251  static int dw_hdmi_rockchip_suspend(struct device *dev)
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3252  {
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3253  	struct rockchip_hdmi *hdmi = dev_get_drvdata(dev);
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3254  
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3255  	if (hdmi->is_hdmi_qp)
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3256  		dw_hdmi_qp_suspend(dev, hdmi->hdmi_qp);
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3257  	else
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3258  		dw_hdmi_suspend(hdmi->hdmi);
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3259  
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3260  	pm_runtime_put_sync(dev);
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3261  
171fd53717525f0 Cristian Ciocaltea 2023-11-01  3262  	return 0;
12b9f204e804b2a Andy Yan           2015-01-07  3263  }
12b9f204e804b2a Andy Yan           2015-01-07  3264  

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


             reply	other threads:[~2023-11-14  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-14  0:55 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-14  0:46 [sre-misc:rk3588 31/37] drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c:3251:12: warning: 'dw_hdmi_rockchip_suspend' defined but not used kernel test robot

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=ZVLFkBOaQDhXbQ7R@rli9-mobl \
    --to=philip.li@intel.com \
    --cc=algea.cao@rock-chips.com \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sre@kernel.org \
    /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.