[ltp] prob in make mwave 1.0 under linux 2.2.19 (slackware 7.1)
linux-thinkpad@www.bm-soft.com
linux-thinkpad@www.bm-soft.com
Thu, 26 Jul 2001 23:00:44 -0500 (CDT)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--8323328-217703127-996206444=:1594
Content-Type: TEXT/PLAIN; charset=US-ASCII
Try this patch to mwavedd.c... For those who may have had a problem... If
this works for you, please let me know so that I can update the driver...
To apply... Put patch file in mwavem-1.0/src/drivers directory..
cd mwavem-1.0/src/drivers
patch <mwavedd.c.patch
Cheers...Paul...
--- mwavedd.c.orig Thu Jul 26 22:05:58 2001
+++ mwavedd.c Thu Jul 26 22:43:50 2001
@@ -72,6 +72,22 @@
#include <linux/proc_fs.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
static int mwave_get_info(char *buf, char **start, off_t offset, int
len);
+#else
+int mwave_read_proc(char *buf, char **start, off_t offset, int xlen, int
+ unused);
+
+static struct proc_dir_entry mwave_proc = {
+ 0, /* unsigned short low_ino */
+ 5, /* unsigned short namelen */
+ "mwave", /* const char *name */
+ S_IFREG | S_IRUGO, /* mode_t mode */
+ 1, /* nlink_t nlink */
+ 0, /* uid_t uid */
+ 0, /* gid_t gid */
+ 0, /* unsigned long size */
+ NULL, /* struct inode_operations *ops */
+ &mwave_read_proc /* int (*get_info) (...) */
+};
#endif
extern int mwave_debug;
@@ -646,19 +662,6 @@
pSettings->usUartBaseIO);
return len;
}
-
-static struct proc_dir_entry mwave_proc = {
- 0, /* unsigned short low_ino */
- 5, /* unsigned short namelen */
- "mwave", /* const char *name */
- S_IFREG | S_IRUGO, /* mode_t mode */
- 1, /* nlink_t nlink */
- 0, /* uid_t uid */
- 0, /* gid_t gid */
- 0, /* unsigned long size */
- NULL, /* struct inode_operations *ops */
- &mwave_read_proc /* int (*get_info) (...) */
-};
/*
End of /proc entry stuff (except for the calls to proc_register and
On Wed, 25 Jul 2001, Luca Pisani wrote:
> quasimodo:~$ gcc --version
> egcs-2.91.66
> quasimodo:~$ gcc -v
> Reading specs from
> /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
> Bye Luca
>
>
> paulsch@haywired.net wrote:
> >
> > Mmmm... Looks like you have a picky compiler... What does 'gcc
> > --version' give you??
> >
> > On Tue, 24 Jul 2001, Luca Pisani wrote:
> >
> > >
> > > Hi
> > > I've downloaded mwavem-1.0 for my thinkpad600E...
> > > I'm not able to compile it: details in attach
> > > Hope u can help
> > >
> > > Thanks,
> > > Bye Luca
> >
> > --
> >
> > Paul B Schroeder
> > paulsch@haywired.net
> >
> > ----- The Linux ThinkPad mailing list -----
> > The linux-thinkpad mailing list home page is at:
> > http://www.bm-soft.com/~bm/tp_mailing.html
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html
>
--
Paul B Schroeder
paulsch@haywired.net
--8323328-217703127-996206444=:1594
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="mwavedd.c.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0107262300440.1594@localhost.localdomain>
Content-Description:
Content-Disposition: attachment; filename="mwavedd.c.patch"
LS0tIG13YXZlZGQuYy5vcmlnCVRodSBKdWwgMjYgMjI6MDU6NTggMjAwMQ0K
KysrIG13YXZlZGQuYwlUaHUgSnVsIDI2IDIyOjQzOjUwIDIwMDENCkBAIC03
Miw2ICs3MiwyMiBAQA0KICNpbmNsdWRlIDxsaW51eC9wcm9jX2ZzLmg+DQog
I2lmIExJTlVYX1ZFUlNJT05fQ09ERSA+PSBLRVJORUxfVkVSU0lPTigyLDQs
MCkNCiBzdGF0aWMgaW50IG13YXZlX2dldF9pbmZvKGNoYXIgKmJ1ZiwgY2hh
ciAqKnN0YXJ0LCBvZmZfdCBvZmZzZXQsIGludCBs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SUZSRUcgfCBTX0lSVUdPLAkvKiBtb2RlX3QgbW9kZSAqLw0K
LQkxLAkJCS8qIG5saW5rX3QgbmxpbmsgKi8NCi0JMCwJCQkvKiB1aWRfdCB1
aWQgKi8NCi0JMCwJCQkvKiBnaWRfdCBnaWQgKi8NCi0JMCwJCQkvKiB1bnNp
Z25lZCBsb25nIHNpemUgKi8NCi0JTlVMTCwJCQkvKiBzdHJ1Y3QgaW5vZGVf
b3BlcmF0aW9ucyAqb3BzICovDQotCSZtd2F2ZV9yZWFkX3Byb2MJLyogaW50
ICgqZ2V0X2luZm8pICguLi4pICovDQotfTsNCiANCiAvKg0KICAgICBFbmQg
b2YgL3Byb2MgZW50cnkgc3R1ZmYgKGV4Y2VwdCBmb3IgdGhlIGNhbGxzIHRv
IHByb2NfcmVnaXN0ZXIgYW5kDQo=
--8323328-217703127-996206444=:1594--
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html