Re: [PATCH] kernel: mark all struct k_clock instances const

2017-05-23 Thread Christoph Hellwig
On Tue, May 23, 2017 at 09:01:14AM +0200, Thomas Gleixner wrote: > > We can require the driver to be built into the kernel, which seems pretty > > reasonable for a timer. It's only selectable on IA64 anyway. > > That still requires that we "register" the clock as it's SN2 specific and > we don't

Re: [PATCH] kernel: mark all struct k_clock instances const

2017-05-23 Thread Thomas Gleixner
On Tue, 23 May 2017, Christoph Hellwig wrote: > On Tue, May 23, 2017 at 12:17:31AM +0200, Thomas Gleixner wrote: > > On Mon, 15 May 2017, Christoph Hellwig wrote: > > > > > And keep a pointer to it instead of a copy in the posix_clocks array. > > > > > > Based on similar changes in the Grsecurity

Re: [PATCH] kernel: mark all struct k_clock instances const

2017-05-22 Thread Christoph Hellwig
On Tue, May 23, 2017 at 12:17:31AM +0200, Thomas Gleixner wrote: > On Mon, 15 May 2017, Christoph Hellwig wrote: > > > And keep a pointer to it instead of a copy in the posix_clocks array. > > > > Based on similar changes in the Grsecurity patchset, but redone from > > scratch including a few twe

Re: [PATCH] kernel: mark all struct k_clock instances const

2017-05-22 Thread Thomas Gleixner
On Mon, 15 May 2017, Christoph Hellwig wrote: > And keep a pointer to it instead of a copy in the posix_clocks array. > > Based on similar changes in the Grsecurity patchset, but redone from > scratch including a few tweaks. Hmm, that adds another level of indirection, but yes, we can do it. >

[PATCH] kernel: mark all struct k_clock instances const

2017-05-15 Thread Christoph Hellwig
And keep a pointer to it instead of a copy in the posix_clocks array. Based on similar changes in the Grsecurity patchset, but redone from scratch including a few tweaks. Signed-off-by: Christoph Hellwig --- drivers/char/mmtimer.c | 4 +- include/linux/posix-timers.h | 7 +- kerne