[lkml]   [2017]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/4] x86, selftests, mpx: fix up weird arrays

* Dave Hansen <> wrote:

> The MPX hardware data structurse are defined in a weird way: they define
> their size in bytes and then union that with the type with which we want
> to access them.
> Yes, this is weird, but it does work. But, new GCC's complain that we
> are accessing the array out of bounds. Just make it a zero-sized array
> so gcc will stop complaining. There was not really a bug here.

Note, I've added your missing Signed-off-by line.



 \ /
  Last update: 2017-11-21 09:32    [W:0.072 / U:4.740 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site