build-able drm-i915-update-38

Nikola Pajkovsky n.pajkovsky at gmail.com
Wed Jan 13 21:43:42 UTC 2016


Jean-Sébastien Pédron <jean-sebastien.pedron at dumbbell.fr> writes:

> On 13/01/2016 09:27, Nikola Pajkovsky wrote:
>> I was trying build HEAD drm-i915-update-38, and I found it, it does not
>> build. Can we please push only changes, which does build?
>
> Hi!
>
> 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

  $ cd sys/modules/drm2
  $ make -j9
  $ make DESTDIR=/boot/ KMODDIR=kernel.i915 install

is engough (only after I have fully built and booted kernel)

===> drm2 (all)
Warning: Object directory not changed from original /usr/home/npa/freebsd-base-graphics/sys/modules/drm2/drm2
===> i915kms (all)
Warning: Object directory not changed from original /usr/home/npa/freebsd-base-graphics/sys/modules/drm2/i915kms
cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I/usr/home/npa/freebsd-base-graphics/sys/modules/drm2/i915kms/../../.. -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-unknown-pragmas  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function  -Wno-error-pointer-sign -Wno-error-shift-negative-value  -mno-aes -mno-avx  -std=iso9899:1999 -c /usr/home/npa/freebsd-base-graphics/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_gtt.c -o i915_gem_gtt.o
/usr/home/npa/freebsd-base-graphics/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_gtt.c:451:12: error: unused variable 'max_entries' [-Werror,-Wunused-variable]
        const int max_entries = dev_priv->mm.gtt->gtt_total_entries - first_entry;
                  ^
1 error generated.
*** Error code 1

code in i915_gem_gtt.c

  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.

>> I can send you patch to fix it later on today. I'm going to try start
>> syncing drm with v3.9 today. Where do you want me to send patches,
>> freebsd-x11 or pull request in github?
>
> For the warning, it can be a pull request on the drm-i915-update-38
> branch. I will create drm-next-3.9 branch too for you to start.

Ok, thanks.


More information about the freebsd-x11 mailing list