lkml.org 
[lkml]   [2021]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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'
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-28 00:18    [W:0.028 / U:1.964 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site