Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3420152imm; Tue, 29 May 2018 07:01:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZotAWRLXbWCHSzozJvkywN/PehcKG1rIHNh+5J0pQ/IkYKzN+8ptSqPlKvbcxSfTflQz7JB X-Received: by 2002:a63:618f:: with SMTP id v137-v6mr14171396pgb.145.1527602485404; Tue, 29 May 2018 07:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527602485; cv=none; d=google.com; s=arc-20160816; b=SRnXw9whlKcm3tDF7+RH1WPtu4S+6/C4OqlNilaMvLk/nPnfcRvahnww1936hdpMAn Au+6DMOdR26X30yJXWPmmjsMer1QZg1KOwgZLSz30s5VXNvhTqECL+SFl7BaRkIg05Oy 5qH05zutVcgriTEEQQTCeNA06F0mAyE1Bi7o+Pr/fJbu8/GkTNULhUcYXyofQX3pxPmy RppBQWd7ht/Xp8OKYF3vo2+DGIw4YxZyws9j7Jk81pUglDr5Rik2epnCTBaMQxIcfnAS RDis+ManMeGom+VtZrtG2SCWXSeXgn0pKEHP1uq7YgKUrVWZsqbTBAY5Apq6JEO37bj5 4SaA== 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=vgyO/CfipEm247Qq8r3PjOfuLaIwidu2s4UC6kWVHOA=; b=wdfiWX5pp5h3yFgC9oamEy2ujwioivrvhQf1AWOFWK3igsa6Fz/dJi5PA2HlFTID9Q oH0fLLDS+Xn16zVvRV6hO7+2bKHfNewM4bRHr7F9rdDovNVRoqxM1wdLQOaf+GO4SLNT xnNF9Xz+t4dsd+AJ0mF7rpIGjpYvNK3vEk/znfYddMWTMEptJmRPF3ooaVlrTN6+y1PX 2oulNNGuBIJ5uf6WXwBsZT4CrAxhtyhBRBgI0GT3kn2DCjFZTOAcRzXhNrWLnp5oOQC7 nWSbw2yw6zE4qGS95D+1NaJIQuHUM8uEMCorinqwmDKS80NOCSAQfRmBqY8TZnhn8hYT 8MeQ== 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 w189-v6si12004168pgb.431.2018.05.29.07.01.10; Tue, 29 May 2018 07:01:25 -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 S934898AbeE2OAI (ORCPT + 99 others); Tue, 29 May 2018 10:00:08 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43594 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S934802AbeE2OAG (ORCPT ); Tue, 29 May 2018 10:00:06 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2092DB859E5; Tue, 29 May 2018 22:00:02 +0800 (CST) Received: from linux-work.huawei.com (10.67.189.174) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.382.0; Tue, 29 May 2018 21:59:54 +0800 From: nixiaoming To: , , , , , , , , , , , , , , , , , , , CC: , , , , Subject: [PATCH 3/3] s390:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro Date: Tue, 29 May 2018 21:36:28 +0800 Message-ID: <20180529133628.27055-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 mark_rodata_ro is only called by the function mark_readonly when CONFIG_STRICT_KERNEL_RWX=y if CONFIG_STRICT_KERNEL_RWX is not set a compile warning may be triggered: unused function 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