Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1932743imm; Sun, 27 May 2018 20:58:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3Pi0YbzH3hH1gRjIfrN0NSkR9jz2Vm1lx2d/02DYtjVtVdCWggUx2REs9xCkwIioJNHQ2 X-Received: by 2002:a62:cd45:: with SMTP id o66-v6mr11886820pfg.250.1527479881035; Sun, 27 May 2018 20:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527479881; cv=none; d=google.com; s=arc-20160816; b=R+98oM8g61QPsdtSWhl7I2cqVzlMlAcn4oKyz6q02t+6uLd0ocpumLLRDVhKK0iEm/ dUAjDAv9QyP+5Mcq8xMUFG5EyHo08v5S5ENZR285GwedZA/oX/KsRCbahX0oteZT7P9z vzexayQ2cak1w/qi6qHbBU50AkRllOWDuqZyknrdoCpL5VSB5+0QnOIY6oXDWj0CYS3h 6uoWawcMDzffmWb31ClFiHJUzvX1CL4w8ujLSdN2iEDfv6yoHWo5eKX4JRgF7cQvXg8f efpAdeuBY3KyQBFbJZPNEgO340n11HUHAkQAVqeD2NssqKkDddc6pr6PwSUAuNqLM72t FfWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=TWORkvNvjLK8FXeydTqBRwpsyFKqM7DXb3tweEYAg58=; b=AIR78iJEb0C6EQMH9NtLCJakktteUOY6g8hG7JeLy5wcnLM+lE7V65JwrOFXWbteF0 aH+aeiQ4hssmIbKGI65maV9FAGEWKeg1tnLWNndUbsjq2DU7SOtIp0L3hPecMzwqPO/1 vzk9MUrLdLm9qLWOuzsVGdw6JpW9ky8HMowgztp3n2zX+VTfJIX1oitFxBax+iJn4Cbu xGDUJPqErWft2vF5mGPEA8TfmDSTXWlV+4Y1gwolq2lm3pHyn+9ekyHwt6hL2hlcMv7J Dl+z2zd9rRtGuTBwmYmvG5uH6V0wjPIvuQEmJs8+KG2/z0fuV+yd7Ltouf0rQEo/RMt0 ibyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j189-v6si5946497pgd.657.2018.05.27.20.57.45; Sun, 27 May 2018 20:58:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbeE1D5c (ORCPT + 99 others); Sun, 27 May 2018 23:57:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8190 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753117AbeE1D51 (ORCPT ); Sun, 27 May 2018 23:57:27 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B978B7E4C554A; Mon, 28 May 2018 11:57:10 +0800 (CST) Received: from linux-work.huawei.com (10.67.189.174) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.382.0; Mon, 28 May 2018 11:57:03 +0800 From: nixiaoming To: , , , , , CC: , , Subject: [PATCH 3/3] s390:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro Date: Mon, 28 May 2018 11:33:55 +0800 Message-ID: <20180528033355.54815-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: nixiaoming --- arch/s390/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 3fa3e53..a96fc3f 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -116,6 +116,7 @@ void __init paging_init(void) free_area_init_nodes(max_zone_pfns); } +#ifdef CONFIG_STRICT_KERNEL_RWX void mark_rodata_ro(void) { unsigned long size = __end_ro_after_init - __start_ro_after_init; @@ -123,6 +124,7 @@ void mark_rodata_ro(void) set_memory_ro((unsigned long)__start_ro_after_init, size >> PAGE_SHIFT); pr_info("Write protected read-only-after-init data: %luk\n", size >> 10); } +#endif void __init mem_init(void) { -- 2.10.1