From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: <46924B1B.1010308@domain.hid> References: <46924A1A.4010909@domain.hid> <1183992374.6014.84.camel@domain.hid> <46924B1B.1010308@domain.hid> Content-Type: text/plain Date: Mon, 09 Jul 2007 16:59:54 +0200 Message-Id: <1183993194.6014.87.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-core] [PATCH] __deprecated not defined for Linux 2.4 Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core On Mon, 2007-07-09 at 16:50 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Mon, 2007-07-09 at 16:45 +0200, Wolfgang Grandegger wrote: > >> Hello, > >> > >> the attached patch changes: > >> > >> 2007-07-09 Wolfgang Grandegger > >> > >> * include/asm-generic/wrappers.h: add __deprecated for Linux 2.4. > >> > > > > Merged, thanks. > > You are too fast for me - I was still test-building my approach! > > Looks rather like I picked the wrong expression for marking > rtdm_task_sleep_until deprecated. I would prefer to go for this variant > and back Wolfgang's patch out again: __deprecated is going to be useful in backporting 2.6 stuff to 2.4. This is not only a RTDM issue. > > --- include/rtdm/rtdm_driver.h (Revision 2758) > +++ include/rtdm/rtdm_driver.h (Arbeitskopie) > @@ -1009,7 +1009,7 @@ rtdm_task_sleep_abs(nanosecs_abs_t wakeu > } > > /* rtdm_task_sleep_abs shall be used instead */ > -static inline int __deprecated > +static inline int __deprecated_call__ > rtdm_task_sleep_until(nanosecs_abs_t wakeup_time) > { > return __rtdm_task_sleep(wakeup_time, XN_REALTIME); > > > But note that I'm still test-building... > > Jan > -- Philippe.