From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C224BECAAD3 for ; Wed, 7 Sep 2022 05:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbiIGFvA (ORCPT ); Wed, 7 Sep 2022 01:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiIGFu7 (ORCPT ); Wed, 7 Sep 2022 01:50:59 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E4C95C950 for ; Tue, 6 Sep 2022 22:50:48 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id gb36so27884150ejc.10 for ; Tue, 06 Sep 2022 22:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date; bh=485XNaRuLgo/QNXREYEE3jQFUNZFYuPUp6wyA324/uM=; b=lXKB2dOByaXJeWp6iOGRoZ4RmLPZsu3HxzhaDnY3VxlB4vCBN7dn35f8/Kl/9WVfZp RnVffudQwdTclZc8hX0wTIQ3eNqmQ/74gM+x+8fG1kkqBpBy6mPY35LZJNh1ZW/Ea3k5 cuJP2GV1youCGhJ4/XV1pgAiMBhenRllw1BzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=485XNaRuLgo/QNXREYEE3jQFUNZFYuPUp6wyA324/uM=; b=pcMaEJfAAggUf0uNHoj4GmHwbxnBnmxMATMf5TiMKZs/eXsGHk5OeBKwlJ9v2uj564 aYvCEBQSziinZSVPxDvyuNVWvhnH4byDzi/KAZc0blgdSpvBxkkWuYoPhNeJzJYmkDTa LRRgZSjJe0k2mWhL0u2u57B3UJkMZA2er9jvj1ZpGQYdP8dapEG9AZKaFsAEJIr+Iwuy 1n5rQejURYUKPGMDWWPOd7mbG7UDPlefqqLYi3VV/7SKDNtFBN9m6ewqqtj/WGoBa60w Z/U6CmvlVNVL+CafxfJv87UZhFOTjXrgSqKyDxT/Fywfqm5q3IXwYDGt5PDAgfJIYbEA wD9w== X-Gm-Message-State: ACgBeo3CNpHeuYWVtdQzNVVYvM9wOg8aGv/wPSWKKrzqPcvX/X375hbY Zptm0Sh7raDeIl63x6jMG3RFyw== X-Google-Smtp-Source: AA6agR6IS7WtWkmlIgHja/YyJbP8C4ZcmZo3NwhtbPvtpZSOQuctBQnsweC1nqC8Sxd6HQmJa9tQkQ== X-Received: by 2002:a17:907:2e01:b0:731:1eb0:b9ff with SMTP id ig1-20020a1709072e0100b007311eb0b9ffmr1237025ejc.728.1662529846962; Tue, 06 Sep 2022 22:50:46 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id eh13-20020a0564020f8d00b0044f0c01196esm887979edb.65.2022.09.06.22.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 22:50:46 -0700 (PDT) Date: Wed, 7 Sep 2022 07:50:44 +0200 From: Daniel Vetter To: Igor Matheus Andrade Torrente Cc: Sudip Mukherjee , Melissa Wen , dri-devel , Rodrigo Siqueira , linux-kernel , linux-next , Daniel Vetter , David Airlie , Haneen Mohammed Subject: Re: build failure of next-20220906 due to 396369d67549 ("drm: vkms: Add support to the RGB565 format") Message-ID: Mail-Followup-To: Igor Matheus Andrade Torrente , Sudip Mukherjee , Melissa Wen , dri-devel , Rodrigo Siqueira , linux-kernel , linux-next , David Airlie , Haneen Mohammed References: <8e4350df-0c73-6ca2-a25f-28a40a1856db@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.18.0-4-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Wed, Sep 07, 2022 at 07:47:32AM +0200, Daniel Vetter wrote: > On Tue, Sep 06, 2022 at 08:35:49PM -0300, Igor Matheus Andrade Torrente wrote: > > On 9/6/22 18:26, Sudip Mukherjee wrote: > > > On Tue, Sep 6, 2022 at 4:59 PM Sudip Mukherjee (Codethink) > > > wrote: > > > > > > > > Hi All, > > > > > > > > The builds of next-20220906 fails for mips, xtensa and arm allmodconfig. > > > > > > > > The errors in mips and xtensa are: > > > > > > > > ERROR: modpost: "__divdi3" [drivers/gpu/drm/vkms/vkms.ko] undefined! > > > > ERROR: modpost: "__udivdi3" [drivers/gpu/drm/vkms/vkms.ko] undefined! > > > > > > > > The error in arm is: > > > > > > > > ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/vkms/vkms.ko] undefined! > > > > ERROR: modpost: "__aeabi_ldivmod" [drivers/gpu/drm/vkms/vkms.ko] undefined! > > > > > > > > > > > > Trying to do a git bisect to find out the offending commit. > > > > > > git bisect points to 396369d67549 ("drm: vkms: Add support to the > > > RGB565 format") > > > > Are these architectures incapable of doing 64bits int division? > > Yeah 32bit archs in general can't do that, and you have to use the right > macros because otherwise gcc falls back to its own built-ins, and those > don't exist in the kernel since the kernel isn't (cannot!) linked against > any userspace library. > > For pretty much this reasons it's really good to build test against 32bit > x86, or probably more relevant these days, 32bit arm. Forgot to add: include/math.h for all your division needs. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch