VirtualBox

Ticket #17771 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

3.13 kernel compile bug U16_MAX and U32_MAX undeclared -> fixed after (not in) 5.2.12

Reported by: gim Owned by:
Priority: trivial Component: other
Version: VirtualBox 5.2.12 Keywords:
Cc: Guest type: all
Host type: Linux

Description

VirtualBox/out/linux.amd64/release/obj/tstvboxvideo-src_mod/modesetting.c: In function ‘VBoxHGSMIGetScreenFlags’:
/VirtualBox/out/linux.amd64/release/obj/tstvboxvideo-src_mod/modesetting.c:353:32: error: ‘U16_MAX’ undeclared (first use in this function)
  if (RT_FAILURE(rc) || flags > U16_MAX)
...                                ^
VirtualBox/out/linux.amd64/release/obj/tstvboxvideo-src_mod/hgsmi_base.c: In function ‘hgsmi_query_conf’:
VirtualBox/out/linux.amd64/release/obj/tstvboxvideo-src_mod/hgsmi_base.c:163:13: error: ‘U32_MAX’ undeclared (first use in this function)
  p->value = U32_MAX;
             ^

 https://elixir.bootlin.com/linux/v3.13.11/source/include/linux/kernel.h  https://elixir.bootlin.com/linux/v3.14/source/include/linux/kernel.h

Kernel lower v3.14 doesn't contain defines:

#define U8_MAX		((u8)~0U)
#define S8_MAX		((s8)(U8_MAX>>1))
#define S8_MIN		((s8)(-S8_MAX - 1))
#define U16_MAX		((u16)~0U)
#define S16_MAX		((s16)(U16_MAX>>1))
#define S16_MIN		((s16)(-S16_MAX - 1))
#define U32_MAX		((u32)~0U)
#define S32_MAX		((s32)(U32_MAX>>1))
#define S32_MIN		((s32)(-S32_MAX - 1))
#define U64_MAX		((u64)~0ULL)
#define S64_MAX		((s64)(U64_MAX>>1))
#define S64_MIN		((s64)(-S64_MAX - 1))

Attachments

fix.patch Download (741 bytes) - added by gim 4 months ago.

Change History

Changed 4 months ago by gim

comment:1 Changed 3 months ago by michael

  • Summary changed from 3.13 kernel compile bug U16_MAX and U32_MAX undeclared to 3.13 kernel compile bug U16_MAX and U32_MAX undeclared -> fixed after (not in) 5.2.12

Sorry for the delay. Please see r72638 and the test builds:

wiki:Testbuilds

comment:2 Changed 2 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use