From: kernel test robot <lkp@intel.com>
To: John Clements <john.clements@amd.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>,
Hawking Zhang <Hawking.Zhang@amd.com>
Subject: [linux-next:master 1048/9613] drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:115:37: warning: unused variable 'amdgpu_fw_attestation_debugfs_ops'
Date: Tue, 1 Dec 2020 17:05:54 +0800 [thread overview]
Message-ID: <202012011752.GjKoR8tI-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2856 bytes --]
Hi John,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
commit: 19ae333001b375bbc7d1ff9eaa9cbb0a72fff65e [1048/9613] drm/amdgpu: added support for psp fw attestation
config: arm64-randconfig-r006-20201201 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ac40a2d8f16b8a8c68fc811d67f647740e965cb8)
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=19ae333001b375bbc7d1ff9eaa9cbb0a72fff65e
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 19ae333001b375bbc7d1ff9eaa9cbb0a72fff65e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/amdgpu_fw_attestation.c:130:6: warning: no previous prototype for function 'amdgpu_fw_attestation_debugfs_init' [-Wmissing-prototypes]
void amdgpu_fw_attestation_debugfs_init(struct amdgpu_device *adev)
^
drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:130:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void amdgpu_fw_attestation_debugfs_init(struct amdgpu_device *adev)
^
static
>> drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:115:37: warning: unused variable 'amdgpu_fw_attestation_debugfs_ops' [-Wunused-const-variable]
static const struct file_operations amdgpu_fw_attestation_debugfs_ops = {
^
drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:122:12: warning: unused function 'amdgpu_is_fw_attestation_supported' [-Wunused-function]
static int amdgpu_is_fw_attestation_supported(struct amdgpu_device *adev)
^
3 warnings generated.
vim +/amdgpu_fw_attestation_debugfs_ops +115 drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c
114
> 115 static const struct file_operations amdgpu_fw_attestation_debugfs_ops = {
116 .owner = THIS_MODULE,
117 .read = amdgpu_fw_attestation_debugfs_read,
118 .write = NULL,
119 .llseek = default_llseek
120 };
121
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33663 bytes --]
next reply other threads:[~2020-12-01 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 9:05 kernel test robot [this message]
2020-12-01 15:33 ` Souptick Joarder
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=202012011752.GjKoR8tI-lkp@intel.com \
--to=lkp@intel.com \
--cc=Hawking.Zhang@amd.com \
--cc=alexander.deucher@amd.com \
--cc=clang-built-linux@googlegroups.com \
--cc=john.clements@amd.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox