Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753812AbbDHPil (ORCPT ); Wed, 8 Apr 2015 11:38:41 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50235 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbbDHPih (ORCPT ); Wed, 8 Apr 2015 11:38:37 -0400 X-AuditID: cbfec7f4-b7f106d0000013ec-8a-55254acd6ef5 From: Andrey Ryabinin To: Andrew Morton Cc: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andrey Ryabinin Subject: [PATCH] kasan: Makefile: shut up warnings if CONFIG_COMPILE_TEST=y Date: Wed, 08 Apr 2015 18:38:25 +0300 Message-id: <1428507505-4015-1-git-send-email-a.ryabinin@samsung.com> X-Mailer: git-send-email 2.3.5 In-reply-to: <20150407160213.8f66c90ca812c30f362dd543@linux-foundation.org> References: <20150407160213.8f66c90ca812c30f362dd543@linux-foundation.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t/xK7pnvVRDDeZ3MVls+/WIzWLO+jVs Fn927WCyuLxrDptFy74LTA6sHidm/Gbx6NuyitHjzIIj7B6fN8kFsERx2aSk5mSWpRbp2yVw ZZx+N4Gl4AlXxctXu5gaGI9ydDFyckgImEj8a3zCBmGLSVy4tx7I5uIQEljKKLH29h4WCKeP SeLMrPfMIFVsAnoS/2ZtB+sQEdCVWPV8FzNIEbNAJ6PE6fdXwRLCAt4S7/5cZwKxWQRUJXb+ /MgOYvMKuEq0/F/HDrFOTuLq18tgNidQ/cQv81lAbCEBL4nni5ewTmDkXcDIsIpRNLU0uaA4 KT3XUK84Mbe4NC9dLzk/dxMjJHS+7GBcfMzqEKMAB6MSD6/FMZVQIdbEsuLK3EOMEhzMSiK8 fMDAE+JNSaysSi3Kjy8qzUktPsTIxMEp1cCo+OqosItsxCGdOyft9j2RzpqjO+HoxbbIe99X 1XLsvXo/aHPj9MUFc8/5GdzL9ipjt/kkxvPn39oTdz1uJwgKe3UoJSd7mTw15f38YsaZN5Lx O9lm/Be89NUrd98dw53/rr3a/SXxh3JP5ftidecA8Zl6lW0rcp46Hjp5wGd5v/yic0YpOUoK SizFGYmGWsxFxYkAg4AWdvsBAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 43 It might be annoying to constantly see this: scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler while performing allmodconfig/allyesconfig build tests. Disable this warning if CONFIG_COMPILE_TEST=y. Signed-off-by: Andrey Ryabinin --- scripts/Makefile.kasan | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.kasan b/scripts/Makefile.kasan index 631619b..3f874d2 100644 --- a/scripts/Makefile.kasan +++ b/scripts/Makefile.kasan @@ -13,12 +13,16 @@ CFLAGS_KASAN := $(call cc-option, -fsanitize=kernel-address \ --param asan-instrumentation-with-call-threshold=$(call_threshold)) ifeq ($(call cc-option, $(CFLAGS_KASAN_MINIMAL) -Werror),) + ifneq ($(CONFIG_COMPILE_TEST),y) $(warning Cannot use CONFIG_KASAN: \ -fsanitize=kernel-address is not supported by compiler) + endif else ifeq ($(CFLAGS_KASAN),) - $(warning CONFIG_KASAN: compiler does not support all options.\ - Trying minimal configuration) + ifneq ($(CONFIG_COMPILE_TEST),y) + $(warning CONFIG_KASAN: compiler does not support all options.\ + Trying minimal configuration) + endif CFLAGS_KASAN := $(CFLAGS_KASAN_MINIMAL) endif endif -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/