Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4808350ybg; Tue, 29 Oct 2019 12:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpYeRBjTTh8hG2sModUfN/DslEa8/xbkbJoJ9R5OVKHK6wghgD4mlyC43bzR8sdxpvHdNw X-Received: by 2002:a17:906:1dc4:: with SMTP id v4mr5033671ejh.248.1572378144825; Tue, 29 Oct 2019 12:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572378144; cv=none; d=google.com; s=arc-20160816; b=philzjGBe3t26DkuPCZaNF0037GhGUbR16xEg59zaW3tUOdSJFnrzDv+X/98ewGSCr oqmHitBaXiNKKyHXswQYv/W02zUrzIQXI4pQM2CE3qEXCZ9Go1ezsq9MgyWuoU3m6csl tWTmC6v/E11NRYvaQLJJqxoT2Tr/dy/IhCPIS4HE+kCilDo2mem8e/AxgK4TpVUAUNRc Yu8jwnpd4uH0JqbajQqIBIhByHnYjnicXXOMqTH6jpd6tSoxE0wGIw0Ms7LzAWeNnOUU TrWaI9LHCtp387GeVzC6XZwnIRhMLkiKxr5A1hhNtCA4bS1xbqbhIPBlTHmyCTWCypWF WUKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=rumQz+exsMOqih3jmSr+cClo25KdynN4hILa2nqgsAU=; b=FcEfjpZ//3X3poi/FOa2H2kkFp3DP+1tcvXagHIi1XdIzuIw65ZBc3u3IvX9yDYFl2 zDLBXlYLBMqEq7r1lRr6Yd5fEPeoW6Q/xZGht0wVwiXfrepB/s9aWsk7Cwjubah014v+ vteLTBFyuhVEbD5DGOKLIRkIH6gQb5KpUeJdHm5m6WKRkvWgBvVOARXCFD0HZTBp1DCn UsOClfgCeQ2rpWripbo/OWNoT6WOgvG1Z71zArrlo7ZEzmLyuuyKeBaWQT7htKhowh22 Itbddob3QJ+hhWkrn2JkU7mMSEQXtL0nAbcq3yDY+V/lvOU4KkBMcFnNg41kRXGluxkk Ji0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="Jo9fbP/a"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d44si11611077ede.149.2019.10.29.12.42.01; Tue, 29 Oct 2019 12:42:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="Jo9fbP/a"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389347AbfJ2OPz (ORCPT + 99 others); Tue, 29 Oct 2019 10:15:55 -0400 Received: from us03-smtprelay2.synopsys.com ([149.117.87.133]:53348 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388932AbfJ2OPS (ORCPT ); Tue, 29 Oct 2019 10:15:18 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 37710C04DC; Tue, 29 Oct 2019 14:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572358517; bh=AAMOx6e5D47bkbXqXrtoDHy1k1iDqzrTt/zXJAhG2jI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=Jo9fbP/aSDkD2XloCo4ygLMiJ67jBLLL9XrXz9HDmxYq9Mp2cpmLER9DYFGxcRGiF VO8cjGxxQkHr6eil+0YRKe2MS13RHMwgW58DUpR8hdSmbN3f9rDyjZXq2erevo+ZuX mAMfJ5V9SHJRvhLi9wd7uStLQhZB27S+b7y5tUemBvjTrw/57FSouSMRmbUG9t+S99 PUVb+oKs9fy1PnMbAp8feZodTOHakd2h/TXgJndBzcl6+CUTZvS5gLqHJa77xLce7z X3NC5wNDpNpTfnDKyNwK2qTowg+CkVMg/C47dEk2Snw0DMgvX6FzsQnErzdvUjfZy+ W2D7tTLVfycLg== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id BDEC9A0069; Tue, 29 Oct 2019 14:15:14 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 3/9] net: stmmac: xgmac: bitrev32 returns u32 Date: Tue, 29 Oct 2019 15:14:47 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bitrev32 function returns an u32 var, not an int. Fix it. Fixes: 0efedbf11f07 ("net: stmmac: xgmac: Fix XGMAC selftests") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c index e24382d00e62..b58522b8f782 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c @@ -463,7 +463,7 @@ static void dwxgmac2_set_filter(struct mac_device_info *hw, value |= XGMAC_FILTER_HMC; netdev_for_each_mc_addr(ha, dev) { - int nr = (bitrev32(~crc32_le(~0, ha->addr, 6)) >> + u32 nr = (bitrev32(~crc32_le(~0, ha->addr, 6)) >> (32 - mcbitslog2)); mc_filter[nr >> 5] |= (1 << (nr & 0x1F)); } -- 2.7.4