Re: static in ze kernel

2016-05-08 Thread Stefan Fritsch
On Friday 29 April 2016 14:09:23, Mark Kettenis wrote: > I think we should simply continue the current practice of not using > static in the kernel. I mean, what is the benefit of abandoning > that practice if you disable the optimizations that compiler would > make anyway? You get a clear separa

Re: static in ze kernel

2016-04-29 Thread Mark Kettenis
> Date: Fri, 29 Apr 2016 13:41:00 +0200 > From: Martin Pieuchot > > On 28/04/16(Thu) 14:49, Mark Kettenis wrote: > > > Date: Thu, 28 Apr 2016 13:50:53 +0200 > > > From: Martin Pieuchot > > > > > > The reason why we do not use 'static' in the kernel is no longer valid > > > since all our platfor

Re: static in ze kernel

2016-04-29 Thread Martin Pieuchot
On 28/04/16(Thu) 14:49, Mark Kettenis wrote: > > Date: Thu, 28 Apr 2016 13:50:53 +0200 > > From: Martin Pieuchot > > > > The reason why we do not use 'static' in the kernel is no longer valid > > since all our platforms are ELF. ddb(4) handle them just fine. > > > > Here's an example after sett

Re: static in ze kernel

2016-04-29 Thread Otto Moerbeek
On Fri, Apr 29, 2016 at 08:54:51AM +0200, Otto Moerbeek wrote: > On Fri, Apr 29, 2016 at 04:43:56PM +1000, David Gwynne wrote: > > > > > > On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > > > > > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 > > >> From: Martin Pieuchot > > >> > > >> The reason w

Re: static in ze kernel

2016-04-28 Thread Jonathan Gray
On Fri, Apr 29, 2016 at 04:43:56PM +1000, David Gwynne wrote: > > > On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > > > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 > >> From: Martin Pieuchot > >> > >> The reason why we do not use 'static' in the kernel is no longer valid > >> since all our platf

Re: static in ze kernel

2016-04-28 Thread Otto Moerbeek
On Fri, Apr 29, 2016 at 04:43:56PM +1000, David Gwynne wrote: > > > On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > > > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 > >> From: Martin Pieuchot > >> > >> The reason why we do not use 'static' in the kernel is no longer valid > >> since all our plat

Re: static in ze kernel

2016-04-28 Thread David Gwynne
> On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 >> From: Martin Pieuchot >> >> The reason why we do not use 'static' in the kernel is no longer valid >> since all our platforms are ELF. ddb(4) handle them just fine. >> >> Here's an example after se

Re: static in ze kernel

2016-04-28 Thread Mark Kettenis
> Date: Thu, 28 Apr 2016 13:50:53 +0200 > From: Martin Pieuchot > > The reason why we do not use 'static' in the kernel is no longer valid > since all our platforms are ELF. ddb(4) handle them just fine. > > Here's an example after setting 'static' in the uhci(4) driver: > > $ nm /bsd |g

static in ze kernel

2016-04-28 Thread Martin Pieuchot
The reason why we do not use 'static' in the kernel is no longer valid since all our platforms are ELF. ddb(4) handle them just fine. Here's an example after setting 'static' in the uhci(4) driver: $ nm /bsd |grep uhci_poll_hub 81107080 t uhci_poll_hub $