Message ID | 1532325418-22617-3-git-send-email-rppt@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D51E14BC for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 23 Jul 2018 05:57:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28CE220748 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 23 Jul 2018 05:57:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CACF209CE; Mon, 23 Jul 2018 05:57:19 +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 A9FC420748 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 23 Jul 2018 05:57:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 334CC6B0007; Mon, 23 Jul 2018 01:57:15 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2E3E66B0008; Mon, 23 Jul 2018 01:57:15 -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 184DD6B000A; Mon, 23 Jul 2018 01:57:15 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by kanga.kvack.org (Postfix) with ESMTP id E66A96B0008 for <linux-mm@kvack.org>; Mon, 23 Jul 2018 01:57:14 -0400 (EDT) Received: by mail-oi0-f69.google.com with SMTP id b8-v6so16709901oib.4 for <linux-mm@kvack.org>; Sun, 22 Jul 2018 22:57:14 -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:in-reply-to:references:message-id; bh=LTEJYEF9OtzHPmg1Ng/fhS+L2Q8vPeoeVzT5cpwLwCI=; b=MfvQprVC1zpIO4eYMqW+o9xqD6hxLnVLa1eU+RAS/w3JalsIGj8GTuLbGyVIhBCs4F pAmDSYmo4KSJTbaiRprjbYqa2n6gfOwHtHJMGPwyeTWWax2aYYC1qsJhnCmkoYx+KwDl nAtl9OtFUBjdz/BXAJMk3cz6JCkWq4Dx0oBc8QrKTeGBDMAkqyJWA7/txuyS5II8Ryuo 2G9eW35YMwota64g41UlVQqhtrQZQdUpvdvVmAZJaAPZAjZt8xxuKfb3lCiRzPr81VZJ 5D2QZ3MXNSIn0T9dKh1FCLKSOYxFM5yErAcUVxgAVJNssh32c27VbUfsBu/x0k7uaxxR RVSQ== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AOUpUlE1Y5eMaSTuAVyBsiO6pDMBgMInSTMCRUOX1TYKi9ldUZ6ryfli +d4Y3N1PjrhEjT6vux3SEe/Z3vFUJIXak2BqWD31orFFjF87Lb9MJprZ+FP8PYSJzMd38fyR9u2 Cb1ViQZieNCOqAxSVpOsEardCEQG/sNyfEizlNB5Jj8NBsY7PBiwuFL1pUdPzIRU= X-Received: by 2002:aca:34d6:: with SMTP id b205-v6mr6776950oia.77.1532325434679; Sun, 22 Jul 2018 22:57:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpez5pmD1QzFaMqg5MIuMOVWamW8y8xtsEFVlUM4TycZyVX5E8YhhBGa46bi6Ys+OAKXL2RQ X-Received: by 2002:aca:34d6:: with SMTP id b205-v6mr6776925oia.77.1532325433962; Sun, 22 Jul 2018 22:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532325433; cv=none; d=google.com; s=arc-20160816; b=a2G1Q5v8YjO5+6XyHWJrqxpjwTPv2k4GjbVyhMgorGIFSl7DZNxXKgFnkESfKkEKMh YWOTmMRxH+w9pg2RTVx4doiruU4u0Z0D/gNPqIb1FXAlGyzEZtY6kP5+g2lflAUZmE88 2NfaAJw76RAJCpOawpGGNl59061sUwEUROlhZk6MXtB+bFZBdUeoekPD8HRHwc0No0AA /vSxnn8NoehwdxbXTFRS7Y+X/CxiAgV3L5JkZoktRZG/1nGYlNgOuVijmZ8Rdt4L7u+G TIYWk6URzpy9k5Np4hz+nZN1ZyoZsfO/sgfD/xwUpbau3sjf81TZQGlLTmoF87p1/bXt 84JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=LTEJYEF9OtzHPmg1Ng/fhS+L2Q8vPeoeVzT5cpwLwCI=; b=01AxjVsoT8lOAIqB6XsFLfk19dVGxTokrc0BQ/+lqMrZ+fL2IAaGgUUv3tbig6Mb+l HOV3eATNAzQLYxRq7ZY1RVStB33gnWjfaOJMOliCRck5lSwVhuHZdU4vyu2Qyubwhpzm BL1wtj7AuSXJrm5Rtp8IgUEpnd2He8Uxr/apl8P70nuUgg4ZcgSqfzYZ+n9EuakJKXc8 SmJCDTM7vLjKIo17HZFXmeF1xNWobR4WUvCbTeKAl59Tn4D01J94Od9dhr/WYIE2ydZE TnTo7xEpaHLLGdpThiSVQKu+ikqnjJeg+2LB0iCpb1MQLPokgbuSUO0fx7vCuhkcsqVI 2V6w== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id o132-v6si5547528oih.401.2018.07.22.22.57.13 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 22:57:13 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.156.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6N5s2L8060607 for <linux-mm@kvack.org>; Mon, 23 Jul 2018 01:57:13 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kd7r4umve-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <linux-mm@kvack.org>; Mon, 23 Jul 2018 01:57:12 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-mm@kvack.org> from <rppt@linux.vnet.ibm.com>; Mon, 23 Jul 2018 06:57:10 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 23 Jul 2018 06:57:07 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6N5v65r34603148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Jul 2018 05:57:06 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F117F52051; Mon, 23 Jul 2018 08:57:21 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.108]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 6D85B5204E; Mon, 23 Jul 2018 08:57:20 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Mon, 23 Jul 2018 08:57:04 +0300 From: Mike Rapoport <rppt@linux.vnet.ibm.com> To: Tony Luck <tony.luck@intel.com>, Fenghua Yu <fenghua.yu@intel.com> Cc: Michal Hocko <mhocko@kernel.org>, linux-ia64@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport <rppt@linux.vnet.ibm.com> Subject: [PATCH 2/4] ia64: remove unused num_dma_physpages member from 'struct early_node_data' Date: Mon, 23 Jul 2018 08:56:56 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532325418-22617-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532325418-22617-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072305-0008-0000-0000-000002565300 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072305-0009-0000-0000-000021BCBE8D Message-Id: <1532325418-22617-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-22_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807230070 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ia64: switch to NO_BOOTMEM
|
expand
|
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 7d9bd20..6148ea8 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm/discontig.c @@ -38,9 +38,6 @@ struct early_node_data { struct ia64_node_data *node_data; unsigned long pernode_addr; unsigned long pernode_size; -#ifdef CONFIG_ZONE_DMA32 - unsigned long num_dma_physpages; -#endif unsigned long min_pfn; unsigned long max_pfn; }; @@ -669,11 +666,6 @@ static __init int count_node_pages(unsigned long start, unsigned long len, int n { unsigned long end = start + len; -#ifdef CONFIG_ZONE_DMA32 - if (start <= __pa(MAX_DMA_ADDRESS)) - mem_data[node].num_dma_physpages += - (min(end, __pa(MAX_DMA_ADDRESS)) - start) >>PAGE_SHIFT; -#endif start = GRANULEROUNDDOWN(start); end = GRANULEROUNDUP(end); mem_data[node].max_pfn = max(mem_data[node].max_pfn,
Since commit 05e0caad3b7b ("[PATCH] Have ia64 use add_active_range() and free_area_init_nodes") the num_dma_physpages member of 'struct early_node_data' is calculated but never used. Remove it. Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> --- arch/ia64/mm/discontig.c | 8 -------- 1 file changed, 8 deletions(-)