From patchwork Thu May 17 06:11:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 10405449 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 80BDA601C8 for ; Thu, 17 May 2018 06:11:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FD282893D for ; Thu, 17 May 2018 06:11:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6444E2894D; Thu, 17 May 2018 06:11:20 +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=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEFDF2893D for ; Thu, 17 May 2018 06:11:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 054886B038D; Thu, 17 May 2018 02:11:18 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id F1B876B038E; Thu, 17 May 2018 02:11:17 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE4A86B038F; Thu, 17 May 2018 02:11:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) by kanga.kvack.org (Postfix) with ESMTP id 80FD06B038D for ; Thu, 17 May 2018 02:11:17 -0400 (EDT) Received: by mail-wm0-f70.google.com with SMTP id 74-v6so1673413wme.0 for ; Wed, 16 May 2018 23:11:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=87UpesCjNlMG4PxPw5juG8C1WaFXvz/xdDsyMpT/IJw=; b=M1sS4SDbTvQEZ47UKt4Ib4YrTWsKs+pFhS9iFjNXMzHmZTSpYzEpbGcj70ezNvvB8M Xj/PNMdkrLMb87Z7JCBpZ9h1qsVLbh5YfgciZVyRhqKYcvylnMr9WMHIc2OgeRiuUGWM sNpug2lyIeuWp2hXd+wWK0bytGEeswcYuo8EnBPifFPv5n4md8jsR/jf6PNU6+sqCBSH sqz3EBGZaikcWw31T508ZmcQlDfIXzP6bhLKVUqdCVde+pLVKiTRCfTCR6BGLJmShqNy bdxPe2pAFE21h478yOztYWdPpIVr0tzmVIAF68HKMFSb/UvOzCsGKP4RfP+ArC0SjB3y IXug== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of khandual@linux.vnet.ibm.com) smtp.mailfrom=khandual@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: ALKqPwf0wJpRquNy3TfW+gcufaK1xX/nxxbrV2CiK0q9b+xh4EyjG08H aepfUycov2Kt6oBV68fewez8Uog7q/6NS0444Y0EkB3YX+4B8ivIlFjJJOc23dcux9QC4MW6O3F lP5a7yVJx3T5fYQ6NoPdrHFwCgkFN8dwNroIblDBmxmLDBga6NXNcHMpYlI3heP4= X-Received: by 2002:a50:9707:: with SMTP id c7-v6mr5109979edb.267.1526537477016; Wed, 16 May 2018 23:11:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpU/39bKwCPBZd1euI2XC7GZKbUZ+zMFGY2LYSJSPGveuhe5+L1p7G2p/vzcCZsLgoJYrv6 X-Received: by 2002:a50:9707:: with SMTP id c7-v6mr5109916edb.267.1526537476135; Wed, 16 May 2018 23:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526537476; cv=none; d=google.com; s=arc-20160816; b=jsjdRxpeUNiVv94lRBdboFP0igh9HALel4KXY7k3AVsgd5mjOf0U5+gJzDPlEoxpA9 antO3a1vvwn0lTni3HJaN2A3Oy5rptkh6istooJ/UWIZMlZkLKEqYyJ2xDFRDPXHvZZz pe269K4gfZZkQx61IKDv4oNLcQ1IlYpfMPSzrg2CtQPsK8ee/XLxr6bzH6Z6Bots+ixg dM6zCEpl+VpIpOuZfgtN9kquPU3zMHj0PkQYVUTMKA54BatOQn4wcMj90oRR0QUQEimP bI/b5tcg5vHoItp9t2R7U3n1pGDS9DndFKok6tENxZxbdZhe8ut8WtxS4tgpqUCapQMn S3fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=87UpesCjNlMG4PxPw5juG8C1WaFXvz/xdDsyMpT/IJw=; b=irH9ig3YeXYRorLKEtmYsnAOu0KqLcKZJH7ghks+Y/77p7uF+vTZpb8Bv4YLvy5NBm UdC0ZKoULqWqd+8wIctdYtVl+eBSdbsnj2D8FeQMTvz/MpBonMC5KCZbmHrwZ4RFDlCW 1MR34iRAQ5JwnlNw9RrM7DgKITV8I3zNA2K0DD4C7yr57ImptBoz7jgteQOsNHnEZyFe oGWPhBz3WBXGLpVIxnMi0Qh7MtmyokNpJzzGTb6nVDo7D0RqXyvVUyO8Miqfjav6RLJJ hpzrASRRmKNt5Gar6mzWzcr0sz0vBWRxNr1czdlM47oIfLuUbSrN5FnOScnpZGXSLcbp 5OtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of khandual@linux.vnet.ibm.com) smtp.mailfrom=khandual@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id b26-v6si184849eda.336.2018.05.16.23.11.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 23:11:16 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of khandual@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of khandual@linux.vnet.ibm.com) smtp.mailfrom=khandual@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4H5iTAv047820 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 2j0yqyh8v0-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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000673, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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;