From patchwork Mon Jan 25 12:45:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 370586 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4655356jam; Mon, 25 Jan 2021 21:58:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXpSbin3gNyD5CbxIg5pyb7xpgS4SeuyY5fbGQKVyvzou4QiNxuSMOPKe82/C6L5ht1bAO X-Received: by 2002:a50:852a:: with SMTP id 39mr3350862edr.114.1611640724284; Mon, 25 Jan 2021 21:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611640724; cv=none; d=google.com; s=arc-20160816; b=LSUZb2E+KBHYxq6RYqo7lGOoWNCRbZEcm39DnZ57O85DEXigkDNqcV/EnQfB2vHFyW DtOU5+CwLAb8zmAKcZ5BdpfKojdZDhO0tSO9ZShK8bu3SgvC1xN5y5OaEyc5fuUxziC5 8aDGd0KE61wah6EQYouC/kYGKDBzZ1+BKVg7Kj+AhyhYciCPCBekKqwRaZoil63edwJN chXkInpkzK02tuK/FP7Y6O/8CR4pnnK9MXgqzU3wreaaPu6YXh3KsG2d9wsi06KUp1lm J8KU0FlDYP5TEurVgyocZ5zuKqRImbCB9JigWgAndDPBcbWMpAFhiqn5xT8tj5rplbG0 5TOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rt6Pp9nqQyUqDGkSdRtFSQ+7937k+2jhCBdIcbCXd88=; b=QvAX3c+2DxNXUAqTM7tGKACcU8msp6NsDJpIXT+NR5cFMnbdmHi8WE9dksDW3PxsZx txfrej9IsW0WaDIHE9nCMj/FA2Vm3s5whYsk6Ya2fMlpRx5+Zv8CZshEpKDDiQWSjMmL HH1vrwsbVzt4Nhw4o4g4bPh82xENQuYRbFqhmVWD4AS+QFv5A6P1bRwoOr+hFHFbOMgO S4BtceViPwdQ0FDYc5i5xL1VDxItyKrnh2aFRLlFLXA++1JZbsHG/zeg5xeBrzcZ6URA XD2KtTDL72oEa7eIp5rtEjDWZkTskjq3ZbC0bB7fVWcIENlot7Wln+/b9vw9wMwnXwPO NwKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dbt1781s; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv5si6843139ejb.231.2021.01.25.21.58.44; Mon, 25 Jan 2021 21:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kselftest-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=@kernel.org header.s=k20201202 header.b=dbt1781s; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731421AbhAZF6Y (ORCPT + 6 others); Tue, 26 Jan 2021 00:58:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:39582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728248AbhAYMq6 (ORCPT ); Mon, 25 Jan 2021 07:46:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE3B322AAC; Mon, 25 Jan 2021 12:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611578774; bh=ls2cUHUbFUJZ5qjE5yPv0cWaPnFNVfjXn2kCI4yqF5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dbt1781s8CYoMRuC3iRVY6S4Q8wyRMTGTV/uVaSH7xGTA7Sq50aR1Da+j0THyPwEN Lg/0vj9dgK/avaAqitMt7Qm3UQOBJe+fq8hL4781KwCvL0cW7we0f3l+LFO7hQ1MQ/ Z1nuF1wO4CSzefOqzW9XkBzBbo/NcEQ6DRit4gPwwM+evLGoJk5uys201GYs72UuX8 bOjzG5u/qjzWyf5WRdsybXJqkQ5QLrn5/8SByNFyiQ+VESNfqoNWsl04qhOXx1LKoW MM8LtQuNmCYfsCfwuFq46hHJJQlDsHsCspe8R+3y+6PI7RoPQGC9mSCq4sHqy2DUT5 arOSNYiKNVM2A== From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Brendan Higgins , Shuah Khan , Geert Uytterhoeven , Alan Maguire , Dmitry Torokhov , Mika Westerberg , Vitor Massaru Iha , linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [RFC 2/3] drivers/base: build kunit tests without structleak plugin Date: Mon, 25 Jan 2021 13:45:27 +0100 Message-Id: <20210125124533.101339-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210125124533.101339-1-arnd@kernel.org> References: <20210125124533.101339-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org From: Arnd Bergmann The structleak plugin causes the stack frame size to grow immensely: drivers/base/test/property-entry-test.c: In function 'pe_test_reference': drivers/base/test/property-entry-test.c:481:1: error: the frame size of 2640 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] 481 | } | ^ drivers/base/test/property-entry-test.c: In function 'pe_test_uints': drivers/base/test/property-entry-test.c:99:1: error: the frame size of 2592 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] Turn it off in this file. Signed-off-by: Arnd Bergmann --- drivers/base/test/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/base/test/Makefile b/drivers/base/test/Makefile index 3ca56367c84b..2f15fae8625f 100644 --- a/drivers/base/test/Makefile +++ b/drivers/base/test/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o +CFLAGS_REMOVE_property-entry-test.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all