From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <070f17e918f503be8dc1d98cf63b3b50.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199704231725.MAA15629@stommel.tamu.edu> Date: Wed, 23 Apr 1997 12:25:53 -0500 (CDT) From: Richard Henderson Subject: Re: PCMCIA compiling on UDB/RH4.1 (new kernel probs) In-Reply-To: <199704231520.KAA25100@dfw-ix14.ix.netcom.com> > (1) Is this the same libc/glibc mismatch that plagued RH4.0? Yes. > (2) Has anybody re-compiled pcmcia to work with 2.0.30 yet? I produced a small set of patches (appended) that I gave to Erik and the pcmcia maintainer that got pcmcia-2.9.2 to work with both 2.0.27 and 2.1.33 -- I would assume it still works with 2.0.30. Oh, if you are using my modutils, you must use at least version 2.1.34 wherein I work around a bug in the 2.7.0.2 gas. r~ diff -rup pcmcia-cs-2.9.2/cardmgr/y.tab.h pcmcia-cs-2.9.2-rth/cardmgr/y.tab.h --- pcmcia-cs-2.9.2/cardmgr/y.tab.h Fri Mar 21 03:04:38 1997 +++ pcmcia-cs-2.9.2-rth/cardmgr/y.tab.h Sat Apr 12 19:41:38 1997 @@ -26,7 +26,7 @@ #define NUMBER 282 typedef union { char *str; - int num; + long num; struct device_info_t *device; struct card_info_t *card; struct mtd_ident_t *mtd; diff -rup pcmcia-cs-2.9.2/cardmgr/yacc_config.c pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.c --- pcmcia-cs-2.9.2/cardmgr/yacc_config.c Fri Mar 21 03:04:38 1997 +++ pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.c Sat Apr 12 19:41:38 1997 @@ -37,7 +37,7 @@ static int add_module(device_info_t *car #line 35 "yacc_config.y" typedef union { char *str; - int num; + long num; struct device_info_t *device; struct card_info_t *card; struct mtd_ident_t *mtd; diff -rup pcmcia-cs-2.9.2/cardmgr/yacc_config.y pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.y --- pcmcia-cs-2.9.2/cardmgr/yacc_config.y Fri Mar 21 02:25:11 1997 +++ pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.y Sat Apr 12 19:36:25 1997 @@ -34,7 +34,7 @@ static int add_module(device_info_t *car %union { char *str; - int num; + long num; struct device_info_t *device; struct card_info_t *card; struct mtd_ident_t *mtd; diff -rup pcmcia-cs-2.9.2/include/pcmcia/k_compat.h pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h --- pcmcia-cs-2.9.2/include/pcmcia/k_compat.h Wed Mar 12 14:23:34 1997 +++ pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h Sat Apr 12 19:47:14 1997 @@ -78,6 +78,7 @@ char kernel_version[] = UTS_RELEASE; #if (LINUX_VERSION_CODE > VERSION(2,1,16)) #define AUTOCONF_INCLUDED #define EXPORT_SYMTAB +#define CONFIG_MODULES #endif #ifdef CONFIG_MODVERSIONS #define MODVERSIONS 1 @@ -127,7 +128,7 @@ char kernel_version[] = UTS_RELEASE; #endif #ifdef __alpha__ -#define get_user(x, ptr) __get_user(x, ptr) +#define get_user(x, ptr) ((x) = __get_user((ptr), sizeof(*(ptr)))) #else #define get_user(x, ptr) \ ((sizeof(*ptr) == 4) ? (x = get_fs_long(ptr)) : \ diff -rup pcmcia-cs-2.9.2/modules/Makefile pcmcia-cs-2.9.2-rth/modules/Makefile --- pcmcia-cs-2.9.2/modules/Makefile Tue Nov 26 02:21:58 1996 +++ pcmcia-cs-2.9.2-rth/modules/Makefile Sat Apr 12 19:40:25 1997 @@ -19,6 +19,11 @@ ifdef CONFIG_MODVERSIONS XFLAGS := $(XFLAGS) $(MFLAG) endif +ifdef CONFIG_ALPHA_LCA +CFLAGS += -ffixed-8 +endif + + SRCS = \ i82365.c tcic.c cs.c cistpl.c rsrc_mgr.c bulkmem.c ds.c \ serial_cs.c pcmem_cs.c memory_cs.c ftl_cs.c \ diff -rup pcmcia-cs-2.9.2/modules/ds.c pcmcia-cs-2.9.2-rth/modules/ds.c --- pcmcia-cs-2.9.2/modules/ds.c Sun Mar 16 15:04:09 1997 +++ pcmcia-cs-2.9.2-rth/modules/ds.c Sat Apr 12 19:36:25 1997 @@ -59,7 +59,7 @@ static unsigned int ds_poll(struct file static int ds_ioctl(struct inode * inode, struct file * file, u_int cmd, u_long arg); static int ds_open(struct inode * inode, struct file * file); -static void ds_release(struct inode * inode, struct file * file); +static int ds_release(struct inode * inode, struct file * file); typedef struct driver_info_t { dev_info_t *dev_info; @@ -548,7 +548,7 @@ static int ds_open(struct inode *inode, /*====================================================================*/ -static void ds_release(struct inode *inode, struct file *file) +static int ds_release(struct inode *inode, struct file *file) { socket_t i = MINOR(inode->i_rdev); socket_info_t *s; @@ -559,11 +559,11 @@ static void ds_release(struct inode *ino printk(KERN_DEBUG "ds_release(socket %d)\n", i); #endif if ((i >= sockets) || (sockets == 0)) - return; + return 0; s = &socket_table[i]; user = file->private_data; if (CHECK_USER(user)) - return; + return 0; /* Unlink user data structure */ if ((file->f_flags & O_ACCMODE) != O_RDONLY) @@ -572,12 +572,13 @@ static void ds_release(struct inode *ino for (link = &s->user; *link; link = &(*link)->next) if (*link == user) break; if (link == NULL) - return; + return 0; *link = user->next; user->user_magic = 0; kfree_s(user, sizeof(user_info_t)); MOD_DEC_USE_COUNT; + return 0; } /* ds_release */ /*====================================================================*/ diff -rup pcmcia-cs-2.9.2/modules/ftl_cs.c pcmcia-cs-2.9.2-rth/modules/ftl_cs.c --- pcmcia-cs-2.9.2/modules/ftl_cs.c Sun Mar 16 15:08:45 1997 +++ pcmcia-cs-2.9.2-rth/modules/ftl_cs.c Sat Apr 12 19:36:25 1997 @@ -143,7 +143,7 @@ static int ftl_blocksizes[MINOR_NR(MAX_D static int ftl_ioctl(struct inode *inode, struct file *file, u_int cmd, u_long arg); static int ftl_open(struct inode *inode, struct file *file); -static void ftl_close(struct inode *inode, struct file *file); +static int ftl_close(struct inode *inode, struct file *file); static struct file_operations ftl_blk_fops = { NULL, /* lseek */ @@ -1062,7 +1062,7 @@ static int ftl_open(struct inode *inode, /*====================================================================*/ -static void ftl_close(struct inode *inode, struct file *file) +static int ftl_close(struct inode *inode, struct file *file) { dev_link_t *link; int minor = MINOR(inode->i_rdev); @@ -1122,6 +1122,7 @@ static void ftl_close(struct inode *inod } MOD_DEC_USE_COUNT; + return 0; } /* ftl_close */ diff -rup pcmcia-cs-2.9.2/modules/i82365.c pcmcia-cs-2.9.2-rth/modules/i82365.c --- pcmcia-cs-2.9.2/modules/i82365.c Fri Mar 21 11:57:51 1997 +++ pcmcia-cs-2.9.2-rth/modules/i82365.c Sat Apr 12 19:36:25 1997 @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include diff -rup pcmcia-cs-2.9.2/modules/memory_cs.c pcmcia-cs-2.9.2-rth/modules/memory_cs.c --- pcmcia-cs-2.9.2/modules/memory_cs.c Sun Mar 16 15:10:55 1997 +++ pcmcia-cs-2.9.2-rth/modules/memory_cs.c Sat Apr 12 19:36:25 1997 @@ -108,8 +108,8 @@ static FS_SIZE_T memory_read(struct inod static FS_SIZE_T memory_write(struct inode *inode, struct file *file, CONST char *buf, U_FS_SIZE_T count); static int memory_open(struct inode *inode, struct file *file); -static void memory_close(struct inode *inode, struct file *file); -static void memory_blk_close(struct inode *inode, struct file *file); +static int memory_close(struct inode *inode, struct file *file); +static int memory_blk_close(struct inode *inode, struct file *file); static struct file_operations memory_chr_fops = { NULL, /* lseek */ @@ -485,7 +485,7 @@ static int memory_open(struct inode *ino /*====================================================================*/ -static void memory_close(struct inode *inode, struct file *file) +static int memory_close(struct inode *inode, struct file *file) { dev_link_t *link; int minor = MINOR(inode->i_rdev); @@ -508,17 +508,18 @@ static void memory_close(struct inode *i } MOD_DEC_USE_COUNT; + return 0; } /* memory_close */ -static void memory_blk_close(struct inode *inode, struct file *file) +static int memory_blk_close(struct inode *inode, struct file *file) { fsync_dev(inode->i_rdev); #if (LINUX_VERSION_CODE >= VERSION(1,3,0)) invalidate_inodes(inode->i_rdev); #endif invalidate_buffers(inode->i_rdev); - memory_close(inode, file); + return memory_close(inode, file); } /*====================================================================== diff -rup pcmcia-cs-2.9.2/modules/pcmem_cs.c pcmcia-cs-2.9.2-rth/modules/pcmem_cs.c --- pcmcia-cs-2.9.2/modules/pcmem_cs.c Sun Mar 16 15:08:20 1997 +++ pcmcia-cs-2.9.2-rth/modules/pcmem_cs.c Sat Apr 12 19:36:25 1997 @@ -114,8 +114,8 @@ static FS_SIZE_T pcmem_read(struct inode static FS_SIZE_T pcmem_write(struct inode *inode, struct file *file, CONST char *buf, U_FS_SIZE_T count); static int pcmem_open(struct inode *inode, struct file *file); -static void pcmem_close(struct inode *inode, struct file *file); -static void pcmem_blk_close(struct inode *inode, struct file *file); +static int pcmem_close(struct inode *inode, struct file *file); +static int pcmem_blk_close(struct inode *inode, struct file *file); static struct file_operations pcmem_chr_fops = { NULL, /* lseek */ @@ -507,7 +507,7 @@ static int pcmem_open(struct inode *inod /*====================================================================*/ -static void pcmem_close(struct inode *inode, struct file *file) +static int pcmem_close(struct inode *inode, struct file *file) { dev_link_t *link; @@ -517,20 +517,21 @@ static void pcmem_close(struct inode *in #endif link = dev_table[DEVICE_NR(inode->i_rdev)]; - if (link == NULL) return; + if (link == NULL) return 0; MOD_DEC_USE_COUNT; + return 0; } /* pcmem_close */ -static void pcmem_blk_close(struct inode *inode, struct file *file) +static int pcmem_blk_close(struct inode *inode, struct file *file) { fsync_dev(inode->i_rdev); #if (LINUX_VERSION_CODE >= VERSION(1,3,0)) invalidate_inodes(inode->i_rdev); #endif invalidate_buffers(inode->i_rdev); - pcmem_close(inode, file); + return pcmem_close(inode, file); } /*====================================================================== diff -rup pcmcia-cs-2.9.2/modules/tcic.c pcmcia-cs-2.9.2-rth/modules/tcic.c --- pcmcia-cs-2.9.2/modules/tcic.c Sun Mar 16 15:07:11 1997 +++ pcmcia-cs-2.9.2-rth/modules/tcic.c Sat Apr 12 19:36:25 1997 @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include diff -rup pcmcia-cs-2.9.2/modules/xircnw_cs.c pcmcia-cs-2.9.2-rth/modules/xircnw_cs.c --- pcmcia-cs-2.9.2/modules/xircnw_cs.c Sun Mar 16 15:05:53 1997 +++ pcmcia-cs-2.9.2-rth/modules/xircnw_cs.c Sat Apr 12 19:36:25 1997 @@ -1415,4 +1415,3 @@ set_multicast_list(struct device *dev, i wait_WOC(iobase); } #endif - -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com