Re: disk-io.c:undefined reference to `atomic64_set_386'

From: Randy Dunlap
Date: Tue Apr 06 2021 - 12:12:43 EST


On 4/6/21 7:43 AM, David Sterba wrote:
> On Thu, Apr 01, 2021 at 12:34:38AM +0800, kernel test robot wrote:
>> Hi Josef,
>>
>> FYI, the error/warning still remains.
>>
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head: 5e46d1b78a03d52306f21f77a4e4a144b6d31486
>> commit: 8260edba67a2e6bd5e709d32188e23aa22cb4a38 btrfs: make the init of static elements in fs_info separate
>> date: 1 year ago
>> config: um-randconfig-r023-20210330 (attached as .config)
>> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
>> reproduce (this is a W=1 build):
>> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8260edba67a2e6bd5e709d32188e23aa22cb4a38
>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> git fetch --no-tags linus master
>> git checkout 8260edba67a2e6bd5e709d32188e23aa22cb4a38
>> # save the attached .config to linux build tree
>> make W=1 ARCH=um
>
> All the reports regarding atomic64_*_386 are from ARCH=um build, so
> it needs to be fixed there.
>

Robot, Please try this patch:
https://marc.info/?l=linux-kernel&m=161756047331183&w=2


thanks.
--
~Randy