From: kernel test robot <rong.a.chen@intel.com>
To: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>,
Huang Rui <ray.huang@amd.com>
Subject: [linux-next:master 6379/13831] drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c:503:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
Date: Tue, 29 Jun 2021 19:48:52 +0800 [thread overview]
Message-ID: <20210629114852.GP237458@shao2-debian> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3579aa488520feeda433ceca23ef4704bf8cd280
commit: bd8dcea93a7d45a3366b5f3e6c341a677ff90acf [6379/13831] drm/amd/pm: add callbacks to read/write sysfs file pp_power_profile_mode
compiler: ia64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
vim +503 drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c
4cea0fc9816add Xiaomeng Hou 2021-02-09 473
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 474 static int yellow_carp_get_power_profile_mode(struct smu_context *smu,
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 475 char *buf)
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 476 {
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 477 static const char *profile_name[] = {
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 478 "BOOTUP_DEFAULT",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 479 "3D_FULL_SCREEN",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 480 "POWER_SAVING",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 481 "VIDEO",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 482 "VR",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 483 "COMPUTE",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 484 "CUSTOM"};
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 485 uint32_t i, size = 0;
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 486 int16_t workload_type = 0;
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 487
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 488 if (!buf)
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 489 return -EINVAL;
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 490
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 491 for (i = 0; i <= PP_SMC_POWER_PROFILE_CUSTOM; i++) {
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 492 /*
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 493 * Conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT.
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 494 * Not all profile modes are supported on yellow carp.
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 495 */
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 496 workload_type = smu_cmn_to_asic_specific_index(smu,
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 497 CMN2ASIC_MAPPING_WORKLOAD,
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 498 i);
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 499
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 500 if (workload_type < 0)
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 501 continue;
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 502
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 @503 size += sprintf(buf + size, "%2d %14s%s\n",
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 504 i, profile_name[i], (i == smu->power_profile_mode) ? "*" : " ");
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 505 }
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 506
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 507 return size;
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 508 }
bd8dcea93a7d45 Xiaomeng Hou 2021-03-29 509
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-06-29 11:49 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=20210629114852.GP237458@shao2-debian \
--to=rong.a.chen@intel.com \
--cc=Xiaomeng.Hou@amd.com \
--cc=alexander.deucher@amd.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=ray.huang@amd.com \
/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).