All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [agd5f:amd-staging-drm-next 2145/2165] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1435:5: warning: no previous prototype for function 'aldebaran_mode2_reset'
Date: Wed, 24 Mar 2021 19:56:39 +0800	[thread overview]
Message-ID: <202103241933.6PAXnh46-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3696 bytes --]

Hi Lijo,

FYI, the error/warning still remains.

tree:   https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head:   a34b64a7d2e86965f4a257dc94e764a084faf5a7
commit: d5efb32c00f66ef51a91c563cc1e956dfd7e6143 [2145/2165] drm/amd/pm: Modify mode2 msg sequence on aldebaran
config: x86_64-randconfig-a015-20210323 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 78a65cd945d006ff02f9d24d9cc20a302ed93b08)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f amd-staging-drm-next
        git checkout d5efb32c00f66ef51a91c563cc1e956dfd7e6143
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1435:5: warning: no previous prototype for function 'aldebaran_mode2_reset' [-Wmissing-prototypes]
   int aldebaran_mode2_reset(struct smu_context *smu)
       ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1435:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int aldebaran_mode2_reset(struct smu_context *smu)
   ^
   static 
   1 warning generated.


vim +/aldebaran_mode2_reset +1435 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c

  1434	
> 1435	int aldebaran_mode2_reset(struct smu_context *smu)
  1436	{
  1437		u32 smu_version;
  1438		int ret = 0, index;
  1439		struct amdgpu_device *adev = smu->adev;
  1440		int timeout = 10;
  1441	
  1442		smu_cmn_get_smc_version(smu, NULL, &smu_version);
  1443	
  1444		index = smu_cmn_to_asic_specific_index(smu, CMN2ASIC_MAPPING_MSG,
  1445							SMU_MSG_GfxDeviceDriverReset);
  1446	
  1447		mutex_lock(&smu->message_lock);
  1448		if (smu_version >= 0x00441400) {
  1449			ret = smu_cmn_send_msg_without_waiting(smu, (uint16_t)index, SMU_RESET_MODE_2);
  1450			/* This is similar to FLR, wait till max FLR timeout */
  1451			msleep(100);
  1452			dev_dbg(smu->adev->dev, "restore config space...\n");
  1453			/* Restore the config space saved during init */
  1454			amdgpu_device_load_pci_state(adev->pdev);
  1455	
  1456			dev_dbg(smu->adev->dev, "wait for reset ack\n");
  1457			while (ret == -ETIME && timeout)  {
  1458				ret = smu_cmn_wait_for_response(smu);
  1459				/* Wait a bit more time for getting ACK */
  1460				if (ret == -ETIME) {
  1461					--timeout;
  1462					usleep_range(500, 1000);
  1463					continue;
  1464				}
  1465	
  1466				if (ret != 1) {
  1467					dev_err(adev->dev, "failed to send mode2 message \tparam: 0x%08x response %#x\n",
  1468							SMU_RESET_MODE_2, ret);
  1469					goto out;
  1470				}
  1471			}
  1472	
  1473		} else {
  1474			dev_err(adev->dev, "smu fw 0x%x does not support MSG_GfxDeviceDriverReset MSG\n",
  1475					smu_version);
  1476		}
  1477	
  1478		if (ret == 1)
  1479			ret = 0;
  1480	out:
  1481		mutex_unlock(&smu->message_lock);
  1482	
  1483		return ret;
  1484	}
  1485	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37407 bytes --]

             reply	other threads:[~2021-03-24 11:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-24 11:56 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-23 22:57 [agd5f:amd-staging-drm-next 2145/2165] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1435:5: warning: no previous prototype for function 'aldebaran_mode2_reset' 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=202103241933.6PAXnh46-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.