From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id B90A42FB80 for ; Sat, 9 Sep 2000 16:57:35 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id QAA26828 for axp-list@listman.redhat.com; Sat, 9 Sep 2000 16:57:35 -0400 Received: from newton.math.purdue.edu (root@newton.math.purdue.edu [128.210.3.6]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA26824 for ; Sat, 9 Sep 2000 16:57:35 -0400 Received: from polya.math.purdue.edu (lucier@polya.math.purdue.edu [128.210.3.194]) by newton.math.purdue.edu (8.10.1/8.10.1/PURDUE_MATH-4.0) with ESMTP id e89KvXS28809; Sat, 9 Sep 2000 15:57:33 -0500 (EST) Received: (from lucier@localhost) by polya.math.purdue.edu (8.9.3/8.9.3/PURDUE_MATH-3.2) id PAA04451; Sat, 9 Sep 2000 15:57:32 -0500 (EST) From: Brad Lucier Message-Id: <200009092057.PAA04451@polya.math.purdue.edu> Subject: 2.2.17 kernel 64-bit uncleanliness To: axp-list@redhat.com Date: Sat, 9 Sep 2000 15:57:32 -0500 (EST) Cc: lucier@math.purdue.edu (Brad Lucier) In-Reply-To: from "Rich Payne" at Sep 08, 2000 05:07:51 PM X-Mailer: ELM [version 2.5 PL0] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors While making 2.2.17 on my alphaev6-unknown-linux-gnu system with gcc-2.95.1, I got some warnings that indicate real errors. Perhaps someone with more experience than I can get proper fixes into 2.2.18, but here is what I found and changed: * fs/lockd/xdr.c (nlm_decode_fh): Use %ld to print size_t value. * net/sunrpc/svcsock.c (svc_sendto): Ditto. (svc_recvfrom): Ditto. * drivers/scsi/aic7xxx.c (aic7xxx_handle_seqint): Convert pointer to unsigned long int and format with %lx. * arch/alpha/mm/extable.c (search_exception_table): Use ANSI C string concatenation in printk format. Brad Lucier =================================================================== RCS file: RCS/xdr.c,v retrieving revision 1.1 diff -cp -r1.1 xdr.c *** xdr.c 2000/09/09 20:36:34 1.1 --- xdr.c 2000/09/09 20:37:31 *************** nlm_decode_fh(u32 *p, struct nfs_fh *f) *** 95,101 **** if ((len = ntohl(*p++)) != sizeof(*f)) { printk(KERN_NOTICE ! "lockd: bad fhandle size %x (should be %d)\n", len, sizeof(*f)); return NULL; } --- 95,101 ---- if ((len = ntohl(*p++)) != sizeof(*f)) { printk(KERN_NOTICE ! "lockd: bad fhandle size %x (should be %ld)\n", len, sizeof(*f)); return NULL; } =================================================================== RCS file: RCS/svcsock.c,v retrieving revision 1.1 diff -cp -r1.1 svcsock.c *** svcsock.c 2000/09/09 20:38:18 1.1 --- svcsock.c 2000/09/09 20:39:43 *************** svc_sendto(struct svc_rqst *rqstp, struc *** 266,272 **** set_fs(oldfs); #endif ! dprintk("svc: socket %p sendto([%p %d... ], %d, %d) = %d\n", rqstp->rq_sock, iov[0].iov_base, iov[0].iov_len, nr, buflen, len); --- 266,272 ---- set_fs(oldfs); #endif ! dprintk("svc: socket %p sendto([%p %ld... ], %d, %d) = %d\n", rqstp->rq_sock, iov[0].iov_base, iov[0].iov_len, nr, buflen, len); *************** svc_recvfrom(struct svc_rqst *rqstp, str *** 326,332 **** set_fs(oldfs); #endif ! dprintk("svc: socket %p recvfrom(%p, %d) = %d\n", rqstp->rq_sock, iov[0].iov_base, iov[0].iov_len, len); return len; --- 326,332 ---- set_fs(oldfs); #endif ! dprintk("svc: socket %p recvfrom(%p, %ld) = %d\n", rqstp->rq_sock, iov[0].iov_base, iov[0].iov_len, len); return len; =================================================================== RCS file: RCS/aic7xxx.c,v retrieving revision 1.1 diff -cp -r1.1 aic7xxx.c *** aic7xxx.c 2000/09/09 20:32:23 1.1 --- aic7xxx.c 2000/09/09 20:33:58 *************** aic7xxx_handle_seqint(struct aic7xxx_hos *** 5250,5257 **** if(!(scb->flags & SCB_ACTIVE) || (scb->cmd == NULL)) { printk(WARN_LEAD "invalid scb during WIDE_RESIDUE flags:0x%x " ! "scb->cmd:0x%x\n", p->host_no, CTL_OF_SCB(scb), ! scb->flags, (unsigned int)scb->cmd); break; } --- 5250,5257 ---- if(!(scb->flags & SCB_ACTIVE) || (scb->cmd == NULL)) { printk(WARN_LEAD "invalid scb during WIDE_RESIDUE flags:0x%x " ! "scb->cmd:0x%lx\n", p->host_no, CTL_OF_SCB(scb), ! scb->flags, (unsigned long int)scb->cmd); break; } =================================================================== RCS file: RCS/extable.c,v retrieving revision 1.1 diff -cp -r1.1 extable.c *** extable.c 2000/09/09 20:40:31 1.1 --- extable.c 2000/09/09 20:41:37 *************** search_exception_table(unsigned long add *** 88,94 **** */ ret = search_exception_table_without_gp(addr); if (ret) { ! printk(KERN_ALERT, "%s: [%lx] EX_TABLE search fail with" "exc frame GP, success with raw GP\n", current->comm, addr); return ret; --- 88,94 ---- */ ret = search_exception_table_without_gp(addr); if (ret) { ! printk(KERN_ALERT "%s: [%lx] EX_TABLE search fail with" "exc frame GP, success with raw GP\n", current->comm, addr); return ret;