Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3227672pxb; Mon, 6 Sep 2021 16:09:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0mMr5uz5MwKFZpf0L9xs1pM1J9xnlo+b0Cq9VcoqSC1YT8lkzpms5DkBBcTplfwmfX7Di X-Received: by 2002:a6b:b4d3:: with SMTP id d202mr11524049iof.8.1630969761038; Mon, 06 Sep 2021 16:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630969761; cv=none; d=google.com; s=arc-20160816; b=i/2DuuFDTC2vTOabJ6GUgdfU2Wppryh78UHdrFZOUgZ6o8DVR2tvxiy8PNVB7C4XWg NmuluhjDFmh3CPx3QVHFxFv7daMdg8L163fxXd35WfmiU2d1pLo++JvzL/vfpow8rGST Kl94dyEGxFZpOrUZ/GdmYU7btHtc61/mftU5J01J7Iq4Vpan+2HaWwb3/2Lzjjvj0eFB GzT3hKp0shG8sUHqRohCuh3mCyJlNYYb5r8MvCi8JlHz5yQWxEUqXnns65/Kjx5RsuxK /Sooapt1U7ntEZvP710YBMXWM2cwY8HryNa+m4XHJ3yexMWyXJfPtAy+Sa7/zThXnUTM SnTA== 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=mY7a/VmEivTg4NPuZbu50Rn6Ujtyoh2UnkUiJ3azGDc=; b=B19zuV1oRFRhSIHCvSzxNL45jIZmQk+zjcfE0BMONOXSW9CqEDSbG2FZjgMGu/Gayx rC3H/+asWxQ3kuO/p0C+H9uRcUA3rXYf7WDZmYQYok+1lZVCM+yz0X2vG7TsaSDgiyvX KK68usCUJJRViO0pvbNIS7BtFMg7zzinITF5+KQm2gS3q2Ok/YqtIcqWy3FIC/BAVMhy DYDndw7Rjcq3H9XCIOeGvannp8akVjL5cEx2lfSRfKHU3tmS6w3i3bHKC+ajpYE7B+06 az7TMEIuR4c9ZaALdDp/z++SBMOyzIZk7hDfCzrjd8eqx2ENPKo1aXFtRdXDAnZ5dIBr 88vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DKgu4sQj; 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 d3si10471477jak.6.2021.09.06.16.09.07; Mon, 06 Sep 2021 16:09:21 -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=DKgu4sQj; 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 S232022AbhIFXHa (ORCPT + 99 others); Mon, 6 Sep 2021 19:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbhIFXH3 (ORCPT ); Mon, 6 Sep 2021 19:07:29 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D133C061575 for ; Mon, 6 Sep 2021 16:06:24 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id t19so15778945lfe.13 for ; Mon, 06 Sep 2021 16:06:24 -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=mY7a/VmEivTg4NPuZbu50Rn6Ujtyoh2UnkUiJ3azGDc=; b=DKgu4sQj9D3b1TJnG2x96J+Nzi9hwMBx/g/5poB/8hidxoJJPKXSLiXm0e2oRwrZvN 8ftemzuQ+R8U8pLqvFgswLp43kBu0w/KDxGhWfzwtO9JS+Us/+/yLB4qfQYJhWGSdG1W Wh86pMUnWchG9rOu27J9VVu0DI0472+PlEgOg= 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=mY7a/VmEivTg4NPuZbu50Rn6Ujtyoh2UnkUiJ3azGDc=; b=Ra5He52Xuv6hVbIVAW76mnUaGRhdWtANdOsAsEo6qQGva3REZ0Z7R7xw2l5NTYUcno zlK8aY44/76KAb7q6PPIm3x67Sip4aZgdT74i9OMTQR6A180ZzWJaV5n6JJLYPUQRl3i sKZZNo7lMNTKHrKjY+pxKLRCf0sgAZ6Zfku6oV0Cu+ODhP3fnrDfEEi6QUK2AI0GjspJ n1NSrWTkPc8OcyYFq0UK1ux6MRBPwM2WUYmE6uxiywA0cacYBzmD7YkpmA0qpeXNTono Ufz54v/axCk8MYgo5+CIv9SmY4zmocx+3E0N7KZRTvQsJhs2PEYIfPO33Iz1CJ9Dm2WO oj1g== X-Gm-Message-State: AOAM530Bzl/pkOKz7nmjOaS/L/hK0iNgTHjBoxQmMhnqngCGjQqAQ7Qi Q+1SrWEeZx2+1IjMCednpnt4WaM80VZUmhIK X-Received: by 2002:a05:6512:10c6:: with SMTP id k6mr10360981lfg.327.1630969582076; Mon, 06 Sep 2021 16:06:22 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id b28sm1101864ljf.101.2021.09.06.16.06.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Sep 2021 16:06:21 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id m4so13507334ljq.8 for ; Mon, 06 Sep 2021 16:06:20 -0700 (PDT) X-Received: by 2002:a2e:a363:: with SMTP id i3mr12180677ljn.56.1630969580644; Mon, 06 Sep 2021 16:06:20 -0700 (PDT) MIME-Version: 1.0 References: <20210906142615.GA1917503@roeck-us.net> In-Reply-To: From: Linus Torvalds Date: Mon, 6 Sep 2021 16:06:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Guenter Roeck , "David S. Miller" , Dmitry Torokhov , Christian Koenig , Huang Rui Cc: Linux Kernel Mailing List , linux-sparc Content-Type: multipart/mixed; boundary="0000000000007e9f4d05cb5bb242" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000007e9f4d05cb5bb242 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable [ Adding some subsystem maintainers ] On Mon, Sep 6, 2021 at 10:06 AM Guenter Roeck wrote: > > > But hopefully most cases are just "people haven't cared enough" and > > easily fixed. > > We'll see. For my testbed I disabled the new configuration flag > for the time being because its primary focus is boot tests, and > there won't be any boot tests if images fail to build. Sure, reasonable. I've checked a few of the build errors by doing the appropriate cross compiles, and it doesn't seem bad - but it does seem like we have a number of really pointless long-standing warnings that should have been fixed long ago. For example, looking at sparc64, there are several build errors due to those warnings now being fatal: - drivers/gpu/drm/ttm/ttm_pool.c:386 This is a type mismatch error. It looks like __fls() on sparc64 returns 'int'. And the ttm_pool.c code assumes it returns 'unsigned long'. Oddly enough, the very line after that line does "min_t(unsigned int" to get the types in line. So the immediate reason is "sparc64 is different". But the deeper reason seems to be that ttm_pool.c has odd type assumptions. But that warning should have been fixed long ago, either way. Christian/Huang? I get the feeling that both lines in that file should use the min_t(). Hmm? - drivers/input/joystick/analog.c:160 #warning Precise timer not defined for this architecture. Unfortunate. I suspect that warning just has to be removed. It has never caused anything to be fixed, it's old to the point of predating the git history. Dmitry? - at least a couple of stringop-overread errors. Attached is a possible for for one of them. The stringop overread is odd, because another one of them is fs/qnx4/dir.c: In function =E2=80=98qnx4_readdir=E2=80=99: fs/qnx4/dir.c:51:32: error: =E2=80=98strnlen=E2=80=99 specified bound 48= exceeds source size 16 [-Werror=3Dstringop-overread] 51 | size =3D strnlen(de->di_fname, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ but I'm not seeing why that one happens on sparc64, but not on arm64 or x86-64. There doesn't seem to be anything architecture-specific anywhere in that area. Funky. Davem - attached patch compiles cleanly for me, but I'm not sure it's necessarily the right thing to do, and I didn't check the code generation. Maybe it screws up. Can somebody test on sparc64 and perhaps think about it more than I did? Linus --0000000000007e9f4d05cb5bb242 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_kt98r8e00 IGFyY2gvc3BhcmMva2VybmVsL21kZXNjLmMgfCAzICsrLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5z ZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2FyY2gvc3BhcmMva2VybmVs L21kZXNjLmMgYi9hcmNoL3NwYXJjL2tlcm5lbC9tZGVzYy5jCmluZGV4IDhlNjQ1ZGRhYzU4ZS4u MzBmMTcxYjdiMDBjIDEwMDY0NAotLS0gYS9hcmNoL3NwYXJjL2tlcm5lbC9tZGVzYy5jCisrKyBi L2FyY2gvc3BhcmMva2VybmVsL21kZXNjLmMKQEAgLTM5LDYgKzM5LDcgQEAgc3RydWN0IG1kZXNj X2hkciB7CiAJdTMyCW5vZGVfc3o7IC8qIG5vZGUgYmxvY2sgc2l6ZSAqLwogCXUzMgluYW1lX3N6 OyAvKiBuYW1lIGJsb2NrIHNpemUgKi8KIAl1MzIJZGF0YV9zejsgLyogZGF0YSBibG9jayBzaXpl ICovCisJY2hhcglkYXRhW107CiB9IF9fYXR0cmlidXRlX18oKGFsaWduZWQoMTYpKSk7CiAKIHN0 cnVjdCBtZGVzY19lbGVtIHsKQEAgLTYxMiw3ICs2MTMsNyBAQCBFWFBPUlRfU1lNQk9MKG1kZXNj X2dldF9ub2RlX2luZm8pOwogCiBzdGF0aWMgc3RydWN0IG1kZXNjX2VsZW0gKm5vZGVfYmxvY2so c3RydWN0IG1kZXNjX2hkciAqbWRlc2MpCiB7Ci0JcmV0dXJuIChzdHJ1Y3QgbWRlc2NfZWxlbSAq KSAobWRlc2MgKyAxKTsKKwlyZXR1cm4gKHN0cnVjdCBtZGVzY19lbGVtICopIG1kZXNjLT5kYXRh OwogfQogCiBzdGF0aWMgdm9pZCAqbmFtZV9ibG9jayhzdHJ1Y3QgbWRlc2NfaGRyICptZGVzYykK --0000000000007e9f4d05cb5bb242--