Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646AbbBYNoM (ORCPT ); Wed, 25 Feb 2015 08:44:12 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:58269 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbbBYNoK (ORCPT ); Wed, 25 Feb 2015 08:44:10 -0500 Date: Wed, 25 Feb 2015 14:44:05 +0100 From: Jiri Pirko To: Dan Carpenter Cc: Scott Feldman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [patch 2/2] rocker: silence shift wrapping warning Message-ID: <20150225134405.GG2039@nanopsycho.orion> References: <20150225133612.GV19745@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150225133612.GV19745@mwanda> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 19 Wed, Feb 25, 2015 at 02:36:12PM CET, dan.carpenter@oracle.com wrote: >"val" is declared as a u64 so static checkers complain that this shift >can wrap. I don't have the hardware but probably it's doesn't have over It's a QEMU hardware, you can have it easily. >31 ports. Still we may as well silence the warning even if it's not a >real bug. It can have up to 62 ports. > >Signed-off-by: Dan Carpenter Acked-by: Jiri Pirko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/