From owner-freebsd-current@FreeBSD.ORG Fri Apr 29 12:26:55 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF3C7106566B for ; Fri, 29 Apr 2011 12:26:55 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 61E508FC08 for ; Fri, 29 Apr 2011 12:26:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAD2uuk2DaFvO/2dsb2JhbACEUaIriHGrLpEbhH2BAQSOaIZ4hz4 X-IronPort-AV: E=Sophos;i="4.64,287,1301889600"; d="scan'208";a="119058919" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 29 Apr 2011 08:26:53 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id EC1F0B3F31; Fri, 29 Apr 2011 08:26:53 -0400 (EDT) Date: Fri, 29 Apr 2011 08:26:53 -0400 (EDT) From: Rick Macklem To: "O. Hartmann" Message-ID: <257816720.755191.1304080013911.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4DBA8CA7.3060807@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_755190_1581781352.1304080013909" X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: FreeBSD Current Subject: Re: CURRENT/amd64: kernel compil error: /usr/src/sys/fs/nfsclient/nfs_clvfsops.c: In function 'nfs_mount':, /usr/src/sys/fs/nfsclient/nfs_clvfsops.c:1030: warning: passing argument 4 of 'copyinstr' from incompatible pointer type X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 12:26:55 -0000 ------=_Part_755190_1581781352.1304080013909 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit > Since this morning after updating the sources I get the following > error > while compiling a new kernel: > > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=native > -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS > -include opt_global.h -fno-common -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 > -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 > -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -Werror > /usr/src/sys/fs/nfsclient/nfs_clvfsops.c > cc1: warnings being treated as errors > /usr/src/sys/fs/nfsclient/nfs_clvfsops.c: In function 'nfs_mount': > /usr/src/sys/fs/nfsclient/nfs_clvfsops.c:1030: warning: passing > argument > 4 of 'copyinstr' from incompatible pointer type > *** Error code 1 > Oops, sorry. r221190 doesn't build for 64bits arches like amd64. I cribbed the code from the regular client, but didn't notice "len" was declared size_t and not int. The patch is attached and will be committed to head in a few minutes. Thanks for reporting it, rick ------=_Part_755190_1581781352.1304080013909 Content-Type: text/x-patch; name=sizet.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=sizet.patch LS0tIGZzL25mc2NsaWVudC9uZnNfY2x2ZnNvcHMuYy5zYXYJMjAxMS0wNC0yOSAwODoxMjo0Mi4w MDAw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