Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4810738pxj; Wed, 12 May 2021 13:53:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziGu3G65Dj3xvvGgJM3/MvPFwVchtZpHKPp0hxz8nt15gJ6pIaMabFpFBoXjgwABmsDSoU X-Received: by 2002:a17:906:b251:: with SMTP id ce17mr38893986ejb.149.1620852804953; Wed, 12 May 2021 13:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620852804; cv=none; d=google.com; s=arc-20160816; b=DSlkJ+y0c/6TWEGuRx8jho2eh/4s2/DrkmvhzbE3lRoxRzbVDOpk773yMQfR6KhTaA MO10+lMAudzwuRL7KwUuoXfO8B4mNluM3heznGe1btStcmoxT34ccYh55nhvYepCKwWl 62CVDk32JXdd19qnAHG2L4UL9fltHSPAWLoD9/o55TCgQvHHGUT9trN/GeyE1/pmsonW ynAbdyB3pr+B7Uu3pfDwUBi2kol1RGF7fE4beunpqSBR/deO0WdBV2zxvS7OBho0tU0S At4eSdJkpm/vHG5wgkDvtb6xOc7yypkbg2wh+Ms2HFhny9mMWSi2yTBxKbkwTRBqLQII URxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=PnZCmbDb0NNgk8hMLcIoIm7j8Q5j6bGpUEhwT6cN7SY=; b=x1kzD13cKdcsswUXfu3J7SqG5fPi0f8uCKzxCS2pbPuOuJ1WWi6Vq59MielIK12nKq 1FCq6VnYE2Xmq0e+FKEGBXHyKv8vcyRFFb+C0dprr/E6E0PHpxI9s3Y//J1xawkdOhCl fKgMbBZllZ91KH2U3WrU7fIyfU3Del3YRrPw6uuaTBAk56Y/APM4Cv+L4D2SCd9wteLY +d3qi23KSYUPKvOqff2z6he35nEXqPCGwP+Tye8Hbl7ZYuBSMGZy/t6iJzVsKlJR+nv2 /9yOvk9A1ZV7VAWVctyhTEwJ5nZaFYYQsmtEjDE7KoANsgjROb147YJvxDskSvIr4OA8 xy2w== 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 qh7si53296ejb.11.2021.05.12.13.53.00; Wed, 12 May 2021 13:53:24 -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 S1388065AbhELUl5 (ORCPT + 99 others); Wed, 12 May 2021 16:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387194AbhELUdC (ORCPT ); Wed, 12 May 2021 16:33:02 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AC30C0612AD; Wed, 12 May 2021 13:23:49 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id BA9D992009C; Wed, 12 May 2021 22:22:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id AD48792009B; Wed, 12 May 2021 22:22:21 +0200 (CEST) Date: Wed, 12 May 2021 22:22:21 +0200 (CEST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer , Greg Kroah-Hartman cc: Nathan Chancellor , Naresh Kamboju , open list , Shuah Khan , Florian Fainelli , patches@kernelci.org, lkft-triage@lists.linaro.org, Jon Hunter , linux-stable , Pavel Machek , Andrew Morton , Linus Torvalds , Guenter Roeck , clang-built-linux , Huacai Chen Subject: Re: [PATCH 5.12 000/677] 5.12.4-rc1 review In-Reply-To: Message-ID: References: <20210512144837.204217980@linuxfoundation.org> <8615959b-9054-5c9f-0afa-f15672274d12@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 May 2021, Greg Kroah-Hartman wrote: > > > > > > mips clang build breaks on stable rc 5.4 .. 5.12 due to below warnings / errors > > > > > > - mips (defconfig) with clang-12 > > > > > > - mips (tinyconfig) with clang-12 > > > > > > - mips (allnoconfig) with clang-12 > > > > > > > > > > > > make --silent --keep-going --jobs=8 > > > > > > O=/home/tuxbuild/.cache/tuxmake/builds/current ARCH=mips > > > > > > CROSS_COMPILE=mips-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache > > > > > > clang' > > > > > > kernel/time/hrtimer.c:318:2: error: couldn't allocate output register > > > > > > for constraint 'x' > > > > > > do_div(tmp, (u32) div); > > > > > > ^ > > > > > > include/asm-generic/div64.h:243:11: note: expanded from macro 'do_div' > > > > > > __rem = __div64_32(&(n), __base); \ > > > > > > ^ > > > > > > arch/mips/include/asm/div64.h:74:11: note: expanded from macro '__div64_32' > > > > > > __asm__("divu $0, %z1, %z2" \ > > > > > > ^ > > > > > > 1 error generated. > > > > > > > > > > Does this also show up in Linus's tree? The same MIPS patch is there as > > > > > well from what I can tell. > > > > > > > > No. > > > > Linus's tree builds MIPS clang successfully. > > > > > > Ick, ok, I'll go drop this and let a MIPS developer send us the correct > > > thing. > > > > > > thanks! > > > > > > greg k-h > > > > > > > I think you just need to grab commits c1d337d45ec0 ("MIPS: Avoid DIVU in > > `__div64_32' is result would be zero") and 25ab14cbe9d1 ("MIPS: Avoid > > handcoded DIVU in `__div64_32' altogether") to fix this up. > > It was easier for me to drop it, let's see if any MIPS developers (are > there any anymore?) care enough to send the proper series. Thomas, I told you it would work better if the original fix was replaced ahead of a pull request to Linus rather than updated with the follow-ups. Will you be able to fix up the mess in this case? I can offer no more than just the commits quoted above, there's no better fix. Maciej