Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4188092pxb; Mon, 21 Feb 2022 14:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYxd5q1JLwE40Lf7mVXunlR5Qphzmeo7L76uMtSoKr2S2ME3v4QTq3j04Tp9TdzacfwI3x X-Received: by 2002:a17:906:130a:b0:6b7:5e48:350a with SMTP id w10-20020a170906130a00b006b75e48350amr16998702ejb.184.1645481986080; Mon, 21 Feb 2022 14:19:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645481986; cv=none; d=google.com; s=arc-20160816; b=ZxG6Jygu6xn1clcFjztmBXCRnb9PArTu2GTZ3bDlWjz89OAc+KA+gIUVjTtRd/bYlH akprOn1lOB4NYyqu39PVLMo+A0UaEiVfAUVN6ucHhy6k9hxMpD8RfeiwvBvJeFiw/LT9 RJsFMUkUVGr6Q9I8TVp9olJAcMpAACf3Tb53FFWgjAGPReZsokVRXJr5kTovLgqXwMyo YSB0vC4SKwuseG8mvRf0AYKB8eM65o09KihnS2CLh/qBCxwpv19cVDO/sxHvpgPGDbL2 q523g28pMfmlTNlm3o7YwhiN7L7t/ygdpt9mW399ADzOWZDLyY6BfXtJovBPfDB3k3KY GOAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TsSJQ9Yb5SmreSTVulwz2YaDDd3jCHqJ0+Cp7g9HqxM=; b=rXMj2/X8C7dbrzcmVgmx5h29m8Snc2gQKmEXdi2DsOWK6g6BjN2HkirAvOI45Nq4M3 DgEfua3HmgLstE3R12SkReSgNjlFVKZ4Zs/rY3AqaxJeGuynOHomoEic9n60TuES6m0r kucZictCdM4NJMSFoh+7GkPGqBfloScW/o6q+Txnf8J0/czH2ZTaX1gLpdLwEg2lJFme bbvPsb3Z9ITbP7PXmsS8H8u2a5Gj+TwaEC6InkScqLB9iH+d41LNOqd9QTGrk0Aa0yQG sA5Gd65Krn50M+kZ6+i0sC/C6TnoK04EIBUcw/Cku9tNfdmqoFNbZ7zVHc8cGncXWE7x hsjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fA4yjMaT; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw22si11929113ejc.925.2022.02.21.14.19.23; Mon, 21 Feb 2022 14:19:46 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fA4yjMaT; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346519AbiBUI7c (ORCPT + 99 others); Mon, 21 Feb 2022 03:59:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:32962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346897AbiBUI7S (ORCPT ); Mon, 21 Feb 2022 03:59:18 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D979B25E91; Mon, 21 Feb 2022 00:54:57 -0800 (PST) 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 E0421B80EAC; Mon, 21 Feb 2022 08:54:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F09E5C340E9; Mon, 21 Feb 2022 08:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433692; bh=PL+85GFZzWd3G9uSX02dxj6cDoZ3GyVAS76x3H2RLoY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fA4yjMaT9v/rV/Z2YYtK8ix458QOBYnfg3OSXhAVleKzogTNohjQ0wQnRpsJ1dk+O PeqvsV+f3rPPqrUKLRNM17LD4kltIGcQ68y3wEc3oNA3qTl9A4T/h73KLKwgUQsgpi +9C9H5y155eoeErLoaQ3bzw3OlmL5xUB9OXmkiro= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Masahiro Yamada Subject: [PATCH 4.19 01/58] Makefile.extrawarn: Move -Wunaligned-access to W=1 Date: Mon, 21 Feb 2022 09:48:54 +0100 Message-Id: <20220221084911.942463108@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084911.895146879@linuxfoundation.org> References: <20220221084911.895146879@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Nathan Chancellor commit 1cf5f151d25fcca94689efd91afa0253621fb33a upstream. -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). On v5.17-rc2, an ARCH=arm allmodconfig build shows 1284 total/70 unique instances of this warning (most of the instances are in header files), which is quite noisy. To keep a normal build green through CONFIG_WERROR, only show this warning with W=1, which will allow automated build systems to catch new instances of the warning so that the total number can be driven down to zero eventually since catching unaligned accesses at compile time would be generally useful. Cc: stable@vger.kernel.org Link: https://github.com/llvm/llvm-project/commit/35737df4dcd28534bd3090157c224c19b501278a Link: https://github.com/ClangBuiltLinux/linux/issues/1569 Link: https://github.com/ClangBuiltLinux/linux/issues/1576 Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Signed-off-by: Masahiro Yamada [nathan: Fix conflict due to lack of afe956c577b2d] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -73,5 +73,6 @@ KBUILD_CFLAGS += $(call cc-disable-warni KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length) KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized) KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) +KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access) endif endif