Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp743395pxb; Mon, 25 Oct 2021 17:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEAoDATq9FNEEymH+hpAyv4BMsS9g6sruWJGuT2t2Uk0NzrUhQIVQul/WCK9FNSon3Axr3 X-Received: by 2002:a05:6a00:26db:b0:47b:d469:5be0 with SMTP id p27-20020a056a0026db00b0047bd4695be0mr18783015pfw.64.1635209868836; Mon, 25 Oct 2021 17:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635209868; cv=none; d=google.com; s=arc-20160816; b=lJY0/kCThHLTZByJAXg/6edDBMx9Y7LmPsIZqhjKQ0Vd5EQfkYukqgil4eLpNAgzJF UKsHX8p8eWqzw8uoe/cynh1QtZm075pk6rDGnKmxZJTv67jhlQqxrLnU5TEqFOAcdip3 BbhhIP2/K9acDKEuENln2eSuwtYdRX/5HDCculX8rDVIeRK7BXqRPrsy8X+SrBl2SLqH WIq+VdqQRS4qlQzYunNeBljdpIFHFHpD7k2Xa+1V0I6EqZsOgsF24xDaBEGMZ+1EeGoX 8KgbFYNcICfrGfjrM62XOG3+g7geB9/zeugK+PmUFu6Z2/DP3MqCOe0uGMLAKl+ZO4Tc Er+g== 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=gmk57+NPDnLTFBboGi+1SwO5l66YJwNC4lCGIvv8SlU=; b=eCfG/lxRtGu2nUvD0UTaQLZx7f1u4HVJayhjCh/D+fvUQkpl1L31TC2U4/5JeAN2qO enXUQ/6feKgQ5mHyHU5S/UE1rZR1tbBKmiauOchaF+Reg06/qLN66tY5KYNc8o11Y+JE NcAzehfzSOQos20XzcLN1n+tmuzSn4Jpy1YRtP7yBmKyBP2V2YLZVy9JQAcZumyMCsJ0 EIQGw2aZ7/RJ8aTDZ1SbtEHXb5zGUvW7L/xQySKc2VsoPguzpjOllN6wUZOm5zyDadKB 0DIfV4NcHI13X5EzlNfDC9pFsHoUZhzo3SXnmuRykWpTizHZkdHIzqJjnshnvaoxlrv6 jiag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eGFvKLeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si27238739plq.378.2021.10.25.17.57.36; Mon, 25 Oct 2021 17:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eGFvKLeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240220AbhJYT7A (ORCPT + 99 others); Mon, 25 Oct 2021 15:59:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239326AbhJYTyh (ORCPT ); Mon, 25 Oct 2021 15:54:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6D12611BD; Mon, 25 Oct 2021 19:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635191120; bh=wHnaPwbGdkGyJ5IVRy5XqjNA7QEAET8Qz2Sy3061jyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eGFvKLeQr3+jnkONI2jJbcQDzD5oGjaKroT8motRmYtjk+Coh3dHBY62FNVKbsLVn oQ2va7XDIXzXCImAarIH+Aszu8m7MU3NWDyl1q7ubZH5ryeJXdSSEkIJWnkwKewhx3 2sNz2R4swvktLF9oSWYOm8L/vA/p/a+B1cLHBV6o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brendan Higgins , Arnd Bergmann , Kees Cook , Shuah Khan , Sasha Levin Subject: [PATCH 5.14 129/169] device property: build kunit tests without structleak plugin Date: Mon, 25 Oct 2021 21:15:10 +0200 Message-Id: <20211025191034.060674188@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025191017.756020307@linuxfoundation.org> References: <20211025191017.756020307@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brendan Higgins [ Upstream commit 6a1e2d93d55b000962b82b9a080006446150b022 ] The structleak plugin causes the stack frame size to grow immensely when used with KUnit: ../drivers/base/test/property-entry-test.c:492:1: warning: the frame size of 2832 bytes is larger than 2048 bytes [-Wframe-larger-than=] ../drivers/base/test/property-entry-test.c:322:1: warning: the frame size of 2080 bytes is larger than 2048 bytes [-Wframe-larger-than=] ../drivers/base/test/property-entry-test.c:250:1: warning: the frame size of 4976 bytes is larger than 2048 bytes [-Wframe-larger-than=] ../drivers/base/test/property-entry-test.c:115:1: warning: the frame size of 3280 bytes is larger than 2048 bytes [-Wframe-larger-than=] Turn it off in this file. Signed-off-by: Brendan Higgins Suggested-by: Arnd Bergmann Reviewed-by: Kees Cook Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- drivers/base/test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/test/Makefile b/drivers/base/test/Makefile index 64b2f3d744d5..7f76fee6f989 100644 --- a/drivers/base/test/Makefile +++ b/drivers/base/test/Makefile @@ -2,4 +2,4 @@ obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o obj-$(CONFIG_DRIVER_PE_KUNIT_TEST) += property-entry-test.o -CFLAGS_REMOVE_property-entry-test.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all +CFLAGS_property-entry-test.o += $(DISABLE_STRUCTLEAK_PLUGIN) -- 2.33.0