From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03045C433EF for ; Thu, 21 Oct 2021 00:21:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DEE1561354 for ; Thu, 21 Oct 2021 00:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231529AbhJUAXN (ORCPT ); Wed, 20 Oct 2021 20:23:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:42068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231453AbhJUAXI (ORCPT ); Wed, 20 Oct 2021 20:23:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BBFCB6128E; Thu, 21 Oct 2021 00:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634775653; bh=Jp/LtOfV9PqFomRlVTg0uqUKP1LxKDBW4p2FwcZfc8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GREZ5qclDnKJh3R/RfxPFwJMPcYA7WidnrPikOSADL4WrOk24KPLNt7AWxZH9wsRx 4waGl8UAsxipdWEEbjN9eNKaNtFI/BEO0nMwPAmH0cMZgW9KTyRSO7cw1MiIgLtTUL 8LsPGRVj4Pom2TC0JpIdnbAdjkLFetr2X2zr+YPR0I12JfagNpzQHficmCMACEUhkJ gC9JAoGUJZStazpwoX7fu5ic77o9vQkz9mz/7uFVFdQ4RKvY043eK/brY5lQZu0wWt JfC2gb9dJR0myDAemp0xKJgri7xfPli8kE+E5zFXdOV8ck5pcr5TfWCJPeokL0vqcN 9qgudDPqAPL9w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Brendan Higgins , Arnd Bergmann , Mika Westerberg , Kees Cook , Shuah Khan , Sasha Levin , andreas.noever@gmail.com, michael.jamet@intel.com, YehezkelShB@gmail.com, linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 06/26] thunderbolt: build kunit tests without structleak plugin Date: Wed, 20 Oct 2021 20:20:03 -0400 Message-Id: <20211021002023.1128949-6-sashal@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211021002023.1128949-1-sashal@kernel.org> References: <20211021002023.1128949-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brendan Higgins [ Upstream commit 33d4951e021bb67ebd6bdb01f3d437c0f45b3c0c ] The structleak plugin causes the stack frame size to grow immensely when used with KUnit: drivers/thunderbolt/test.c:1529:1: error: the frame size of 1176 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Turn it off in this file. Linus already split up tests in this file, so this change *should* be redundant now. Signed-off-by: Brendan Higgins Suggested-by: Arnd Bergmann Acked-by: Mika Westerberg Reviewed-by: Kees Cook Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- drivers/thunderbolt/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thunderbolt/Makefile b/drivers/thunderbolt/Makefile index da19d7987d00..78fd365893c1 100644 --- a/drivers/thunderbolt/Makefile +++ b/drivers/thunderbolt/Makefile @@ -7,6 +7,7 @@ thunderbolt-objs += usb4_port.o nvm.o retimer.o quirks.o thunderbolt-${CONFIG_ACPI} += acpi.o thunderbolt-$(CONFIG_DEBUG_FS) += debugfs.o thunderbolt-${CONFIG_USB4_KUNIT_TEST} += test.o +CFLAGS_test.o += $(DISABLE_STRUCTLEAK_PLUGIN) thunderbolt_dma_test-${CONFIG_USB4_DMA_TEST} += dma_test.o obj-$(CONFIG_USB4_DMA_TEST) += thunderbolt_dma_test.o -- 2.33.0