Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Joel Fernandes
On Fri, May 22, 2020 at 04:02:26PM +0200, Peter Zijlstra wrote: > On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > > wrote: > > > > > > On a modern Linux distro, compiling the following program fails: > > > #include >

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Peter Zijlstra
On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > wrote: > > > > On a modern Linux distro, compiling the following program fails: > > #include > > #include > > #include > > #include > > > > void main() { > >

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Christian Brauner
On Fri, May 22, 2020 at 09:38:16AM -0400, Joel Fernandes wrote: > On Fri, May 22, 2020 at 03:13:55PM +0200, Christian Brauner wrote: > > On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > > > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > > > wrote: > > > > > > > > On a

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Joel Fernandes
On Fri, May 22, 2020 at 03:13:55PM +0200, Christian Brauner wrote: > On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > > wrote: > > > > > > On a modern Linux distro, compiling the following program fails: > > > #include

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-22 Thread Christian Brauner
On Thu, May 21, 2020 at 11:55:21AM -0400, Joel Fernandes wrote: > On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) > wrote: > > > > On a modern Linux distro, compiling the following program fails: > > #include > > #include > > #include > > #include > > > > void main() { > >

Re: [PATCH RFC] sched/headers: Fix sched_setattr userspace compilation issues

2020-05-21 Thread Joel Fernandes
On Thu, May 21, 2020 at 11:53 AM Joel Fernandes (Google) wrote: > > On a modern Linux distro, compiling the following program fails: > #include > #include > #include > #include > > void main() { > struct sched_attr sa; > > return; > } > > with: >