From patchwork Tue Mar 7 20:55:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9609829 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14ED9602B4 for ; Tue, 7 Mar 2017 21:01:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D49272853B for ; Tue, 7 Mar 2017 21:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C77DE2853D; Tue, 7 Mar 2017 21:01:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7602B2853B for ; Tue, 7 Mar 2017 21:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yCYrqZh3pz3oSJ/yR/gG/SkVxKSWLI/Od1NpRkHjJ8E=; b=nDtrrQx3QpBjYlcU0x1aWjN2Bm vuny9nJeuijD1oVhDOEche7PFiaWKnzu2pzwbY65RYRU0hYu9R9UQXhTjg0ZRSwx+GcMZcsvb25R1 9wlV2MeTJb8G4nKvVEZp737u8FZQgiCCXp5N33xar5NWKQ4qs3xzdN7ZhB4fU9PVaV5/vsbw0Dx1I MFnG7oORsODlOAYCkqSlxepKUwTT0Pd3xX19QTNOlzTEhxRy2M7Npu51FovUo9DU2bOBD2ODnA/kO z2gHOdEfh7YndHDn6N1pwXSV12XbPsMEci3rI4Et3rD9IQbkfUI/4jDKWxmCITNf0wNbnMzfBAdPw 8mCldzPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1clMEl-00085P-FD; Tue, 07 Mar 2017 21:01:39 +0000 Received: from mail-qk0-f181.google.com ([209.85.220.181]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clMA6-0003Fp-9Q for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2017 20:56:52 +0000 Received: by mail-qk0-f181.google.com with SMTP id y76so25661726qkb.0 for ; Tue, 07 Mar 2017 12:56:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PjNdUmPw693Xm4XYeM8F1nVhuCKFymXFDsb0/46UwB4=; b=r1HwTxxHujbvHpYb7rd7cYwFqsr71tJllsMRXIbnfLy1xLszFBDnSJCh1sVFi4WAiw JTMIYq/7OEc1YcZF+mv2A7yu9KBEUu1S4U6qtp1kmDwQiaoMxjPhTd90IU2kp4YY1nQ1 3abVtfSBCsb/3l+KbnOEMjR1RgM4GwAQwcGtY1dbQ6vcv8F1H+yGO2B+KuoZhwyC8T0D ujM32k3gnQfRMEXZMiJJF/m4DeSGp4D7DhqlGksIDZqOvWiqWEBuKygrdmJ7jWIZL4td Xe2tcl7zJo8OmhnCXNKERAvqBScAuNfVaUvYIDOTf9oJnOdh3qx4NmG/N3Idcs6lK3KD iuqA== X-Gm-Message-State: AMke39kbhm0/WzvDqLMyi4yaRPoxGahhbZv+G3KnfHukpvmmz5xN4307qkG/YLvbGXoQe8CQ X-Received: by 10.237.36.153 with SMTP id t25mr3181509qtc.134.1488920188964; Tue, 07 Mar 2017 12:56:28 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::5ce7]) by smtp.gmail.com with ESMTPSA id z196sm764343qkb.11.2017.03.07.12.56.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 12:56:27 -0800 (PST) From: Laura Abbott To: Jessica Yu Subject: [PATCHv3 11/16] module: Use set_memory.h header Date: Tue, 7 Mar 2017 12:55:28 -0800 Message-Id: <1488920133-27229-12-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488920133-27229-1-git-send-email-labbott@redhat.com> References: <1488920133-27229-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170307_125650_406403_7B0AA131 X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , David Airlie , Catalin Marinas , Heiko Carstens , Takashi Iwai , Wim Van Sebroeck , "H. Peter Anvin" , linux-watchdog@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Daniel Borkmann , x86@kernel.org, Russell King , Alexander Shishkin , Ingo Molnar , Laura Abbott , Guenter Roeck , Kees Cook , Arnd Bergmann , Will Deacon , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Schwidefsky , Andrew Morton , "David S. Miller" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP set_memory_* functions have moved to set_memory.h. Switch to this explicitly. Acked-by: Jessica Yu Signed-off-by: Laura Abbott --- v3: #ifdef protection --- kernel/module.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/module.c b/kernel/module.c index 7eba6de..992a100 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -49,6 +49,9 @@ #include #include #include +#ifdef CONFIG_STRICT_MODULE_RWX +#include +#endif #include #include #include