Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp716761ybx; Wed, 30 Oct 2019 23:15:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRadgGTN3DMgVmR3Yqz4620oWYh2zIn6JmTl3NB+39Lzrm0BhLpyB94NHctV9013R1nlTT X-Received: by 2002:a17:906:b7c4:: with SMTP id fy4mr2173710ejb.120.1572502555762; Wed, 30 Oct 2019 23:15:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572502555; cv=pass; d=google.com; s=arc-20160816; b=CYa73nYxLdm8y+sWWhiFhG38TxYQMKY0RfFDWBx9DJdP34fBi3eeSooJtFJ56Pq+MK pZcqMhmfgNFcny/PPIHm5wFvdGI9kApzjqaaPnWzwHhX/pfuV83Sju+l8EnfqwITk/wo ELhouTcxQ5toiBNZ+lN/Vq0uwDyOkmSjHF2yqeHQVs+DVhE7NvM6J1r4X4Z/PH3lcZZE sXDb6+xki3bU52MlSdWHWCns0txbSenv8Cp4ZVgTJhI2s2xjDlDU3ujKXGf6o1WO2oyl QONFX+BpLU07AQcu0gvkgdg3x/wx+3CjlXnpnJloDhO5SiNcOO6AqYWf6CquY5a1ZoEE 8Zew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=bOvoe44Dq0K+S1/COnkCfoiqPi4SCRHyx4iW0PH1QsA=; b=mzJJH648nBaYfkH2prBtfcc1qvoQvU3HRNV+0mE/Mnl6H3yp6Fv5iPu/K9zk0YWhjH jjBadx0AG+XuE50Loza7d6OWkfquLlV5AZ6VZU2SIIIig9CKgldayNOawoHG5AuKlU6i W1OjKDSG0mb9H/I5rkKpxtIOCoEuh1stJPGhn8I+048UvKChAE/YLoxSAWJZLE3LwLCT 6wXbsoffdXSja4DRfvfCIVmMDWTXSCTapIr4p3d5by9Oi32SsMwFV0mClGUeluYfurnG EWZY0Ctmf/ymZLKS38+ooxhdGDVcSLRj/n/cRdDYgvyB0SWPiMYqCxAtSqBRy8xBfL5h i4qw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=kJEpOJcw; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); 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=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f54si3144766edb.255.2019.10.30.23.15.30; Wed, 30 Oct 2019 23:15:55 -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=@Mellanox.com header.s=selector2 header.b=kJEpOJcw; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); 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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726774AbfJaGMV (ORCPT + 99 others); Thu, 31 Oct 2019 02:12:21 -0400 Received: from mail-eopbgr10070.outbound.protection.outlook.com ([40.107.1.70]:25826 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726331AbfJaGMU (ORCPT ); Thu, 31 Oct 2019 02:12:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZqcuIH5rVGvXRenxUF+4AAWWpUjFL9m/ogVIdm8stvMWBQRaygnoPFZLkgZX6k3G+BwNk4OQ8TkfJXSDN34NaLVpnMrUMQLBQ1DJydapx+PBrSO6q26SrHs7Pzv9iO2ckU9p9z941V072NxCImUYfQ0/FZN31EnrYjR0vsFujNaT+Oeucyt2pY/vXqouhNYif+ngCecb+wjVGzI5ksnn5WMZJP65t96TcYwnQvDtwflRgfLnBc+o3K3zjtY8exjKOdse7WJ9hSCj1OuziiSGOzInUMcp7Vkwosc1iH9t1D/7p/iHY9RRPA0Qg7U8XQSJgvMWUfw0poVrZrm4FkPFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bOvoe44Dq0K+S1/COnkCfoiqPi4SCRHyx4iW0PH1QsA=; b=Hc7GGheDtgK1bQou5RE3RcZjdFgshCPq0oGt0XnNfO27FPHGYRAyRFcRxLbyjGoI2EhMm+DMBt4y2limHAOn/o5ydUwYfPGMKXndlQZhjShlnavQv3HtVnKQDS3yQ45DDV2La7COrcDfpI10EfnDQ8zPKMSSG8gw+dKgirV+cbVaxwA6UMDdspaZQPj93pBoLnczwT9tLeBSpDTCdj2msxsMGHOCn3WOvTOaZxb6kj59rdyOJTXP5l4AOhQZ54a6z+a9xT99JBsRYlQuNCnscTd1qnItn0/R998nnmu3CnNtTkBGr7wm0rvFODut8AA6EMW4+n5T4DLzbDBi/iWulw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bOvoe44Dq0K+S1/COnkCfoiqPi4SCRHyx4iW0PH1QsA=; b=kJEpOJcwAh03LkuvJzZLSyV1WDQ3RyKZooyFDt/uXy0j97O3e2Qpym43M1NArIDMy5uZ2ACzS00v6zEfLMg/Q6xHt+C5QepnO1Qkdmn9PnhRD8y4bdrRlhziAXEHjtcXLoGhviRftquicNF94VhMvm9/krOpqYoN0bpNwm8etqY= Received: from DB7PR05MB5338.eurprd05.prod.outlook.com (20.178.41.21) by DB7PR05MB5019.eurprd05.prod.outlook.com (20.176.235.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Thu, 31 Oct 2019 06:12:15 +0000 Received: from DB7PR05MB5338.eurprd05.prod.outlook.com ([fe80::6507:ac3:8106:3d0]) by DB7PR05MB5338.eurprd05.prod.outlook.com ([fe80::6507:ac3:8106:3d0%4]) with mapi id 15.20.2387.028; Thu, 31 Oct 2019 06:12:15 +0000 From: Ido Schimmel To: Nathan Chancellor CC: Jiri Pirko , "David S. Miller" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next] mlxsw: Fix 64-bit division in mlxsw_sp_sb_prs_init Thread-Topic: [PATCH net-next] mlxsw: Fix 64-bit division in mlxsw_sp_sb_prs_init Thread-Index: AQHVjztoaMLvPWvKT0y8eNhXMe1WZad0Rc+A Date: Thu, 31 Oct 2019 06:12:15 +0000 Message-ID: <20191031061213.GA30422@splinter> References: <20191030160152.11305-1-natechancellor@gmail.com> In-Reply-To: <20191030160152.11305-1-natechancellor@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0202CA0019.eurprd02.prod.outlook.com (2603:10a6:208:1::32) To DB7PR05MB5338.eurprd05.prod.outlook.com (2603:10a6:10:64::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 735e8c35-23bf-40cc-c423-08d75dc946a3 x-ms-traffictypediagnostic: DB7PR05MB5019:|DB7PR05MB5019: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-forefront-prvs: 02070414A1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(4636009)(396003)(136003)(366004)(39860400002)(376002)(346002)(199004)(189003)(256004)(81166006)(4326008)(71190400001)(9686003)(6512007)(305945005)(2906002)(8676002)(6246003)(66066001)(81156014)(7736002)(71200400001)(86362001)(54906003)(478600001)(6436002)(229853002)(76176011)(3846002)(99286004)(6116002)(316002)(52116002)(6486002)(66556008)(64756008)(66446008)(5660300002)(66476007)(6916009)(25786009)(33656002)(8936002)(26005)(6506007)(386003)(102836004)(1076003)(33716001)(446003)(11346002)(486006)(186003)(476003)(1411001)(4744005)(14454004)(66946007);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR05MB5019;H:DB7PR05MB5338.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: JCQVPNYdioC0oM3k7WHZR2xgvKovJylc0i9t2urNOASVuUrqPRB1juKI/Wv+XWJR282iA/2HyI/BnmbuNsAU6LvhBHBoAJyDvcdCWXl1JWrphYvIpvgVUD0dPn0lOoUECFjU5Tky5zi9sjT0dHx+o0iL2zpbkkSwAMAKrqq57HQRd8FHQOTyVPviLur/jLoAkbWqY1k4BskH7DY9+M61R0xONNMm6xPP6+f7Mz8KpdBvol3SkpnFPe0R6fvtmp3qKWRi+wsEOXRggcQ3Df+snjJBQoHV9YzI1teImx/hY45bplBWt4vRLq/XxT+BanfAm21D1GFKm8kcIoFYt6Pa58aVoiVIcRc8QTmjaDRfhWrmyJkdFWc895iPqxUVcxXi5bBjnkI2MitELNkTMHOn8hVL2m2sjjXutuY3ARSgq24pSnP7sOd3pP5pfvEbZ5kC Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 735e8c35-23bf-40cc-c423-08d75dc946a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2019 06:12:15.3300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4DlkCbi41XeasQaLsQkUhDk6esfdjBQRlGL8IAFMzLIOvwZBCg1QM7v5NcRG0ZplXGepGwI9rvZaVKuRYuhZdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5019 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 09:01:52AM -0700, Nathan Chancellor wrote: > When building for 32-bit ARM, there is a link time error because of a > 64-bit division: >=20 > ld.lld: error: undefined symbol: __aeabi_uldivmod > >>> referenced by spectrum_buffers.c > >>> net/ethernet/mellanox/mlxsw/spectrum_buffers.o:(mlxsw_s= p_buffers_init) in archive drivers/built-in.a > >>> did you mean: __aeabi_uidivmod > >>> defined in: arch/arm/lib/lib.a(lib1funcs.o >=20 > Avoid this by using div_u64, which is designed to avoid this problem. >=20 > Fixes: bc9f6e94bcb5 ("mlxsw: spectrum_buffers: Calculate the size of the = main pool") > Signed-off-by: Nathan Chancellor Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks, Nathan!