public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerhard Wiesinger <lists@wiesinger.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Moxa Driver Update to 2.6.30
Date: Wed, 16 Sep 2009 07:32:48 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0909160732001.30568@bbs.intern> (raw)
In-Reply-To: <alpine.LFD.2.00.0909150738590.29043@bbs.intern>

Hello,

Noone has an idea?

Thnx.

Ciao,
Gerhard


--
http://www.wiesinger.com/


On Tue, 15 Sep 2009, Gerhard Wiesinger wrote:

> Hello,
>
> In Kernel 2.6.29 the moxa 5110 driver compiled well. In 2.6.30 some 
> deprecated definitions have been removed.
>
> /usr/src/kernels/2.6.29.6-217.2.16.fc11.x86_64/include/linux/sched.h:
> struct signal_struct {
>
>        union {
>                pid_t session __deprecated;
>                pid_t __session;
>        };
>
> static inline pid_t task_session_nr(struct task_struct *tsk)
> {
>        return tsk->signal->__session;
> }
>
> Code is used in the way:
> npreal2.h:
> #if (LINUX_VERSION_CODE >= VERSION_CODE(2,6,5))
> #if (LINUX_VERSION_CODE >= VERSION_CODE(2,6,20))
> #if (LINUX_VERSION_CODE >= VERSION_CODE(2,6,26))
> #define MX_SESSION()    task_session_nr(current)
> #else
> #define MX_SESSION()    (pid_t)tty->session
> #endif
> #else
> #define MX_SESSION()    current->signal->session
> #endif
> #else
> #define MX_SESSION()    current->session
> #endif
>
> What's the correct change for the definition of MX_SESSION in 2.6.30?
> (Didn't find any useful replacement)
>
> Moxa driver files source files can be found at:
> http://www.moxa.com/drivers/DN_Driver/Linux/npreal2_1.16_Build_09030513.tgz
>
> Thnx.
>
> Ciao,
> Gerhard
>
> --
> http://www.wiesinger.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

      reply	other threads:[~2009-09-16  5:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  5:48 Moxa Driver Update to 2.6.30 Gerhard Wiesinger
2009-09-16  5:32 ` Gerhard Wiesinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.0909160732001.30568@bbs.intern \
    --to=lists@wiesinger.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox