[Bug 278477] x11-servers/xorg-server regression (?) - hardware brightness adjustment blocked in X (T400)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Apr 2024 14:37:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278477

--- Comment #7 from jakub_lach@mailplus.pl ---
(In reply to jakub_lach from comment #6)

I somewhat suspect 8c505a02afd1720e0088135bf48f80f4c15fa171, but cannot
rollback to earlier version due to build errors -

/usr/src/sys/compat/linuxkpi/common/include/linux/ioport.h:34:9: error:
'DEFINE_RES_MEM' macro red  efined [-Werror,-Wmacro-redefined]                  
   34 | #define DEFINE_RES_MEM(_start, _size)           \                       
      |         ^                                                               
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/linuxkpi/gplv2/include/linu
 x/pci.h:12:9: note: previous definition is here                                
   12 | #define DEFINE_RES_MEM(_start, _size)           \  

<...>

/usr/src/sys/compat/linuxkpi/common/include/linux/ioport.h:40:8: error:
redefinition of 'linux_res  ource'                                              
   40 | struct resource {                                                       
      |        ^                                                                
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/linuxkpi/gplv2/include/linu
 x/pci.h:24:18: note: expanded from macro 'resource'                            
   24 | #define resource        linux_resource                                  
      |                         ^                                               
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/linuxkpi/gplv2/include/linu
 x/pci.h:19:8: note: previous definition is here                                
   19 | struct linux_resource {                                                 
      |        

<...>

/usr/src/sys/compat/linuxkpi/common/include/linux/ioport.h:46:1: error:
redefinition of 'resource_  size'                                               
   46 | resource_size(const struct resource *r)                                 
      | ^                                                                       
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/linuxkpi/gplv2/include/linu
 x/pci.h:27:1: note: previous definition is here                                
   27 | resource_size(const struct linux_resource *res)                         
      | ^

<...>

/usr/src/sys/compat/linuxkpi/common/include/linux/ioport.h:52:1: error:
redefinition of 'resource_contains'
   52 | resource_contains(struct resource *a, struct resource *b)
      | ^
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/linuxkpi/gplv2/include/linux/pci.h:33:1:
note: previous definition is here
   33 | resource_contains(struct linux_resource *a, struct linux_resource *b)
      | ^

<...>

/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/drivers/gpu/drm/i915/gem/i915_gem_object.h:43:6:
error: shift count >= width of type [-Werror,-Wshift-count-overflow]
   43 |         if (overflows_type(size, obj->base.size))
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/obj/usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.118_1/drivers/gpu/drm/i915/i915_utils.h:125:32:
note: expanded from macro 'overflows_type'
  125 |         (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
      |                                       ^  ~~~~~~~~~~~~~~~~
5 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.