From: kernel test robot <lkp@intel.com>
To: Lewis Huang <Lewis.Huang@amd.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>,
Wenjing Liu <Wenjing.Liu@amd.com>
Subject: [linux-next:master 2767/3509] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:5230:16: warning: no previous prototype for function 'wake_up_aux_channel'
Date: Wed, 26 Oct 2022 17:38:18 +0800 [thread overview]
Message-ID: <202210261759.MQ8VLHNW-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3450 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 60eac8672b5b6061ec07499c0f1b79f6d94311ce
commit: b473bd5fc333ab02479444dd4a51be5f5e324d97 [2767/3509] drm/amd/display: refine wake up aux in retrieve link caps
config: arm64-randconfig-r026-20221023 (attached as .config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b473bd5fc333ab02479444dd4a51be5f5e324d97
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b473bd5fc333ab02479444dd4a51be5f5e324d97
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
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/amd/amdgpu/../display/dc/core/dc_link_dp.c:5230:16: warning: no previous prototype for function 'wake_up_aux_channel' [-Wmissing-prototypes]
enum dc_status wake_up_aux_channel(struct dc_link *link)
^
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:5230:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
enum dc_status wake_up_aux_channel(struct dc_link *link)
^
static
1 warning generated.
vim +/wake_up_aux_channel +5230 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c
5229
> 5230 enum dc_status wake_up_aux_channel(struct dc_link *link)
5231 {
5232 enum dc_status status = DC_ERROR_UNEXPECTED;
5233 uint32_t aux_channel_retry_cnt = 0;
5234 uint8_t dpcd_power_state = '\0';
5235
5236 while (status != DC_OK && aux_channel_retry_cnt < 10) {
5237 status = core_link_read_dpcd(link, DP_SET_POWER,
5238 &dpcd_power_state, sizeof(dpcd_power_state));
5239
5240 /* Delay 1 ms if AUX CH is in power down state. Based on spec
5241 * section 2.3.1.2, if AUX CH may be powered down due to
5242 * write to DPCD 600h = 2. Sink AUX CH is monitoring differential
5243 * signal and may need up to 1 ms before being able to reply.
5244 */
5245 if (status != DC_OK || dpcd_power_state == DP_SET_POWER_D3) {
5246 udelay(1000);
5247 aux_channel_retry_cnt++;
5248 }
5249 }
5250
5251 if (status != DC_OK) {
5252 dpcd_power_state = DP_SET_POWER_D0;
5253 status = core_link_write_dpcd(
5254 link,
5255 DP_SET_POWER,
5256 &dpcd_power_state,
5257 sizeof(dpcd_power_state));
5258
5259 dpcd_power_state = DP_SET_POWER_D3;
5260 status = core_link_write_dpcd(
5261 link,
5262 DP_SET_POWER,
5263 &dpcd_power_state,
5264 sizeof(dpcd_power_state));
5265 return DC_ERROR_UNEXPECTED;
5266 }
5267
5268 return DC_OK;
5269 }
5270
--
0-DAY CI Kernel Test Service
https://01.org/lkp
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41475 bytes --]
reply other threads:[~2022-10-26 9:38 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=202210261759.MQ8VLHNW-lkp@intel.com \
--to=lkp@intel.com \
--cc=Lewis.Huang@amd.com \
--cc=Wenjing.Liu@amd.com \
--cc=alexander.deucher@amd.com \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).