From patchwork Thu Oct 6 19:20:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 13000690 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A82EC433FE for ; Thu, 6 Oct 2022 19:21:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbiJFTVi (ORCPT ); Thu, 6 Oct 2022 15:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiJFTU4 (ORCPT ); Thu, 6 Oct 2022 15:20:56 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F361B8D0FB for ; Thu, 6 Oct 2022 12:20:55 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id f140so2975445pfa.1 for ; Thu, 06 Oct 2022 12:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=6tAF1hlKcRXRaglDyCMR3c9nGqh5Uv8s0KPPalHG8Lo=; b=m42jC3QQ45EZrv9ciU7E6Bsoxm+6yP574gRbkfmVlNXV7lq8SmCSUXzuW2LT6hCpqR maqsDe/ELxw8IOcN9O2THLkKMoh7j79XqVCwGP3LjemyLoUs1FeIQiwCdhCDmUBTB/Uq t2t8p7T/LTM7nOTFsHPazbR/o3E1tDyzQZU0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=6tAF1hlKcRXRaglDyCMR3c9nGqh5Uv8s0KPPalHG8Lo=; b=Sfth9l8l/lBWFLHKiOpCCNlK30XPCU9Icl7ipct8ByekAfcI7EeA8U9+kR5cYycpAS E/FFJVbQeqmieYzGJZOnWjk5ep2pP3tgeWwrUjJ5mnehbdM1QdMKbcKkwMMaXdbhAiIn 4nekhXbVDFJL6e4EULnC/eEUrFEHw9prdxPELJocgDIC5KbWzfjuPMNqOFOTf7nicmKc W/xHY60FmeQb5RlboZK4YJ+xBYID6cU4DAaJC2RUb8btsexJP3qh/dh2ka7wyy/KQ4qJ UudUYYc8roDa2pxNh0Vs3xQe5cw2xIcNwsIcfk3mTBJIKf5A5Si2wEO3e0IfMQSWC+5L X+hw== X-Gm-Message-State: ACrzQf2hN3SrpZ0k2Lx5P4TR4K/GgAeiqdrnhtzGAqGC5hynN1SI1Azi AtjNI/6fgDe+3Ce6xz3xlB0zkw== X-Google-Smtp-Source: AMsMyM6/Af9FYpQkSADmEp8NGwuvcd4cDCoe/9P+QYpwLMh5Jy0ea+KZ2vHqGQkCd1HD33R12fG6eQ== X-Received: by 2002:a05:6a00:1a91:b0:562:b0b9:272f with SMTP id e17-20020a056a001a9100b00562b0b9272fmr440985pfv.71.1665084055494; Thu, 06 Oct 2022 12:20:55 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id k3-20020a632403000000b00439920bfcbdsm103398pgk.46.2022.10.06.12.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:20:54 -0700 (PDT) From: Kees Cook To: Felix Fietkau , John Crispin , Sean Wang , Mark Lee Cc: Kees Cook , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH] net: ethernet: mediatek: Remove -Warray-bounds exception Date: Thu, 6 Oct 2022 12:20:52 -0700 Message-Id: <20221006192052.1742948-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org GCC-12 emits false positive -Warray-bounds warnings with CONFIG_UBSAN_SHIFT (-fsanitize=shift). This is fixed in GCC 13[1], and there is top-level Makefile logic to remove -Warray-bounds for known-bad GCC versions staring with commit f0be87c42cbd ("gcc-12: disable '-Warray-bounds' universally for now"). Remove the local work-around. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679 Signed-off-by: Kees Cook --- drivers/net/ethernet/mediatek/Makefile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/mediatek/Makefile b/drivers/net/ethernet/mediatek/Makefile index fe66ba8793cf..45ba0970504a 100644 --- a/drivers/net/ethernet/mediatek/Makefile +++ b/drivers/net/ethernet/mediatek/Makefile @@ -11,8 +11,3 @@ mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_debugfs.o endif obj-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_ops.o obj-$(CONFIG_NET_MEDIATEK_STAR_EMAC) += mtk_star_emac.o - -# FIXME: temporarily silence -Warray-bounds on non W=1+ builds -ifndef KBUILD_EXTRA_WARN -CFLAGS_mtk_ppe.o += -Wno-array-bounds -endif