mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [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'
@ 2021-10-27 22:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-27 22:17 UTC (permalink / raw)
  To: Maarten Lankhorst; +Cc: llvm, kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-27 22:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 22:17 [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' kernel test robot

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®