From: kernel test robot <lkp@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [mlankhorst:topic/ttm-m2 16/36] drivers/gpu/drm/i915/gem/selftests/huge_pages.c:25:26: warning: no previous prototype for function 'hugepage_ctx'
Date: Thu, 28 Oct 2021 06:17:02 +0800 [thread overview]
Message-ID: <202110280655.xSKYVia9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2272 bytes --]
tree: git://people.freedesktop.org/~mlankhorst/linux topic/ttm-m2
head: 64d9b1838d3ed1c34960b92407ddf377461321e9
commit: 995f0bb1bcbf6572f5087ed4e654a188955439e9 [16/36] drm/i915: Rework context handling in hugepages selftests
config: i386-randconfig-a003-20211027 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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
git remote add mlankhorst git://people.freedesktop.org/~mlankhorst/linux
git fetch --no-tags mlankhorst topic/ttm-m2
git checkout 995f0bb1bcbf6572f5087ed4e654a188955439e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
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 >>):
In file included from drivers/gpu/drm/i915/gem/i915_gem_object.c:737:
>> drivers/gpu/drm/i915/gem/selftests/huge_pages.c:25:26: warning: no previous prototype for function 'hugepage_ctx' [-Wmissing-prototypes]
struct i915_gem_context *hugepage_ctx(struct drm_i915_private *i915, struct file *file)
^
drivers/gpu/drm/i915/gem/selftests/huge_pages.c:25:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct i915_gem_context *hugepage_ctx(struct drm_i915_private *i915, struct file *file)
^
static
1 warning generated.
vim +/hugepage_ctx +25 drivers/gpu/drm/i915/gem/selftests/huge_pages.c
24
> 25 struct i915_gem_context *hugepage_ctx(struct drm_i915_private *i915, struct file *file)
26 {
27 struct i915_gem_context *ctx = live_context(i915, file);
28 struct i915_address_space *vm;
29
30 if (IS_ERR(ctx))
31 return ctx;
32
33 vm = ctx->vm;
34 if (vm)
35 WRITE_ONCE(vm->scrub_64K, true);
36
37 return ctx;
38 }
39
---
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: 34013 bytes --]
reply other threads:[~2021-10-27 22:18 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=202110280655.xSKYVia9-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.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
all inboxes | Powered by JetHome®