Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5983311pxb; Mon, 14 Feb 2022 12:19:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBL76lXobWdTtWsxO6irbwjELz9J97S1dZIfgAwqDuR9W0Nd920F45WttLrNJyTgBTgwd5 X-Received: by 2002:a17:90a:1946:: with SMTP id 6mr393994pjh.122.1644869988438; Mon, 14 Feb 2022 12:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644869988; cv=none; d=google.com; s=arc-20160816; b=OMmI7FxhzsUeQiVH55SM05i1m5om0XDw6qbkvxrpaIr7fjSNstuN8q6ZwaHHt7XdZG Y0zZc3S2FM0fIZl1pLfEo3+yKM3l17eX0ftCPfhBkmgtc0kNZD0NBxGW/OgMvZsmzz2a n8Z+1pSReK0ZzUqefab1CcLlkH14Nfv/Jrk8I2xuzWXZA3zqEeEXvr6D9GCg/sq5B5Rn JENpZCEx3jhtm+pPOm7dZ4b+TRj5x+pIJSvtfPW+ksR6ENXX5WULP861uA27pXgARH4x bij4p58v0nLTE4FS+95wLW6BiaGhMqy9NcwbUmj/NThgh++HHImpvht4YXIsydUCEHMI iiJw== 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=OQzjRk610DtCfKd5+bi3kjE/NAxZZxmVTlGit/i1Vgo=; b=SvJM6jVTPs+Q5mLHhB154PqLrnQa1FealhwSmbnQtV4+GSFjXqjzamBDknCbOuYk3j nbKsnFR/qAcTUswNXCn1kwhd/7JCcxs2r5pBmEQdK9yg2CRsajCFWEBeI/bleXEGhLFR +bqetC49S49/7zBym8MCNadFv6KZlD1eLIoYpFaY4zEUm27fHzIG0FeihC9e851vm1jV KOw/ISGUuUqxm8dYiSDZrX8QeCIi8d+zIRqUl7SkxgY2IPmkia925PjAJpLIQKtR46t6 dyvAOaXX/9hoH/2VtNEzE7IWMOOBxByU8jyF/yOGz8fqjWeYN7JpZmnBO//VzrnVqZ7m siOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kIq/D3nm"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h18si8797398plf.517.2022.02.14.12.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:19:48 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kIq/D3nm"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D30E172E70; Mon, 14 Feb 2022 11:53:35 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239405AbiBNKCB (ORCPT + 99 others); Mon, 14 Feb 2022 05:02:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344351AbiBNJ4K (ORCPT ); Mon, 14 Feb 2022 04:56:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4417E6CA5D; Mon, 14 Feb 2022 01:44:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D24D160FA2; Mon, 14 Feb 2022 09:44:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6DE9C340E9; Mon, 14 Feb 2022 09:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831869; bh=3AAAJwkkpJAVdQ8g3D/3TqrN1ZQgpjd4xMjw1mc5W6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kIq/D3nmJiL3D3oro4Ky8mmwm5GyMyctETowYF2FShUAFiraWaddRycI8o3HWL7Q6 2V6RyYC59kZQI9C2TMesL0+9pzdGhNBx9zzcp5tUBbcfBPVgaKkj0W2zk9J1LCC8Co vVj1kLpr/R6xpNOp1eLaEvZXWYMOgnS4329YN7oM= 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 5.10 110/116] Makefile.extrawarn: Move -Wunaligned-access to W=1 Date: Mon, 14 Feb 2022 10:26:49 +0100 Message-Id: <20220214092502.592945425@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Signed-off-by: Greg Kroah-Hartman --- scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -51,6 +51,7 @@ KBUILD_CFLAGS += -Wno-sign-compare KBUILD_CFLAGS += -Wno-format-zero-length KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) KBUILD_CFLAGS += -Wno-tautological-constant-out-of-range-compare +KBUILD_CFLAGS += $(call cc-disable-warning, unaligned-access) endif endif