From patchwork Mon Feb 18 20:18:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 221471 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3D2A92C0095 for ; Tue, 19 Feb 2013 07:19:01 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756574Ab3BRUS5 (ORCPT ); Mon, 18 Feb 2013 15:18:57 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:56715 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753811Ab3BRUS4 (ORCPT ); Mon, 18 Feb 2013 15:18:56 -0500 Received: by mail-pa0-f51.google.com with SMTP id hz1so2983497pad.10 for ; Mon, 18 Feb 2013 12:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=ZGsJzc+doVlOKCOpcAzMu0b6saGsO1cJp0VfhjFFfE0=; b=XqQMuNtAKcmZTAjE2GBkcc8dwSuYeFL0S5ZZFD6regktStx8UccPR6fdBVyYLJX9n6 jB0GvSpZujKiGMIhmC+xPk7arUP2RIupb66UVfuilZHG0hqbVSrg83Q3qd2KTmMyGUPr 6W9wo0eXOM2VcDrAKhukk2hD2X7kq35QDlYB/dVm3LGWB4jfaHCvv3rFNCFNyUng8oCD ZhVIVUV5Si7fcYjgvY/QTsGMsTvudE5JZ5+AZL9I3nKuuxdv8Yp6IoMa/1cdmwOme+7x 5G7IPZ+Hi5NSU8c6a8n+H5oNOFxVIn79pzqFPM9B8zF4O5iHT9cPF4UiN5IjAiHrYrzL AHFQ== X-Received: by 10.66.74.197 with SMTP id w5mr38890742pav.60.1361218735544; Mon, 18 Feb 2013 12:18:55 -0800 (PST) Received: from [172.29.167.20] ([172.29.167.20]) by mx.google.com with ESMTPS id kl4sm1183402pbc.31.2013.02.18.12.18.53 (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 18 Feb 2013 12:18:54 -0800 (PST) Message-ID: <1361218732.19353.105.camel@edumazet-glaptop> Subject: [PATCH net-next] ipv6: fix a sparse warning From: Eric Dumazet To: David Miller Cc: netdev Date: Mon, 18 Feb 2013 12:18:52 -0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Eric Dumazet net/ipv6/reassembly.c:82:72: warning: incorrect type in argument 3 (different base types) net/ipv6/reassembly.c:82:72: expected unsigned int [unsigned] [usertype] c net/ipv6/reassembly.c:82:72: got restricted __be32 [usertype] id Signed-off-by: Eric Dumazet Reported-by: Fengguang Wu --- net/ipv6/reassembly.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index 9a6428a..3c6a772 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c @@ -79,7 +79,8 @@ unsigned int inet6_hash_frag(__be32 id, const struct in6_addr *saddr, { u32 c; - c = jhash_3words(ipv6_addr_hash(saddr), ipv6_addr_hash(daddr), id, rnd); + c = jhash_3words(ipv6_addr_hash(saddr), ipv6_addr_hash(daddr), + (__force u32)id, rnd); return c & (INETFRAGS_HASHSZ - 1); }