Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2479521ybk; Sun, 17 May 2020 23:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK/WWZjGZp1Gp268inwECV6ECs/fHYoJFjvm2JCNOaOcP3c6LmkMMAfAWKeZNgX+riBeb3 X-Received: by 2002:a17:906:3e0d:: with SMTP id k13mr13055552eji.145.1589783384705; Sun, 17 May 2020 23:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589783384; cv=none; d=google.com; s=arc-20160816; b=huO6ZFw/rENbHLjTFYRibrp9dcBlPqcBYVDIRMojLLWCBJ/m0kfGfiQF+A4iPxHRrf fmQ9TcEAS0cFzzuQFqHPCVdMvBY6uCMRw2vW+LkxAKA69D+G6ePYFy7xvc4Zk8k+3yik wr9AooORF09H7u6kcyrMTBO9u0RWMEyGUG+MZsM94IW/cY9L4k2LUwO+7gOAHSgUQj4G W1EmjwrW7gBXRLePrmODTu5IGtrymVmw8BZ62oWV3YBi6JYRqD+aRzY1Ho2xStcIAbiY fN4GdETgSUMJSEkbljZNNwdNA3vc/jpVk0+4lyYqvhIxEkm1BtB1wKOgXfKpVLQaOXLP 3y/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JIdVTVY1ssGvYup88RnkYroEgz9KZ3aaEA8z/XclZbA=; b=C5DVxLJ1PaoeEosnp0pfR19XD1ZQkSF1D1vkxdNseMLEO7BewntZdKxLSb2cc9H9Cm b8fznnKfOEfhQb+TjEurCK2HtsQHM6lJk2DBFMU6bK3ufKX/60Kk4dC6DD4MZDU5vvgK FOdsHbT+dSkDmen2bMMgtdX0k8pHvS88vG3aumis0lMGp131FJ3cWckTCOR4Pdizwdxd wN68x9xUEuwDjRUTOLBwayt/XdpxQ+zEU7BWKiOuxdnzxx6Mi5gbpigw2afRpY3s+RSW ARqD5Tpv8d/4PpqZeS0JmrKM8bBhDQGo/TQikrJwbft/arKFPUBe/a5TtWkmTXW/aqKE g3IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si6212772edx.539.2020.05.17.23.29.21; Sun, 17 May 2020 23:29:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgERGZQ (ORCPT + 99 others); Mon, 18 May 2020 02:25:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:52482 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbgERGZQ (ORCPT ); Mon, 18 May 2020 02:25:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 33E34AC49; Mon, 18 May 2020 06:25:17 +0000 (UTC) Subject: Re: next-20200514 - build issue in drivers/md/dm-zoned-target.c To: =?UTF-8?Q?Valdis_Kl=c4=93tnieks?= , Alasdair Kergon , Mike Snitzer Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org References: <367320.1589627953@turing-police> From: Hannes Reinecke Message-ID: <7bb0d1c8-b164-d5f3-0218-5c71047c3a8c@suse.de> Date: Mon, 18 May 2020 08:25:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <367320.1589627953@turing-police> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/16/20 1:19 PM, Valdis Klētnieks wrote: > Am seeing a build error in next-0514. -0420 built OK. > building a 'make allmodconfig' on a RPi4 in 32-bit mode. > > MODPOST 7575 modules > ERROR: modpost: "__aeabi_uldivmod" [drivers/md/dm-zoned.ko] undefined! > > objdump and 'make drivers/md/dm-zoned-target.s' tells > me that the problem is in function dmz_fixup_devices(), near here: > > @ drivers/md/dm-zoned-target.c:806: reg_dev->nr_zones = DIV_ROUND_UP(reg_dev->capacity, > ldr r0, [r6, #56] @ reg_dev_166->capacity, reg_dev_166->capacity > adds r1, r3, r1 @ tmp316, _227, reg_dev_166->capacity > adc r0, r2, r0 @ tmp315, _227, reg_dev_166->capacity > subs r1, r1, #1 @, tmp316, > @ drivers/md/dm-zoned-target.c:805: reg_dev->zone_nr_sectors = zoned_dev->zone_nr_sectors; > strd r2, [r6, #80] @, reg_dev, > @ drivers/md/dm-zoned-target.c:806: reg_dev->nr_zones = DIV_ROUND_UP(reg_dev->capacity, > sbc r0, r0, #0 @, tmp315, > bl __aeabi_uldivmod @ > @ drivers/md/dm-zoned-target.c:806: reg_dev->nr_zones = DIV_ROUND_UP(reg_dev->capacity, > str r1, [r6, #64] @ tmp306, reg_dev_166->nr_zones > > git blame points at this commit: > > commit 70978208ec91d798066f4c291bc98ff914bea222 > Author: Hannes Reinecke > Date: Mon May 11 10:24:30 2020 +0200 > > dm zoned: metadata version 2 > > Reverting that commit lets the build complete. > > I thought I've send a patch to fix that up; DIV_ROUND_UP() needs to be changed to DIV_ROUND_UP_ULL(). I'll be checking and will be sending a patch if necessary. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer