All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [drm-drm-intel:drm-intel-gt-next 8/8] drivers/gpu/drm/i915/gem/i915_gem_stolen.c:624:5: error: no previous prototype for function '__i915_gem_object_create_stolen'
Date: Fri, 15 Jan 2021 22:10:08 +0800	[thread overview]
Message-ID: <202101152259.ZdKZLiuX-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4325 bytes --]

tree:   git://anongit.freedesktop.org/drm/drm-intel drm-intel-gt-next
head:   97d5539632501af59290ead8f832e0ca6b6f69e7
commit: 97d5539632501af59290ead8f832e0ca6b6f69e7 [8/8] drm/i915/region: convert object_create into object_init
config: x86_64-randconfig-a012-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add drm-drm-intel git://anongit.freedesktop.org/drm/drm-intel
        git fetch --no-tags drm-drm-intel drm-intel-gt-next
        git checkout 97d5539632501af59290ead8f832e0ca6b6f69e7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:624:5: error: no previous prototype for function '__i915_gem_object_create_stolen' [-Werror,-Wmissing-prototypes]
   int __i915_gem_object_create_stolen(struct intel_memory_region *mem,
       ^
   drivers/gpu/drm/i915/gem/i915_gem_stolen.c:624:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __i915_gem_object_create_stolen(struct intel_memory_region *mem,
   ^
   static 
>> drivers/gpu/drm/i915/gem/i915_gem_stolen.c:649:5: error: no previous prototype for function '_i915_gem_object_stolen_init' [-Werror,-Wmissing-prototypes]
   int _i915_gem_object_stolen_init(struct intel_memory_region *mem,
       ^
   drivers/gpu/drm/i915/gem/i915_gem_stolen.c:649:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int _i915_gem_object_stolen_init(struct intel_memory_region *mem,
   ^
   static 
   2 errors generated.


vim +/__i915_gem_object_create_stolen +624 drivers/gpu/drm/i915/gem/i915_gem_stolen.c

   623	
 > 624	int __i915_gem_object_create_stolen(struct intel_memory_region *mem,
   625					    struct drm_i915_gem_object *obj,
   626					    struct drm_mm_node *stolen)
   627	{
   628		static struct lock_class_key lock_class;
   629		unsigned int cache_level;
   630		int err;
   631	
   632		drm_gem_private_object_init(&mem->i915->drm, &obj->base, stolen->size);
   633		i915_gem_object_init(obj, &i915_gem_object_stolen_ops, &lock_class);
   634	
   635		obj->stolen = stolen;
   636		obj->read_domains = I915_GEM_DOMAIN_CPU | I915_GEM_DOMAIN_GTT;
   637		cache_level = HAS_LLC(mem->i915) ? I915_CACHE_LLC : I915_CACHE_NONE;
   638		i915_gem_object_set_cache_coherency(obj, cache_level);
   639	
   640		err = i915_gem_object_pin_pages(obj);
   641		if (err)
   642			return err;
   643	
   644		i915_gem_object_init_memory_region(obj, mem, 0);
   645	
   646		return 0;
   647	}
   648	
 > 649	int _i915_gem_object_stolen_init(struct intel_memory_region *mem,
   650					 struct drm_i915_gem_object *obj,
   651					 resource_size_t size,
   652					 unsigned int flags)
   653	{
   654		struct drm_i915_private *i915 = mem->i915;
   655		struct drm_mm_node *stolen;
   656		int ret;
   657	
   658		if (!drm_mm_initialized(&i915->mm.stolen))
   659			return -ENODEV;
   660	
   661		if (size == 0)
   662			return -EINVAL;
   663	
   664		stolen = kzalloc(sizeof(*stolen), GFP_KERNEL);
   665		if (!stolen)
   666			return -ENOMEM;
   667	
   668		ret = i915_gem_stolen_insert_node(i915, stolen, size, 4096);
   669		if (ret)
   670			goto err_free;
   671	
   672		ret = __i915_gem_object_create_stolen(mem, obj, stolen);
   673		if (ret)
   674			goto err_remove;
   675	
   676		return 0;
   677	
   678	err_remove:
   679		i915_gem_stolen_remove_node(i915, stolen);
   680	err_free:
   681		kfree(stolen);
   682		return ret;
   683	}
   684	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41909 bytes --]

                 reply	other threads:[~2021-01-15 14:10 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=202101152259.ZdKZLiuX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.