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 8A025C25B06 for ; Thu, 4 Aug 2022 22:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235298AbiHDWn6 (ORCPT ); Thu, 4 Aug 2022 18:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbiHDWny (ORCPT ); Thu, 4 Aug 2022 18:43:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B9625C64 for ; Thu, 4 Aug 2022 15:43:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 76E78B82753 for ; Thu, 4 Aug 2022 22:43:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ADEDC433C1; Thu, 4 Aug 2022 22:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659653031; bh=iTffOwoeKm5s6NsokKGfJ9XtxAISgvJzsUXoAitQXp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q3v+fFLGf5wQF3GIHiotFQrBbVjC8pjV3eCjhbPuhm1d1YLklK0YDiBn3QxkiTFkb sXNamCIlPTnsEg6F5AlPGys1aGRkpRb32JhYaJZ8L6p/mT2QFV4IZ4G5BlgiAFzGuX JFg/JQ0KTqnvgRLVndky9sowtyYcMocgxZqIp3CJxubIkMAh8Nn2gYIydnZ9D2difO +S4MCgYgCc6CXhv5R1wMW3nWP5rnT7R1tE5KWg9oBRsrGiEo+qN4Zc+FQ7m/GHIunD EdaOZmnKj8B3VJDHWeVhvkmxiZo7d5+RGDMPwurpdrlg5hcXx3b2MUx1VduM38OBNf T+tlYCRaWcAIA== Date: Thu, 4 Aug 2022 15:43:48 -0700 From: Nathan Chancellor To: Linus Torvalds Cc: Arnd Bergmann , "Sudip Mukherjee (Codethink)" , clang-built-linux , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , amd-gfx list , dri-devel , Linux Kernel Mailing List Subject: Re: mainline build failure for x86_64 allmodconfig with clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 04, 2022 at 02:59:01PM -0700, Linus Torvalds wrote: > On Thu, Aug 4, 2022 at 1:43 PM Nathan Chancellor wrote: > > > > I do note that commit 1b54a0121dba ("drm/amd/display: Reduce stack size > > in the mode support function") did have a workaround for GCC. It appears > > clang will still inline mode_support_configuration(). If I mark it as > > 'noinline', the warning disappears in that file. > > That sounds like probably the best option for now. Gcc does not inline > that function (at least for allmodconfig builds in my testing), so if > that makes clang match what gcc does, it seems a reasonable thing to > do. Sounds good. That solution only takes care of the warning in display_mode_vba_32.c. I will try and come up with something similar for the other two files tomorrow, unless the AMD folks beat me to it, since they will know the driver better than I will ;) Cheers, Nathan