All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-6.6 37/37] drivers/gpu/drm/mediatek/mtk_dp_v2.c:4373:6: warning: no previous prototype for function 'mtk_dp_hdcp_atomic_check'
Date: Tue, 29 Apr 2025 06:44:35 +0800	[thread overview]
Message-ID: <202504290656.kQuDoFZM-lkp@intel.com> (raw)

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.6
head:   f02706a87d01b3276dd25abaab122a7c8adbc6ac
commit: 0d43a2e82b935a7486ba1c21669596ff0a59ac27 [37/37] CHROMIUM: drm/mediatek: refine mst control flow
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250429/202504290656.kQuDoFZM-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250429/202504290656.kQuDoFZM-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/202504290656.kQuDoFZM-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/mediatek/mtk_dp_v2.c:8:
   In file included from include/drm/display/drm_dp_helper.h:27:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:20:
   In file included from include/linux/mm.h:2194:
   include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     508 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     509 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     515 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     516 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     527 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     528 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     536 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     537 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2565:6: warning: no previous prototype for function 'mtk_dp_dsc_support_v2' [-Wmissing-prototypes]
    2565 | void mtk_dp_dsc_support_v2(struct mtk_dp *mtk_dp)
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2565:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2565 | void mtk_dp_dsc_support_v2(struct mtk_dp *mtk_dp)
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2573:6: warning: no previous prototype for function 'mtk_dp_dsc_enable_v2' [-Wmissing-prototypes]
    2573 | void mtk_dp_dsc_enable_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2573:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2573 | void mtk_dp_dsc_enable_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2603:6: warning: no previous prototype for function 'mtk_dp_dsc_disable_v2' [-Wmissing-prototypes]
    2603 | void mtk_dp_dsc_disable_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2603:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2603 | void mtk_dp_dsc_disable_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2633:6: warning: no previous prototype for function 'mtk_dp_set_chunk_size_v2' [-Wmissing-prototypes]
    2633 | void mtk_dp_set_chunk_size_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id,
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2633:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2633 | void mtk_dp_set_chunk_size_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id,
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2652:6: warning: no previous prototype for function 'mtk_dp_dsc_set_param_v2' [-Wmissing-prototypes]
    2652 | void mtk_dp_dsc_set_param_v2(struct mtk_dp *mtk_dp,
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2652:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2652 | void mtk_dp_dsc_set_param_v2(struct mtk_dp *mtk_dp,
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2678:6: warning: no previous prototype for function 'mtk_dp_dsc_set_pps_v2' [-Wmissing-prototypes]
    2678 | void mtk_dp_dsc_set_pps_v2(struct mtk_dp *mtk_dp,
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2678:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2678 | void mtk_dp_dsc_set_pps_v2(struct mtk_dp *mtk_dp,
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2698:6: warning: no previous prototype for function 'mtk_dp_dsc_pps_send_v2' [-Wmissing-prototypes]
    2698 | void mtk_dp_dsc_pps_send_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2698:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2698 | void mtk_dp_dsc_pps_send_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id)
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2704:6: warning: no previous prototype for function 'mtk_dp_dsc_parse_pps_param_v2' [-Wmissing-prototypes]
    2704 | void mtk_dp_dsc_parse_pps_param_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id, u8 *pps)
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:2704:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2704 | void mtk_dp_dsc_parse_pps_param_v2(struct mtk_dp *mtk_dp, const enum dp_encoder_id encoder_id, u8 *pps)
         | ^
         | static 
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:3694:5: warning: variable 'data' set but not used [-Wunused-but-set-variable]
    3694 |         u8 data;
         |            ^
>> drivers/gpu/drm/mediatek/mtk_dp_v2.c:4373:6: warning: no previous prototype for function 'mtk_dp_hdcp_atomic_check' [-Wmissing-prototypes]
    4373 | void mtk_dp_hdcp_atomic_check(struct mtk_dp *mtk_dp, enum dp_encoder_id id,
         |      ^
   drivers/gpu/drm/mediatek/mtk_dp_v2.c:4373:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    4373 | void mtk_dp_hdcp_atomic_check(struct mtk_dp *mtk_dp, enum dp_encoder_id id,
         | ^
         | static 
   14 warnings generated.


vim +/mtk_dp_hdcp_atomic_check +4373 drivers/gpu/drm/mediatek/mtk_dp_v2.c

218314d73d3257 mac.shen 2025-01-27  4372  
56c7482df8dc4a Mac Shen 2025-02-02 @4373  void mtk_dp_hdcp_atomic_check(struct mtk_dp *mtk_dp, enum dp_encoder_id id,
56c7482df8dc4a Mac Shen 2025-02-02  4374  			      struct drm_connector_state *state)
218314d73d3257 mac.shen 2025-01-27  4375  {
56c7482df8dc4a Mac Shen 2025-02-02  4376  	bool need_hdcp;
218314d73d3257 mac.shen 2025-01-27  4377  
56c7482df8dc4a Mac Shen 2025-02-02  4378  	mutex_lock(&mtk_dp->hdcp_mutex);
56c7482df8dc4a Mac Shen 2025-02-02  4379  
56c7482df8dc4a Mac Shen 2025-02-02  4380  	need_hdcp = mtk_dp_hdcp_need_hdcp(mtk_dp);
218314d73d3257 mac.shen 2025-01-27  4381  
0d43a2e82b935a Mac Shen 2025-03-04  4382  	if (!need_hdcp)
218314d73d3257 mac.shen 2025-01-27  4383  		mtk_dp_hdcp_disable(mtk_dp);
218314d73d3257 mac.shen 2025-01-27  4384  
56c7482df8dc4a Mac Shen 2025-02-02  4385  	if (need_hdcp)
218314d73d3257 mac.shen 2025-01-27  4386  		mtk_dp_hdcp_enable(mtk_dp);
56c7482df8dc4a Mac Shen 2025-02-02  4387  
56c7482df8dc4a Mac Shen 2025-02-02  4388  	mutex_unlock(&mtk_dp->hdcp_mutex);
218314d73d3257 mac.shen 2025-01-27  4389  }
218314d73d3257 mac.shen 2025-01-27  4390  

:::::: The code at line 4373 was first introduced by commit
:::::: 56c7482df8dc4a22d074197a9e4313cc79b734a3 CHROMIUM: drm/mediatek: Add support for MST HDCP

:::::: TO: Mac Shen <mac.shen@mediatek.corp-partner.google.com>
:::::: CC: Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>

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

                 reply	other threads:[~2025-04-29  1:19 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=202504290656.kQuDoFZM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --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.