Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 2016 09:52:32 +0100
From:      Juan =?iso-8859-1?b?UmFt824=?= Molina Menor <listjm@club-internet.fr>
To:        freebsd-x11@freebsd.org, =?iso-8859-1?q?Jean-S=E9bastien_P=E9dron?= <jean-sebastien.pedron@dumbbell.fr>
Subject:   build-able drm-i915-update-38
Message-ID:  <5698B350.1080509@club-internet.fr>

next in thread | raw e-mail | index | archive | help
> On 13/01/2016 22:43, Nikola Pajkovsky wrote:
> >>/I rebuild a full kernel from scratch and it does build fine here. There />>/is no "unused variable" warning for me. Do you build a non-debug kernel />>/perhaps? I don't plan to build-test such a kernel now, I'll do it when />>/the patch is finished. />//>/Oh, everytime? I have found out, that /
> I use "make buildkernel -DKERNFAST" so only the modifed files are
> recompiled. I just rebuild the kernel from scratch this time to
> double-check if I missed a warning.
>
> >/$ cd sys/modules/drm2 />/$ make -j9 />/$ make DESTDIR=/boot/ KMODDIR=kernel.i915 install />//>/is engough (only after I have fully built and booted kernel) /
> Yes, this works fine, but this doesn't use many defaults set by GENERIC,
> such as debugging options or 32-bit support on 64-bit archs.
>
> The problem you hit is likely because I build a debug kernel (the
> variable is used) and not you (only the declaration remains).
>
> >/gen6_ggtt_bind_object() />/const int max_entries = dev_priv->mm.gtt->gtt_total_entries - 
> first_entry; />/BUG_ON(i > max_entries); />//>/Seems like BUG_ON is noop, which should not be. /
> BUG_ON() is a KASSERT() which is defined to nothing on a non-debug
> kernel. The variable should be declared in:
>
> #if defined(INVARIANTS)
> ...
> #endif
>
> If you are still willing to send a pull request, you're welcome to do
> so! I know the change is small, so if you don't feel like cloning an
> entire repository just for that, I understand and I will fix it.
>
> Unlike what I said in my previous email, the pull request should be
> against the drm-i915-update-38 branch.
>
> -- 
> Jean-Sébastien Pédron

Thanks for the explanation. It certainly explains the issue here, as I’m 
building a NODEBUG kernel. I’ll test with a GENERIC one.

Best regards,
Juan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5698B350.1080509>