Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752136AbdF2G35 (ORCPT ); Thu, 29 Jun 2017 02:29:57 -0400 Received: from ozlabs.org ([103.22.144.67]:37039 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751675AbdF2G3r (ORCPT ); Thu, 29 Jun 2017 02:29:47 -0400 From: Michael Ellerman To: kernel-hardening@lists.openwall.com Cc: keescook@chromium.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, labbott@redhat.com Subject: [RFC PATCH 4/4] bpf: Use linux/set_memory.h Date: Thu, 29 Jun 2017 16:29:41 +1000 Message-Id: <1498717781-29151-4-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498717781-29151-1-git-send-email-mpe@ellerman.id.au> References: <1498717781-29151-1-git-send-email-mpe@ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 829 Lines: 30 This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. Signed-off-by: Michael Ellerman --- include/linux/filter.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index 1fa26dc562ce..54f26e9c6472 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -16,13 +16,10 @@ #include #include #include +#include #include -#ifdef CONFIG_ARCH_HAS_SET_MEMORY -#include -#endif - #include #include -- 2.7.4