Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:54414 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752367Ab2D3Hn1 (ORCPT ); Mon, 30 Apr 2012 03:43:27 -0400 From: joseph daniel To: Lauro Ramos Venancio , Aloisio Almeida Jr , Samuel Ortiz , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: joseph daniel Subject: [PATCH] net/nfc: Fix the compilation warning Date: Mon, 30 Apr 2012 13:43:15 +0600 Message-Id: <1335771795-18961-1-git-send-email-josephdanielwalter@gmail.com> (sfid-20120430_094345_964406_46CD5DB1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: the nfc_llcp_general_bytes is defined in nfc/core.c as static inline u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *gb_len). as in nfc/nfc.h: static inline u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, u8 *gb_len), as CONFIG_NFC_LLCP is not defined. so we got some warnings, net/nfc/core.c:207:2: warning: passing argument 2 of ‘nfc_llcp_general_bytes’ from incompatible pointer type [enabled by default] net/nfc/nfc.h:87:19: note: expected ‘u8 *’ but argument is of type ‘size_t *’ Signed-off-by: joseph daniel --- net/nfc/nfc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h index ec8794c..549382c 100644 --- a/net/nfc/nfc.h +++ b/net/nfc/nfc.h @@ -84,7 +84,7 @@ static inline int nfc_llcp_set_remote_gb(struct nfc_dev *dev, return 0; } -static inline u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, u8 *gb_len) +static inline u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *gb_len) { *gb_len = 0; return NULL; -- 1.7.9.5