RE: [linux-stable-rc:linux-5.15.y 8185/9999] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:633: warning: expecting prototype for dmub_aux_setconfig_reply_callback(). Prototype was for dmub_aux_setconfig_callback() instead

From: Shih, Jude
Date: Wed Sep 28 2022 - 08:31:53 EST


[AMD Official Use Only - General]

Loop in more

-----Original Message-----
From: kernel test robot <lkp@xxxxxxxxx>
Sent: Monday, September 26, 2022 5:42 PM
To: Shih, Jude <Jude.Shih@xxxxxxx>
Cc: kbuild-all@xxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>; Kazlauskas, Nicholas <Nicholas.Kazlauskas@xxxxxxx>; Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Sasha Levin <sashal@xxxxxxxxxx>
Subject: [linux-stable-rc:linux-5.15.y 8185/9999] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:633: warning: expecting prototype for dmub_aux_setconfig_reply_callback(). Prototype was for dmub_aux_setconfig_callback() instead

Hi Jude,

FYI, the error/warning still remains.

tree: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable-rc.git&amp;data=05%7C01%7CJude.Shih%40amd.com%7C7bd918cc9e924e619a7d08da9fa37821%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637997821699897778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XI%2BUuXksogcekVYVwP0186gMuUEApfZzAYsShHqQ6os%3D&amp;reserved=0 linux-5.15.y
head: 3e98e33d345e981800e03dd29f6f6343286d30b6
commit: 734d5ce02cb069cccedc993d8f1dc0ea41cfa3dd [8185/9999] drm/amd/display: Support for DMUB HPD interrupt handling
config: s390-allyesconfig
compiler: s390-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fintel%2Flkp-tests%2Fmaster%2Fsbin%2Fmake.cross&amp;data=05%7C01%7CJude.Shih%40amd.com%7C7bd918cc9e924e619a7d08da9fa37821%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637997821699897778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=UKOausOyi3bnIaEDtnlFFsv9qZSlJGFtvaK3CB2BbCw%3D&amp;reserved=0 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable-rc.git%2Fcommit%2F%3Fid%3D734d5ce02cb069cccedc993d8f1dc0ea41cfa3dd&amp;data=05%7C01%7CJude.Shih%40amd.com%7C7bd918cc9e924e619a7d08da9fa37821%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637997821699897778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=1lN4exJsKSN9O5cto4%2Bm%2FgRriYAy3gRJRo4JXICc1rQ%3D&amp;reserved=0
git remote add linux-stable-rc https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux-stable-rc.git&amp;data=05%7C01%7CJude.Shih%40amd.com%7C7bd918cc9e924e619a7d08da9fa37821%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637997821699897778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=XI%2BUuXksogcekVYVwP0186gMuUEApfZzAYsShHqQ6os%3D&amp;reserved=0
git fetch --no-tags linux-stable-rc linux-5.15.y
git checkout 734d5ce02cb069cccedc993d8f1dc0ea41cfa3dd
# 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 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/display/amdgpu_dm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:633: warning: expecting prototype for dmub_aux_setconfig_reply_callback(). Prototype was for dmub_aux_setconfig_callback() instead


vim +633 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

622
623 /**
624 * dmub_aux_setconfig_reply_callback - Callback for AUX or SET_CONFIG command.
625 * @adev: amdgpu_device pointer
626 * @notify: dmub notification structure
627 *
628 * Dmub AUX or SET_CONFIG command completion processing callback
629 * Copies dmub notification to DM which is to be read by AUX command.
630 * issuing thread and also signals the event to wake up the thread.
631 */
632 void dmub_aux_setconfig_callback(struct amdgpu_device *adev, struct dmub_notification *notify)
> 633 {
634 if (adev->dm.dmub_notify)
635 memcpy(adev->dm.dmub_notify, notify, sizeof(struct dmub_notification));
636 if (notify->type == DMUB_NOTIFICATION_AUX_REPLY)
637 complete(&adev->dm.dmub_aux_transfer_done);
638 }
639

--
0-DAY CI Kernel Test Service
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2F01.org%2Flkp&amp;data=05%7C01%7CJude.Shih%40amd.com%7C7bd918cc9e924e619a7d08da9fa37821%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637997821699897778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=8bhvvlSKfp%2BgckqTBRojdHdPulLM8bB2TFuQ14Ha%2FVo%3D&amp;reserved=0