Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3940283pxb; Tue, 7 Sep 2021 10:49:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYGXklnwOkhpgI3G1liQ7yUuNrx0ZG3P0/WC0bQfqkXoYCiPlZy/FSGrYpv4Uo7pqZYLXr X-Received: by 2002:a17:907:7e96:: with SMTP id qb22mr19629126ejc.79.1631036982311; Tue, 07 Sep 2021 10:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631036982; cv=none; d=google.com; s=arc-20160816; b=NmSiIm1dEAt2qmZ1NZKdN7THzGDXkXfiQQ7Lbn94ZOgiau79VJ0xPbm2ghGnvLxhjE YRWcpDN9Z+pPM8iNplZl8UrfYpVlD1RTw0iXQM2SQVi3bA+aV9vm1dgGyh8+WJl4a8Qh 7jOZ2+rTTZGfyzqTfP6O9rWHVJlIVgj2Mync8eHnf52nG1cQXpChVCQ8dAuUFH1daf1n Uu2w3ipJ7gIgeFIuZL133KeTfssM615vtuKrQShrk5P5kVXfstDgdKOOCxPUUMMeXMxJ ib2l6XsJVQatqI+5mdXwC40wYdNRgxvpEk9sfNVD9yggnLQReuwanWWREN84Fb22LKNB Y4Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HtLHkhxHS8qdegir85VKZ/k0sSBtkKNlTVU0+mW7UuM=; b=Ywy6kmHuNDUn8RxzFUmlf8ImbqlUhxFo6AYgaBaAIqphme1MCyzJoRYxBops25IXhA vV1LaVXTU7/sHVOulfgZ0ogx2zfeT1eyjJaY1D+2fFesznrTNIJfkIOtvgSpkbifsROf j5/9M45oydkC9g/rhk5Dc2T/MgTcWeCAc3g4xVn6j46ncRFZBvgsi64hc+Yo7pYrDANY MV4UqKViAcJzTSzRBmejEsfeKpIgIZnMnfkyVb1IMBg5aFazcjaYoGU886x11TIrFb3q pPuEczoO0mtx8mCE96ybKIeYyL3oTcDfZfW7QY7tEJh5t0NuuSiwhFnIQtccJlNvW3U1 7ceQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="W+f/MmAh"; 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 hs3si16105562ejc.368.2021.09.07.10.49.19; Tue, 07 Sep 2021 10:49:42 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="W+f/MmAh"; 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 S1345695AbhIGRfJ (ORCPT + 99 others); Tue, 7 Sep 2021 13:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbhIGRfH (ORCPT ); Tue, 7 Sep 2021 13:35:07 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703F9C061575 for ; Tue, 7 Sep 2021 10:34:00 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id n2so11494574lfk.0 for ; Tue, 07 Sep 2021 10:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HtLHkhxHS8qdegir85VKZ/k0sSBtkKNlTVU0+mW7UuM=; b=W+f/MmAh+JZFq4IIRfWRL6TipJ6Dlgj+hb/25z1TYMzuItZsKujQqnXcQI87Ra2xlO xwuR98wB96KzC4cnzJZ483bOKmVNo9E3qwMUouC7ZTcsCqHnVO0ycjgAsoXe7GEieuMP KzlPVPbDUGsLofH3/EUcizG4UAFXbEucZLQag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HtLHkhxHS8qdegir85VKZ/k0sSBtkKNlTVU0+mW7UuM=; b=h5lsUlbugSzBC8EQKzD4fjO4qhuyMGmqFIa/npoxQPOIhRwSgMjwgfpVjp2RsXIB6L 0lf1UI2XcTShLfKtmtkOqWB68KWA9FS5uQYWHM9pkr32LyEoYfkYBHjWDGRLBIwNGeXu DAvc00qifh8ivYvfbQmdIax88yIvmbBHMVp3wcA3s6lSz0V7vYqQLU55n4uhsfvDMUq0 Cmx2Ie5aoIOXz0EV2wdYSRlHDGtQmn1IS6797OeMwIc0vn/LkpuJyDZ1jtyB+3GpRU6S 9iy3blc56hAE433VLyRHjXJxvdjNqDHw3Dhxx4DD5BLW2URa9BWOxjCps6tawfZTBl3h ZruA== X-Gm-Message-State: AOAM533ALtff9L2G6XgihSVyJEIDfwgUVkBr4edWWKNfjlC9FU2FH+pL WBNOcFlEbrf9q4wIG14rxVAP8FEHC5+TxqMXXQY= X-Received: by 2002:a19:f503:: with SMTP id j3mr13519151lfb.290.1631036038208; Tue, 07 Sep 2021 10:33:58 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id y7sm1477617ljn.26.2021.09.07.10.33.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 10:33:57 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id p15so17833810ljn.3 for ; Tue, 07 Sep 2021 10:33:57 -0700 (PDT) X-Received: by 2002:a2e:8107:: with SMTP id d7mr16181892ljg.68.1631036036969; Tue, 07 Sep 2021 10:33:56 -0700 (PDT) MIME-Version: 1.0 References: <20210906142615.GA1917503@roeck-us.net> In-Reply-To: From: Linus Torvalds Date: Tue, 7 Sep 2021 10:33:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Arnd Bergmann , Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" Cc: Nathan Chancellor , Guenter Roeck , Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers , amd-gfx@lists.freedesktop.org Content-Type: multipart/mixed; boundary="00000000000099af8605cb6b2b32" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000099af8605cb6b2b32 Content-Type: text/plain; charset="UTF-8" On Tue, Sep 7, 2021 at 10:10 AM Linus Torvalds wrote: > > Do I know why? No. I do note that that code is disgusting. > > It's passing one of those structs around by value, for example. That's > a 72-byte structure that is copied on the stack due to stupid calling > conventions. Maybe clang generates a few extra temporaries for it as > part of the function call stack setup? Who knows.. Ooh, yes. This attached patch is crap - it converts the helper functions to use const pointers instead of passing the whole structure, but it then only converts that one file that *uses* them. So the end result will not compile in general, but you can do make drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_rq_dlg_calc_30.o and it compiles for me. And while gcc doesn't care that much - it will apparently either generate the argument stack every call - clang cares deeply. The nasty 720-byte stack frame that clang generates turns into just a 320-byte one, and code generation in general looks a *lot* better. Now, as mentioned, this patch is broken and incomplete. But I really think the AMD GPU people need to do this. It makes those functions go from practically unusable to not horribly disgusting. So Harry/Leo/Alex/Christian and amd-gfx list - can you look into making this ugly "make one file compile better" patch actually work properly? It *looks* lto me ike that code was perhaps written for a C++ compiler and the helpers have been written as a "pass by reference", and the arguments used to be const display_data_rq_misc_params_st& rq_misc_param and then the compiler will pass the argument as a pointer. And then it was converted to C, and the "pass by reference" in the function declaration was turned into "pass by value", to avoid changing "." to "->" in the use. But a '&arg' thing in C++ really is a '*arg' pointer in C, and should have been done as that. Of course, it's also possible that that code was simply written by somebody who didn't understand just *how* horrible it is to pass structures bigger than a word or two by value. Do we have a compiler warning for passing big structures by value? Linus --00000000000099af8605cb6b2b32 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ktacq4zi0 IC4uLi9kaXNwbGF5L2RjL2RtbC9kY24zMC9kaXNwbGF5X3JxX2RsZ19jYWxjXzMwLmMgIHwgMTQy ICsrKysrKysrKystLS0tLS0tLS0tLQogLi4uL2Rpc3BsYXkvZGMvZG1sL2RjbjMwL2Rpc3BsYXlf cnFfZGxnX2NhbGNfMzAuaCAgfCAgIDIgKy0KIC4uLi9hbWQvZGlzcGxheS9kYy9kbWwvZGlzcGxh eV9ycV9kbGdfaGVscGVycy5oICAgIHwgIDIwICstLQogMyBmaWxlcyBjaGFuZ2VkLCA4MiBpbnNl cnRpb25zKCspLCA4MiBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL2dwdS9kcm0v YW1kL2Rpc3BsYXkvZGMvZG1sL2RjbjMwL2Rpc3BsYXlfcnFfZGxnX2NhbGNfMzAuYyBiL2RyaXZl cnMvZ3B1L2RybS9hbWQvZGlzcGxheS9kYy9kbWwvZGNuMzAvZGlzcGxheV9ycV9kbGdfY2FsY18z MC5jCmluZGV4IDBkOTM0ZmFlMWMzYS4uOWI1ZWU1M2QyZGUzIDEwMDY0NAotLS0gYS9kcml2ZXJz L2dwdS9kcm0vYW1kL2Rpc3BsYXkvZGMvZG1sL2RjbjMwL2Rpc3BsYXlfcnFfZGxnX2NhbGNfMzAu YworKysgYi9kcml2ZXJzL2dwdS9kcm0vYW1kL2Rpc3BsYXkvZGMvZG1sL2R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