Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2896498imm; Wed, 16 May 2018 23:12:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoYsrVgNy7LN4DQtKWQt2Ss4RYPFAhXch7WXufZa7k27FTrL1lblRtxwFPUlxI9pcHEZHE1 X-Received: by 2002:a62:415d:: with SMTP id o90-v6mr4004392pfa.140.1526537527838; Wed, 16 May 2018 23:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526537527; cv=none; d=google.com; s=arc-20160816; b=Q2z9NuYpVDUXn2/9eKWP7DTauCP9utK0JMBEmjv9BfBvdhYCmPhdYKV0jCloyclJY6 5VmZKNajA1xqecSdLJgTTmwbMiG+ZfJr8qdTltacpRnGSFl6wz+ZLJ4gtMkUBKQVZqn2 wJ5fB4RAM4dKJftuVz08rFlpg1tcErg78H22Z+Td+h410VFb+/eCHv1BbK0n0HFHvDTV cF5620eNEgdCcqNWMjrVyfZZgO9DJfOYoqcC4/TS9nzs0JJ6t2Lm7QJVlKV4ZAKmwo/v G41fSA9TyBhfTThkBNAnyTNQJHTjRfyaNfR/aOKbw3jSrUshLeaZaVP2fTy4Z3+0zrfk mZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=87UpesCjNlMG4PxPw5juG8C1WaFXvz/xdDsyMpT/IJw=; b=WQxB5gj3tPbpuV0Nv4XGyKDfi5ORAg3Sju2g4WOeiuvxS970uV3mvdW0kDvPjE+aOT 8uMFK0yt5Zp3BrEDAhlDND5DRlqMHGyTYABu0YIxyVfjVlDKvK5BmGOZZVqXpWxVPBFN FfsEMEgsgHSuFX1ZqKEJqvewxkMiBnbhRfhIIMvUVW12xoZFQYdP4G/GigQEz4C1vYAW 8NTn5zBWM/mVc13J0BGzzkkh4VEE+xXePxiaYHLkGNmm2QB43AuHIXS+SCvsaeXi2gb7 irI6TRUW+moV7KZ99OhpYDjou6BBwVxmZ5Ln2scIYPhXLCSzNajUrSNnNjDcGWgLgwLB QMYg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si3550386pgp.74.2018.05.16.23.11.53; Wed, 16 May 2018 23:12:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751520AbeEQGLQ (ORCPT + 99 others); Thu, 17 May 2018 02:11:16 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51070 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750825AbeEQGLP (ORCPT ); Thu, 17 May 2018 02:11:15 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4H5t4oT072653 for ; Thu, 17 May 2018 02:11:14 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j140u0jxh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 17 May 2018 02:11:14 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 May 2018 07:11:12 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 17 May 2018 07:11:09 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4H6B9CT2884004; Thu, 17 May 2018 06:11:09 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A9C7511C064; Thu, 17 May 2018 07:02:23 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AAEB111C052; Thu, 17 May 2018 07:02:21 +0100 (BST) Received: from dhcp-9-109-220-106.in.ibm.com (unknown [9.109.220.106]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 17 May 2018 07:02:21 +0100 (BST) From: Anshuman Khandual To: rkuo@codeaurora.org, linux@roeck-us.net, vdavydov.dev@gmail.com, akpm@linux-foundation.org, hannes@cmpxchg.org Cc: linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [RFC] hexagon: Drop the unused variable zero_page_mask Date: Thu, 17 May 2018 11:41:05 +0530 X-Mailer: git-send-email 2.9.3 X-TM-AS-GCONF: 00 x-cbid: 18051706-0008-0000-0000-000004F75AD5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051706-0009-0000-0000-00001E8BCD75 Message-Id: <20180517061105.30447-1-khandual@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-17_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805170055 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hexagon arch does not seem to have subscribed to _HAVE_COLOR_ZERO_PAGE framework. Hence zero_page_mask variable is not needed. Signed-off-by: Anshuman Khandual --- I will have to request some one with hexagon system to compile and test this patch. Dont have access to hardware. arch/hexagon/include/asm/pgtable.h | 1 - arch/hexagon/mm/init.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index aef02f7ca8aa..65125d0b02dd 100644 --- a/arch/hexagon/include/asm/pgtable.h +++ b/arch/hexagon/include/asm/pgtable.h @@ -30,7 +30,6 @@ /* A handy thing to have if one has the RAM. Declared in head.S */ extern unsigned long empty_zero_page; -extern unsigned long zero_page_mask; /* * The PTE model described here is that of the Hexagon Virtual Machine, diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c index 192584d5ac2f..1495d45e472d 100644 --- a/arch/hexagon/mm/init.c +++ b/arch/hexagon/mm/init.c @@ -39,9 +39,6 @@ unsigned long __phys_offset; /* physical kernel offset >> 12 */ /* Set as variable to limit PMD copies */ int max_kernel_seg = 0x303; -/* think this should be (page_size-1) the way it's used...*/ -unsigned long zero_page_mask; - /* indicate pfn's of high memory */ unsigned long highstart_pfn, highend_pfn; -- 2.11.0