Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Brad Lucier <lucier@math.purdue.edu>
To: axp-list@redhat.com
Cc: lucier@math.purdue.edu (Brad Lucier)
Subject: 2.2.17 kernel 64-bit uncleanliness
Date: Sat, 9 Sep 2000 15:57:32 -0500 (EST)	[thread overview]
Message-ID: <200009092057.PAA04451@polya.math.purdue.edu> (raw)
In-Reply-To: <Pine.LNX.4.21.0009081707160.12439-100000@talisman.mv.com> from "Rich Payne" at Sep 08, 2000 05:07:51 PM

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;




  reply	other threads:[~2000-09-09 20:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-08 21:07 ANNOUNCE Hardware Compatibility Database Rich Payne
2000-09-09 20:57 ` Brad Lucier [this message]
2000-09-11  7:22 ` Helge Kreutzmann
2000-09-11 12:15   ` Rich Payne
2000-09-11 13:40 ` Marc Zyngier
2004-04-13 12:39 ` kreutzm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox