Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbdDHQDm (ORCPT ); Sat, 8 Apr 2017 12:03:42 -0400 Received: from hermes.aosc.io ([199.195.250.187]:38564 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdDHQDd (ORCPT ); Sat, 8 Apr 2017 12:03:33 -0400 Date: Sun, 9 Apr 2017 00:02:58 +0800 (CST) From: Icenowy Zheng X-X-Sender: icenowy@x220i To: Chris Mason , Josef Bacik , David Sterba cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Linux next-20170407 failed to build on ARM due to usage of mod in btrfs code Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 805 Lines: 25 Hello everyone, Today I tried to build a kernel with btrfs enabled on ARM, then when linking I met such an error: ``` fs/built-in.o: In function `scrub_bio_end_io_worker': acl.c:(.text+0x2f0450): undefined reference to `__aeabi_uldivmod' fs/built-in.o: In function `scrub_extent_for_parity': acl.c:(.text+0x2f0bcc): undefined reference to `__aeabi_uldivmod' fs/built-in.o: In function `scrub_raid56_parity': acl.c:(.text+0x2f12a8): undefined reference to `__aeabi_uldivmod' acl.c:(.text+0x2f15c4): undefined reference to `__aeabi_uldivmod' ``` These functions are found at fs/btrfs/scrub.c . After disabling btrfs the kernel is successfully built. For this problem, see also [1], which used to be a similar bug in PL330 driver code. [1] https://patchwork.kernel.org/patch/5299081/ Thanks, Icenowy