Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1331120pxb; Wed, 2 Feb 2022 02:26:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4XWguNfMhdric49eRPz/1g5qsY910r7HfxtIl7dj+s2ht4KFVkgQLbQ5QbW5SkEGnSLnu X-Received: by 2002:a17:90a:4109:: with SMTP id u9mr7330658pjf.120.1643797603527; Wed, 02 Feb 2022 02:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643797603; cv=none; d=google.com; s=arc-20160816; b=0UiSxw55h7TaxYcCWZAZc74pH4Qn8+tmWzd66wyTdJfHTNqp5VIqk1A+zooxuAEJrE Xk4qmbnC/LctiesU5i70GXcNxTXEf54G7YfC8xfd0LFEbjte3tpSWneIDskQcA7ovSnx WgK7cBRyxIrtOesj7AfYlVaBu7cKRH7ka9LKQTkZCocAev3ckUB9YtbDYUeGjmtlQ6xc t2bEafzcm98h/ulo7Req52ohAuTLk+DUm2czi+UxogrDAkyj9KQSBkgj94iG+gyXvfnf l22ewO2cYD4s2ylKM4Lwge0AV9onaEaoBQ3h18qXYD2c6RV7GKe3KV6Z82Dgn1jRB4E3 J3tw== 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; bh=UgWLFKxPvVKkWnT0KxmOdehPnILGw68xhTorjRahT50=; b=SEK9Da6jOypLami2tyHRUDi5+p+PEqUZiMrWbc1NDhXvHq8AK7tAb3KH/Gdoi6oFWz KqHy7+oUiHpUm/TVQsWqTBFi1Qv9h4OY9uL3p6AJ4HQRLHztKn5YNwegdh+R623wrGJM bVzZ0y0t90JoBBCNHu668wd5UBXGLiye2EEZYhix+O5JAEzFOU4sZYuU/qQbhsbGuJ7Q Qg60G5UuZVlmsy/qCoPOxuODCDV5OZzJJlhuaBtiAVg/oz8lwE0AxwPtGv5pcRS/bWUb Ef766sO1Yb3TXPfY7oT9mpOEfj+By0RPZqqAEnOCtMCGExfBBSallCbSrEuCaLd5lmyj Ozrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t70si12867617pgd.851.2022.02.02.02.26.31; Wed, 02 Feb 2022 02:26:43 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243557AbiBBIM0 (ORCPT + 99 others); Wed, 2 Feb 2022 03:12:26 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:34479 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbiBBIMZ (ORCPT ); Wed, 2 Feb 2022 03:12:25 -0500 Received: from mail-ot1-f41.google.com ([209.85.210.41]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MmCyE-1mXHHE0ruy-00i8zw; Wed, 02 Feb 2022 09:12:24 +0100 Received: by mail-ot1-f41.google.com with SMTP id g15-20020a9d6b0f000000b005a062b0dc12so18723093otp.4; Wed, 02 Feb 2022 00:12:23 -0800 (PST) X-Gm-Message-State: AOAM531LUQ2yq1oT+wq/HOQMYue3ShWOE012LvyObfdhRIgkGCEilCj3 O12ZoXx2QDnsq4wcjd5YVk0XWEceu3LcjvRAu1c= X-Received: by 2002:a9d:654f:: with SMTP id q15mr16551925otl.119.1643789542701; Wed, 02 Feb 2022 00:12:22 -0800 (PST) MIME-Version: 1.0 References: <20220201232229.2992968-1-nathan@kernel.org> In-Reply-To: <20220201232229.2992968-1-nathan@kernel.org> From: Arnd Bergmann Date: Wed, 2 Feb 2022 09:12:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Makefile.extrawarn: Move -Wunaligned-access to W=2 To: Nathan Chancellor Cc: Masahiro Yamada , Nick Desaulniers , Arnd Bergmann , Linux Kbuild mailing list , Linux Kernel Mailing List , llvm@lists.linux.dev, "# 3.4.x" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:mt6tbiBySZHfkxm45G7nxfsst3aa9Qkpr11AXBACtiMx6RWuAA8 g1nSh7H8TEVnHQeqiFAOJdkbI+I5VrlZSWIB6r+WbESRKD59YIrisvNmbXTgqwMxyiE5oK+ Ilq8Q1mMoCbX8OJnwBH9C7jjj6ewSOXA5BHUuTZ6l2NlmFmraMRxAyPgPdthKeuKNRcVlSn QHwE39GrKMy7j9qttHUxg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:kqe6ME5tNYg=:cBHBgE5qbSlhnrADEmCA7v SOJZETRaMq/uLBzMqmk9PdZs8NyHbxxAm3XH//7B2r9zTJ7T1bqe+QyZctVF6iT4FVfjeSlgm aF5RAXxpMEf5DzPEG0nusfWPX5ge3/pkbgzkNkmm3TByWOJPxjJNvG+KDQCcwk3MHFqw2brMq LYoUaduUocOXUvP94pPqsSwlCITM9ggqa6iSR3iuIFIZFG8E8CKiv2cNo4nnOByRjROtzmQ5T jtAbwcPRX3J7FjB5782BxhPxCsB7hnTvoG8D3STYxSuTn1YBhTYeeAe5XzpgAtzdRDHC370gP tLwSDcnl0UiZ02NaykRMv/gzZQ349G4ljEQhmYOhDe5sZYtHZexPCWkHlBrcRi/bWea/Ak9gv r0AbeQOuqdvTikSUkGAaObvPGIQLzDmwMB5HlNX3uEIPBuPXdHXjbTvo4sw4tkTT43yXojxxP 9itjVFKb3rM7zpepjg02B1/FZgMz0yVQdH6HpVWJ7NSIb1f4XToSfYvNwJq0tHB4ei3SmIcmG 5UrN1i4ok+shUkHare7+5LJrLaBUgZK3sJALlw24E2o6zwEdx8aUbEYlsrMlR1rpK9uPVChGz dDXYNOwoos1Pzo9SXK6vyPb3KWj0ArZccHBjreB6lDI/+8ENNYnvdOjPagAguGZwqHp2oTHv7 4sE8m6acPBcxrIvxxlTvRPgvAuyqRv/os/n9n7zL6dYow+fGksoDsPb0eUoocUAK/mW2p/jRc cQ0UXlK1AVrxaUWdrJVvDBVKR4/F8gXTuPgrfCzig6bacje/Qe5XrYnWfkQFAKGTOJsUV+GyF JLzz6tYayun4NT4bQeVY3MSK85DyY9pqmrO7b3hbHdXOustwV4= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 2, 2022 at 12:22 AM Nathan Chancellor wrote: > > -Wunaligned-access is a new warning in clang that is default enabled for > arm and arm64 under certain circumstances within the clang frontend (see > LLVM commit below). Under an ARCH=arm allmodconfig, there are > 1284 total/70 unique instances of this warning (most of the instances > are in header files), which is quite noisy. > > To keep the build green through CONFIG_WERROR, only allow this warning > with W=2, which seems appropriate according to its description: > "warnings which occur quite often but may still be relevant". > > This intentionally does not use the -Wno-... + -W... pattern that the > rest of the Makefile does because this warning is not enabled for > anything other than certain arm and arm64 configurations within clang so > it should only be "not disabled", rather than explicitly enabled, so > that other architectures are not disturbed by the warning. > > Cc: stable@vger.kernel.org > Link: https://github.com/llvm/llvm-project/commit/35737df4dcd28534bd3090157c224c19b501278a > Signed-off-by: Nathan Chancellor The warning seems important enough to be considered for W=1 on 32-bit arm, otherwise the chances of anyone actually fixing drivers for it is relatively slim. Can you point post the (sufficiently trimmed) output that you get with the warning enabled in an allmodconfig build? I'm not sure why this is enabled by default for arm64, which does not have the problem with fixup handlers. Arnd