Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1020976rwb; Thu, 4 Aug 2022 15:46:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4F3n5X2QvTYXhDnKDX8BPdkXsDzznWeXF059DT7w/kjHD8spR3zeEqkPuPBbpgqQZd/s5/ X-Received: by 2002:a05:6402:b6a:b0:43d:2454:ddd3 with SMTP id cb10-20020a0564020b6a00b0043d2454ddd3mr4113116edb.138.1659653211690; Thu, 04 Aug 2022 15:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659653211; cv=none; d=google.com; s=arc-20160816; b=NVtoME6vGbpy700CivoR+jhzPpDc91mimc0s+ocG48ewMHacunwN4pjyTAhwS93nlR 3dpAbxrAF5QHTNaMeMgYDXfvPxT3BO8SmbFxpp0AgRRraxfAmVutdX33efzw0GmLhgSv H6uL8hDoyJp1286V3nO2IIq1FXv6VQmw3gZ0jIEzC6/DAfBuBmE4tiqGG3xcp38zZP65 NIlliCXP6+CIDccNYb0F7xwRYA6E5tufNDBpf/Ie3T4C782zxOMaNPU3FcMiPKSrAuBu ctHeytHe8YYR7evwWgCHZ6G1XJ3t6SB1cKdZkNbYsPw77P0WOdyPdPKIWsP2DykbjpZk b+TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XCpyk6+VvF2tTOUkrEK+BH9spuAkXO+Y++ETZjxPbFk=; b=ULhBeuWt6BVuEOAuTdWtGrNg4IkioR3Wrswx4opUp31WUbQUKL30GjjZ5efxzjq9cg WUIqhvqnWLVw2HnrnH72LrIqrTKxz3eNnWzRtrM3O2r9AS2me4NTvnIqaK/HKLNnKHb6 s1zk/TTlD9Ta0WyiFqPctaPW7j2Z+hfRIsnUr5J3yCyvPJ1n1HP5fZp7ytGgkGi2+e7u vEfafpUZ4ks4brXff9+EdWEIzhT01F7srccmIeLhStUieGsNgHv+k0uAfgfoT6G1ad1o VMGeWqcl1TfLG3YbUwg4Ttu6X+GbwHfdxxT2GpNdU7qB9AjpJH3vC5HkUsN/M9GuGax+ zO+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q3v+fFLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv11-20020a17090760cb00b007262b0e9e43si1957480ejc.808.2022.08.04.15.46.26; Thu, 04 Aug 2022 15:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q3v+fFLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbiHDWn4 (ORCPT + 99 others); Thu, 4 Aug 2022 18:43:56 -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: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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