From patchwork Mon Apr 1 18:01:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Bolle X-Patchwork-Id: 2372021 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DF0A93FDDA for ; Mon, 1 Apr 2013 18:02:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758203Ab3DASB6 (ORCPT ); Mon, 1 Apr 2013 14:01:58 -0400 Received: from cpsmtpb-ews04.kpnxchange.com ([213.75.39.7]:61590 "EHLO cpsmtpb-ews04.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758168Ab3DASB5 (ORCPT ); Mon, 1 Apr 2013 14:01:57 -0400 Received: from cpsps-ews27.kpnxchange.com ([10.94.84.193]) by cpsmtpb-ews04.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 1 Apr 2013 20:01:56 +0200 Received: from CPSMTPM-TLF102.kpnxchange.com ([195.121.3.5]) by cpsps-ews27.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 1 Apr 2013 20:01:56 +0200 Received: from [192.168.1.103] ([212.123.139.93]) by CPSMTPM-TLF102.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 1 Apr 2013 20:01:55 +0200 Message-ID: <1364839315.21627.69.camel@x61.thuisdomein> Subject: [PATCH 6/8] nfsd4: do not export "u64" to userspace From: Paul Bolle To: Trond Myklebust Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 01 Apr 2013 20:01:55 +0200 X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) Mime-Version: 1.0 X-OriginalArrivalTime: 01 Apr 2013 18:01:55.0672 (UTC) FILETIME=[FF1AF580:01CE2F02] X-RcptDomain: vger.kernel.org Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org nfs4.h exports "u64" to userspace. Use "__u64" instead. Signed-off-by: Paul Bolle --- 0) Tested with a kernel build. 1) I'm guessing userspace doesn't actually use NFS4_MAX_UINT64. include/uapi/linux/nfs4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/nfs4.h b/include/uapi/linux/nfs4.h index 788128e..35f5f4c 100644 --- a/include/uapi/linux/nfs4.h +++ b/include/uapi/linux/nfs4.h @@ -150,7 +150,7 @@ #define NFS4_SECINFO_STYLE4_CURRENT_FH 0 #define NFS4_SECINFO_STYLE4_PARENT 1 -#define NFS4_MAX_UINT64 (~(u64)0) +#define NFS4_MAX_UINT64 (~(__u64)0) /* An NFS4 sessions server must support at least NFS4_MAX_OPS operations. * If a compound requires more operations, adjust NFS4_MAX_OPS accordingly.