linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Nick Desaulniers <ndesaulniers@google.com>
Cc: kbuild-all@01.org, akpm@linux-foundation.org,
	natechancellor@gmail.com, arnd@arndb.de, paul.burton@mips.com,
	christophe.leroy@c-s.fr, shorne@gmail.com,
	yamada.masahiro@socionext.com, keescook@chromium.org,
	mingo@kernel.org, gregkh@linuxfoundation.org, tglx@linutronix.de,
	rdunlap@infradead.org, bp@suse.de, neilb@suse.com,
	linux-kernel@vger.kernel.org, aryabinin@virtuozzo.com,
	dwmw@amazon.co.uk, sandipan@linux.vnet.ibm.com,
	linux@rasmusvillemoes.dk, paullawrence@google.com,
	andreyknvl@google.com, will.deacon@arm.com,
	ghackmann@android.com, stable@vger.kernel.org,
	ghackmann@google.com, mka@chromium.org, jpoimboe@redhat.com,
	wvw@google.com, avagin@openvz.org,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_
Date: Tue, 31 Jul 2018 21:53:58 +0800	[thread overview]
Message-ID: <201807312139.1v5egImL%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180730213412.242849-3-ndesaulniers@google.com>

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

Hi Nick,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.18-rc7 next-20180727]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Nick-Desaulniers/compiler-clang-h-Add-CLANG_VERSION-and-__diag-macros/20180731-161932
config: x86_64-randconfig-s1-07312048 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/i915/i915_gem.c: In function '__i915_gem_object_set_pages':
>> drivers/gpu//drm/i915/i915_gem.c:2697:1: error: expected expression before '#pragma'
     GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg));
    ^~~

vim +2697 drivers/gpu//drm/i915/i915_gem.c

03ac84f18 Chris Wilson 2016-10-28  2658  
03ac84f18 Chris Wilson 2016-10-28  2659  void __i915_gem_object_set_pages(struct drm_i915_gem_object *obj,
a5c081662 Matthew Auld 2017-10-06  2660  				 struct sg_table *pages,
84e8978e6 Matthew Auld 2017-10-09  2661  				 unsigned int sg_page_sizes)
03ac84f18 Chris Wilson 2016-10-28  2662  {
a5c081662 Matthew Auld 2017-10-06  2663  	struct drm_i915_private *i915 = to_i915(obj->base.dev);
a5c081662 Matthew Auld 2017-10-06  2664  	unsigned long supported = INTEL_INFO(i915)->page_sizes;
a5c081662 Matthew Auld 2017-10-06  2665  	int i;
a5c081662 Matthew Auld 2017-10-06  2666  
1233e2db1 Chris Wilson 2016-10-28  2667  	lockdep_assert_held(&obj->mm.lock);
03ac84f18 Chris Wilson 2016-10-28  2668  
03ac84f18 Chris Wilson 2016-10-28  2669  	obj->mm.get_page.sg_pos = pages->sgl;
03ac84f18 Chris Wilson 2016-10-28  2670  	obj->mm.get_page.sg_idx = 0;
03ac84f18 Chris Wilson 2016-10-28  2671  
03ac84f18 Chris Wilson 2016-10-28  2672  	obj->mm.pages = pages;
2c3a3f44d Chris Wilson 2016-11-04  2673  
2c3a3f44d Chris Wilson 2016-11-04  2674  	if (i915_gem_object_is_tiled(obj) &&
f2123818f Chris Wilson 2017-10-16  2675  	    i915->quirks & QUIRK_PIN_SWIZZLED_PAGES) {
2c3a3f44d Chris Wilson 2016-11-04  2676  		GEM_BUG_ON(obj->mm.quirked);
2c3a3f44d Chris Wilson 2016-11-04  2677  		__i915_gem_object_pin_pages(obj);
2c3a3f44d Chris Wilson 2016-11-04  2678  		obj->mm.quirked = true;
2c3a3f44d Chris Wilson 2016-11-04  2679  	}
a5c081662 Matthew Auld 2017-10-06  2680  
84e8978e6 Matthew Auld 2017-10-09  2681  	GEM_BUG_ON(!sg_page_sizes);
84e8978e6 Matthew Auld 2017-10-09  2682  	obj->mm.page_sizes.phys = sg_page_sizes;
a5c081662 Matthew Auld 2017-10-06  2683  
a5c081662 Matthew Auld 2017-10-06  2684  	/*
84e8978e6 Matthew Auld 2017-10-09  2685  	 * Calculate the supported page-sizes which fit into the given
84e8978e6 Matthew Auld 2017-10-09  2686  	 * sg_page_sizes. This will give us the page-sizes which we may be able
84e8978e6 Matthew Auld 2017-10-09  2687  	 * to use opportunistically when later inserting into the GTT. For
84e8978e6 Matthew Auld 2017-10-09  2688  	 * example if phys=2G, then in theory we should be able to use 1G, 2M,
84e8978e6 Matthew Auld 2017-10-09  2689  	 * 64K or 4K pages, although in practice this will depend on a number of
84e8978e6 Matthew Auld 2017-10-09  2690  	 * other factors.
a5c081662 Matthew Auld 2017-10-06  2691  	 */
a5c081662 Matthew Auld 2017-10-06  2692  	obj->mm.page_sizes.sg = 0;
a5c081662 Matthew Auld 2017-10-06  2693  	for_each_set_bit(i, &supported, ilog2(I915_GTT_MAX_PAGE_SIZE) + 1) {
a5c081662 Matthew Auld 2017-10-06  2694  		if (obj->mm.page_sizes.phys & ~0u << i)
a5c081662 Matthew Auld 2017-10-06  2695  			obj->mm.page_sizes.sg |= BIT(i);
a5c081662 Matthew Auld 2017-10-06  2696  	}
a5c081662 Matthew Auld 2017-10-06 @2697  	GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg));
f2123818f Chris Wilson 2017-10-16  2698  
f2123818f Chris Wilson 2017-10-16  2699  	spin_lock(&i915->mm.obj_lock);
f2123818f Chris Wilson 2017-10-16  2700  	list_add(&obj->mm.link, &i915->mm.unbound_list);
f2123818f Chris Wilson 2017-10-16  2701  	spin_unlock(&i915->mm.obj_lock);
03ac84f18 Chris Wilson 2016-10-28  2702  }
03ac84f18 Chris Wilson 2016-10-28  2703  

:::::: The code at line 2697 was first introduced by commit
:::::: a5c08166265adc172a4cbde8ed26a1a96ce77fb7 drm/i915: introduce page_size members

:::::: TO: Matthew Auld <matthew.auld@intel.com>
:::::: CC: Chris Wilson <chris@chris-wilson.co.uk>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  parent reply	other threads:[~2018-07-31 13:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-30 21:34 [PATCH v2 0/2] CLANG_VERSION and __diag macros Nick Desaulniers
2018-07-30 21:34 ` [PATCH v2 1/2] compiler-clang.h: Add " Nick Desaulniers
2018-07-30 23:25   ` Nathan Chancellor
2018-08-31 21:50   ` Nick Desaulniers
2018-08-31 22:16     ` Miguel Ojeda
2018-07-30 21:34 ` [PATCH v2 2/2] kernel.h: Disable -Wreturn-stack-address for _THIS_IP_ Nick Desaulniers
2018-07-30 23:25   ` Nathan Chancellor
2018-07-31 10:27   ` kbuild test robot
2018-07-31 16:48     ` Nick Desaulniers
2018-07-31 17:02       ` Kees Cook
2018-07-31 17:09         ` Nick Desaulniers
2018-07-31 18:58         ` Nick Desaulniers
2018-07-31 21:10           ` Nick Desaulniers
2018-07-31 17:02       ` Nathan Chancellor
2018-07-31 13:53   ` kbuild test robot [this message]
2018-07-31 16:55     ` Nick Desaulniers

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=201807312139.1v5egImL%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=andreyknvl@google.com \
    --cc=arnd@arndb.de \
    --cc=aryabinin@virtuozzo.com \
    --cc=avagin@openvz.org \
    --cc=bp@suse.de \
    --cc=christophe.leroy@c-s.fr \
    --cc=dwmw@amazon.co.uk \
    --cc=ghackmann@android.com \
    --cc=ghackmann@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jpoimboe@redhat.com \
    --cc=kbuild-all@01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mingo@kernel.org \
    --cc=mka@chromium.org \
    --cc=natechancellor@gmail.com \
    --cc=ndesaulniers@google.com \
    --cc=neilb@suse.com \
    --cc=paul.burton@mips.com \
    --cc=paullawrence@google.com \
    --cc=rdunlap@infradead.org \
    --cc=sandipan@linux.vnet.ibm.com \
    --cc=shorne@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=will.deacon@arm.com \
    --cc=wvw@google.com \
    --cc=yamada.masahiro@socionext.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;
as well as URLs for NNTP newsgroup(s).