NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/53924: Compiling /sys/modules fails in i915drmkms on -current i386



>Number:         53924
>Category:       kern
>Synopsis:       Compiling /sys/modules fails in i915drmkms on -current i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 29 20:40:00 +0000 2019
>Originator:     Onno van der Linden
>Release:        NetBSD 8.99.32
>Organization:
>Environment:
System: NetBSD sheep 8.99.24 NetBSD 8.99.24 (SHEEPKMS) #4: Sat Aug 11 11:29=
:18 CEST 2018 onno@sheep:/usr/src/sys/arch/i386/compile/SHEEPKMS i386
Architecture: i386
Machine: i386
>Description:
Compiling /sys/modules fails -current/i386 (sources from Jan 29 2019)
for i915drmkms in /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:
#   compile  i915drmkms/intel_dsi.o
/usr/tools/bin/i486--netbsdelf-gcc -O2 -g   -std=3Dgnu99    -Wall -Wstrict-=
prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem=
-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch =
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sig=
n-compare -Werror -Wno-shadow   -ffreestanding -pipe  -march=3Di686 -fno-st=
rict-aliasing -Wno-pointer-sign -msoft-float -mno-mmx -mno-sse -mno-avx -fn=
o-omit-frame-pointer -msoft-float -mno-mmx -mno-sse -mno-avx -fno-omit-fram=
e-pointer   -I/usr/src/common/include --sysroot=3D/ -I/usr/src/sys/external=
/bsd/drm2/include -I/usr/src/sys/external/bsd/common/include -I/usr/src/sys=
/external/bsd/drm2/dist/include -I/usr/src/sys/external/bsd/drm2/dist/inclu=
de/drm -I/usr/src/sys/external/bsd/drm2/dist/uapi -I/usr/src/sys/external/b=
sd/drm2/dist -D__KERNEL__ -DCONFIG_BACKLIGHT_CLASS_DEVICE=3D0 -DCONFIG_BACK=
LIGHT_CLASS_DEVICE_MODULE=3D0 -DCONFIG_DRM_FBDEV_EMULATION=3D0 -DCONFIG_FB=
=3D0 -DDIAGNOSTIC -I/usr/src/sys/sys/modules/drmkms -I/usr/src/sys/external=
/bsd/drm2/i915drm -I/usr/src/sys/external/bsd/drm2/dist/drm/i915 -DCONFIG_D=
RM_I915_FBDEV=3D1 -DCONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=3D0 -DNACPICA=3D=
1 -DNVGA=3D1 -I/usr/src/common/include  -nostdinc -I. -I/usr/src/sys/module=
s/i915drmkms -isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem /usr=
/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESC=
R -c    /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c
In file included from /usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_ds=
i.c:42:0:
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.h:107:23: error: fie=
ld 'base' has incomplete type
  struct mipi_dsi_host base;
                       ^~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:97:25: error: 'str=
uct mipi_dsi_msg' declared inside parameter list will not be visible outsid=
e of this definition or declaration [-Werror]
            const struct mipi_dsi_msg *msg)
                         ^~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: In function 'inte=
l_dsi_host_transfer':
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:103:25: error: sto=
rage size of 'packet' isn't known
  struct mipi_dsi_packet packet;
                         ^~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:108:8: error: impl=
icit declaration of function 'mipi_dsi_create_packet' [-Werror=3Dimplicit-f=
unction-declaration]
  ret =3D mipi_dsi_create_packet(&packet, msg);
        ^~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:115:9: error: dere=
ferencing pointer to incomplete type 'const struct mipi_dsi_msg'
  if (msg->flags & MIPI_DSI_MSG_USE_LPM) {
         ^~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:115:19: error: 'MI=
PI_DSI_MSG_USE_LPM' undeclared (first use in this function)
  if (msg->flags & MIPI_DSI_MSG_USE_LPM) {
                   ^~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:115:19: note: each=
 undeclared identifier is reported only once for each function it appears in
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:105:21: error: var=
iable 'data' set but not used [-Werror=3Dunused-but-set-variable]
  const u8 *header, *data;
                     ^~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:103:25: error: unu=
sed variable 'packet' [-Werror=3Dunused-variable]
  struct mipi_dsi_packet packet;
                         ^~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: At top level:
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:172:21: error: var=
iable 'intel_dsi_host_ops' has initializer but incomplete type
 static const struct mipi_dsi_host_ops intel_dsi_host_ops =3D {
                     ^~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:173:2: error: unkn=
own field 'attach' specified in initializer
  .attach =3D intel_dsi_host_attach,
  ^
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:173:12: error: exc=
ess elements in struct initializer [-Werror]
  .attach =3D intel_dsi_host_attach,
            ^~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:173:12: note: (nea=
r initialization for 'intel_dsi_host_ops')
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:174:2: error: unkn=
own field 'detach' specified in initializer
  .detach =3D intel_dsi_host_detach,
  ^
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:174:12: error: exc=
ess elements in struct initializer [-Werror]
  .detach =3D intel_dsi_host_detach,
            ^~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:174:12: note: (nea=
r initialization for 'intel_dsi_host_ops')
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:175:2: error: unkn=
own field 'transfer' specified in initializer
  .transfer =3D intel_dsi_host_transfer,
  ^
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:175:14: error: exc=
ess elements in struct initializer [-Werror]
  .transfer =3D intel_dsi_host_transfer,
              ^~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:175:14: note: (nea=
r initialization for 'intel_dsi_host_ops')
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: In function 'inte=
l_dsi_host_init':
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:199:26: error: der=
eferencing pointer to incomplete type 'struct mipi_dsi_device'
  device =3D kzalloc(sizeof(*device), GFP_KERNEL);
                          ^~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: In function 'inte=
l_dsi_pre_enable':
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:472:7: error: vari=
able 'pipe' has initializer but incomplete type
  enum pipe pipe =3D intel_crtc->pipe;
       ^~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:472:12: error: sto=
rage size of 'pipe' isn't known
  enum pipe pipe =3D intel_crtc->pipe;
            ^~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:480:3: error: impl=
icit declaration of function 'gpiod_set_value_cansleep' [-Werror=3Dimplicit=
-function-declaration]
   gpiod_set_value_cansleep(intel_dsi->gpio_panel, 1);
   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:472:12: error: unu=
sed variable 'pipe' [-Werror=3Dunused-variable]
  enum pipe pipe =3D intel_crtc->pipe;
            ^~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: In function 'inte=
l_dsi_encoder_destroy':
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:1093:3: error: imp=
licit declaration of function 'gpiod_put' [-Werror=3Dimplicit-function-decl=
aration]
   gpiod_put(intel_dsi->gpio_panel);
   ^~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: In function 'inte=
l_dsi_init':
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:1215:4: error: imp=
licit declaration of function 'gpiod_get' [-Werror=3Dimplicit-function-decl=
aration]
    gpiod_get(dev->dev, "panel", GPIOD_OUT_HIGH);
    ^~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:1215:33: error: 'G=
PIOD_OUT_HIGH' undeclared (first use in this function)
    gpiod_get(dev->dev, "panel", GPIOD_OUT_HIGH);
                                 ^~~~~~~~~~~~~~
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c: At top level:
/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_dsi.c:172:39: error: sto=
rage size of 'intel_dsi_host_ops' isn't known
 static const struct mipi_dsi_host_ops intel_dsi_host_ops =3D {
                                       ^~~~~~~~~~~~~~~~~~
make: stopped in /usr/src/sys/modules/i915drmkms
>How-To-Repeat:
Compile -current (Jan 29 2019 sources) on i386
>Fix:
workaround is make -i.
looks like additional sources are necessary for the
compile to complete.



Home | Main Index | Thread Index | Old Index