All of lore.kernel.org
 help / color / mirror / Atom feed
From: jason@openinformatics.com (Jason E. Stewart)
To: Jonas Smedegaard <js@debian.org>
Cc: debian@jones.dk, linuxppc-dev@lists.linuxppc.org,
	debian-powerpc@lists.debian.org
Subject: Re: IrDA-patched binaries
Date: 11 Nov 2001 16:10:00 -0700	[thread overview]
Message-ID: <87y9lc6h13.fsf@openinformatics.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0111012312360.888-100000@auryn.jones.dk>


"Jonas Smedegaard" <dr@jones.dk> writes:

> I have made available kernel and irda-packages with the irda-hacks added
> to make .

I was totally thrilled to see this. Because of reiserfs, I need to
compile my own kernel, so I grabbed the patches a couple of weeks
ago. I just had time to look at them and it seems that parameters.h
has changed a *lot* since this patch was made.

>From BenH's latest kernel:

typedef union {
	char   *c;
	__u32   i;
	__u32 *ip;
} irda_pv_t;

from the patch:

+#if   defined(__BIG_ENDIAN) 	/* TODO: not 64bit safe (when casting __u32 to ptr) */
 typedef union {
 	char   *c;
-	__u8    b;
-	__u16   s;
+	struct {
+	__u8    mm,ml,lm,ll;	/* most to least significant */
+	}       b;
+	struct {
+	__u16   m,l;		/* most to least significant */
+	}       s;
 	__u32   i;
 	__u8  *bp;
 	__u16 *sp;
 	__u32 *ip;
 } irda_pv_t;
+#elif defined(__LITTLE_ENDIAN) 	/* TODO: not 64bit safe */
+typedef union {
+	char   *c;
+	struct {
+	__u8    ll,lm,ml,mm;	/* least to most significant */
+	}       b;
+	struct {
+	__u16   l,m;		/* least to most significant */
+	}       s;
+	__u32   i;
+	__u8  *bp;
+	__u16 *sp;
+	__u32 *ip;
+} irda_pv_t;
+#else
+#error "unknown endianness"
+#endif


So it looks like the irda_pv_t has lost the *sp,*bp,s, and b fields
since the patch was made. Since the primary change of the patch is to
make the b and s fields into structs, I don't really have a clue how
to procede.

Can someone suggest anything?

Thanks,
jas.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2001-11-11 23:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01 22:24 IrDA-patched binaries Jonas Smedegaard
2001-11-01 22:30 ` [Debian] " Jonas Smedegaard
2001-11-11 23:10 ` Jason E. Stewart [this message]
2001-11-12  9:52   ` Jonas Smedegaard
2001-11-12 10:00   ` Michel Dänzer
2001-11-12 10:39     ` Jonas Smedegaard
2001-11-12 16:39     ` Jason E. Stewart
2001-11-12 20:47       ` Michel Dänzer
2001-11-12 21:16         ` Jason E. Stewart

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=87y9lc6h13.fsf@openinformatics.com \
    --to=jason@openinformatics.com \
    --cc=debian-powerpc@lists.debian.org \
    --cc=debian@jones.dk \
    --cc=js@debian.org \
    --cc=linuxppc-dev@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.