Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 1999 08:51:33 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/nfs nfs_serv.c
Message-ID:  <199912151651.IAA32041@apollo.backplane.com>
References:  <199912131734.JAA02524@freefall.freebsd.org> <14423.40355.215768.533614@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
: >   Revision  Changes    Path
: >   1.90      +78 -2     src/sys/nfs/nfs_serv.c
:
:This introduces a 32/64-bit problem on alphas:
:
:cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I/usr/include  -DKERNEL -include opt_global.h -D_KERNEL   -mno-fp-regs -Wa,-mev56  ../../nfs/nfs_serv.c
:../../nfs/nfs_serv.c: In function `nfsrv_read':
:../../nfs/nfs_serv.c:874: warning: cast from pointer to integer of different size
:
:
:How about casting to a vm_offset_t?
:
:Eg:

    Try (int)(vm_offset_t).  We converting the pointer to an int only
    to generate a hash index so we don't care if we lose bits.  If that
    removes the warning for alpha compilation I'll commit it.

						-Matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912151651.IAA32041>