]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commit
build: Fix build with GCC 4.8.5
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 May 2022 16:37:10 +0000 (17:37 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 May 2022 17:13:21 +0000 (18:13 +0100)
commit37ea4e513a2ce0cd22f9c9a32b18d5c022e38e12
tree890b52438026bd038381ad774fa0c414bd57386a
parent0b1769d5811088b1b35c8b69b9c2ae66d05a1781
build: Fix build with GCC 4.8.5

GCC 4.8.5 complains:

  xtf/arch/x86/pv/traps.c: In function 'init_callbacks':
  xtf/arch/x86/pv/traps.c:126:13: error: initializer element is not constant
               .address = INIT_XEN_CALLBACK(__KERN_CS, _u(entry_EVTCHN)),
               ^
  xtf/arch/x86/pv/traps.c:126:13: error: (near initialization for 'cb[0].address')

Drop the static const.

Reported-by: Samuel Verschelde <stormi-xcp@ylix.fr>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/pv/traps.c