From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751730AbeAQCpw (ORCPT + 1 other); Tue, 16 Jan 2018 21:45:52 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:51015 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeAQCpv (ORCPT ); Tue, 16 Jan 2018 21:45:51 -0500 From: Matthew Wilcox To: Ingo Molnar , Josh Poimboeuf , Kees Cook , Andrew Morton , linux-kernel@vger.kernel.org Cc: Matthew Wilcox Subject: [PATCH] sparse doesn't support struct randomization Date: Tue, 16 Jan 2018 18:45:39 -0800 Message-Id: <20180117024539.27354-1-willy@infradead.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Matthew Wilcox Without this patch, I drown in a sea of unknown attribute warnings Signed-off-by: Matthew Wilcox --- include/linux/compiler-gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 2272ded07496..631354acfa72 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -219,7 +219,7 @@ /* Mark a function definition as prohibited from being cloned. */ #define __noclone __attribute__((__noclone__, __optimize__("no-tracer"))) -#ifdef RANDSTRUCT_PLUGIN +#if defined(RANDSTRUCT_PLUGIN) && !defined(__CHECKER__) #define __randomize_layout __attribute__((randomize_layout)) #define __no_randomize_layout __attribute__((no_randomize_layout)) #endif -- 2.15.1