Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp996331imu; Fri, 11 Jan 2019 12:58:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN6KakF9NZmIvAP6Kex4qh5KH55WCYHVAJFfef9gilpvAPic2n5h8Ac8uQvKYdt61Wrl9+K4 X-Received: by 2002:a63:2263:: with SMTP id t35mr14734178pgm.69.1547240312916; Fri, 11 Jan 2019 12:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240312; cv=none; d=google.com; s=arc-20160816; b=cxxhqndHX3NsQ/SG9TYuafpWeY0DSvwoGspFMkD/6/4yALgIlHcZfNjexWf+mkoAz7 68ITdEf8WLQUpDaic0U6EU0taj8D5bjo7Od/2pNSqAsBkrXMZnS0/5TXlx3udZ2lztjh RbCycdWWaFdE9A/zCRbW6MCxvlOwwh1ECd5xhTjMPBHpko0bLCX5iQOmzH2i4pxvIMmg oIz5CCywrAYDhyMmhijCwIGGGkdcz51OvYwexKr8NgmHEXN5d40vA1tDYJ/uAE1AwGd4 1qjGqOYTd9/2qxqdualTwQaDINm3CqnbMAXs/HyYH5642TxdrsI2uqxx8xijdQmmJxkR XK0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gzuEnEsPaQcZK2oODLbGLwXYQUoHuT21tgLVqTniWPY=; b=GnnKMrlW6VxBx5uDcTJbw2WrgiQZz9j5rBme8ETSWgCEYaq27F9JM89o1+faMUWH4A 51pbteLxLTrgBE0nkOxpv8WaON0Hz6s9mXpIThB0aDaqwlzlJHIxajk6j8BRWQYjGiIh GMYGNix9c2AM3q4Ff53UCPtiMP42ef8YVyggbpSBQl+iy4SlwofimqF1aUt3y59hsLEe /YT1bj4iBjnD/U5Ed4rBzfHH2nhcWuSZhThKp+AsItVQKlvg7Zcds+1ZeT4oZufbPmZU 1D1C+tmb0PomL3dmlhQP9rzefpayhSAK0dTWHMBLNPfkmTVRoyTgecoiZmuHrIu0e4Zf cLPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lRAtrcLf; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a193si15951599pfa.214.2019.01.11.12.58.18; Fri, 11 Jan 2019 12:58:32 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lRAtrcLf; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389609AbfAKSFn (ORCPT + 99 others); Fri, 11 Jan 2019 13:05:43 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:44190 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733173AbfAKSFi (ORCPT ); Fri, 11 Jan 2019 13:05:38 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0BI5WX5067738; Fri, 11 Jan 2019 12:05:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547229932; bh=gzuEnEsPaQcZK2oODLbGLwXYQUoHuT21tgLVqTniWPY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lRAtrcLfJ6Q3KExkcFglz+YVZvMzEKCy7mgl+yZvZpx3DmuCbjiupJVybg5Tz+Wk+ q1GLLHU47HYINk8uxaqE7N1tyKFhS1TX0Cj1Z9TrC6ubihzF9A0zSePt0ZnrsF3PqT Sx/dTbP8u4jHy7KRCDwPC0DuXxjpjEcKzQv/Dzx0= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0BI5Wna059286 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jan 2019 12:05:32 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 11 Jan 2019 12:05:32 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 11 Jan 2019 12:05:32 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0BI5WoE022660; Fri, 11 Jan 2019 12:05:32 -0600 Received: from localhost (uda0226330.dhcp.ti.com [172.22.109.196]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0BI5VU07748; Fri, 11 Jan 2019 12:05:31 -0600 (CST) From: "Andrew F. Davis" To: Laura Abbott , Sumit Semwal , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= CC: , , , "Andrew F . Davis" Subject: [PATCH 09/14] staging: android: ion: Remove base from ion_chunk_heap Date: Fri, 11 Jan 2019 12:05:18 -0600 Message-ID: <20190111180523.27862-10-afd@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190111180523.27862-1-afd@ti.com> References: <20190111180523.27862-1-afd@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The base address is not used anywhere and tracked by the pool allocator. No need to store this anymore. Signed-off-by: Andrew F. Davis --- drivers/staging/android/ion/ion_chunk_heap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c index b82eac1c2d7a..899380beeee1 100644 --- a/drivers/staging/android/ion/ion_chunk_heap.c +++ b/drivers/staging/android/ion/ion_chunk_heap.c @@ -18,7 +18,6 @@ struct ion_chunk_heap { struct ion_heap heap; struct gen_pool *pool; - phys_addr_t base; unsigned long chunk_size; unsigned long size; unsigned long allocated; @@ -131,16 +130,14 @@ struct ion_heap *ion_chunk_heap_create(phys_addr_t base, size_t size, size_t chu ret = -ENOMEM; goto error_gen_pool_create; } - chunk_heap->base = base; chunk_heap->size = size; chunk_heap->allocated = 0; - gen_pool_add(chunk_heap->pool, chunk_heap->base, size, -1); + gen_pool_add(chunk_heap->pool, base, size, -1); chunk_heap->heap.ops = &chunk_heap_ops; chunk_heap->heap.type = ION_HEAP_TYPE_CHUNK; chunk_heap->heap.flags = ION_HEAP_FLAG_DEFER_FREE; - pr_debug("%s: base %pa size %zu\n", __func__, - &chunk_heap->base, size); + pr_debug("%s: base %pa size %zu\n", __func__, &base, size); return &chunk_heap->heap; -- 2.19.1