From patchwork Mon Jun 15 14:54:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 11605299 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B01AC90 for ; Mon, 15 Jun 2020 15:05:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8D76E20739 for ; Mon, 15 Jun 2020 15:05:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nHlCzFEV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8D76E20739 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48E636E343; Mon, 15 Jun 2020 15:05:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id EC52A89D5F; Mon, 15 Jun 2020 14:54:18 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id o8so5521980wmh.4; Mon, 15 Jun 2020 07:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=d6FJC4M7yb6UETXkb1sZmFJEHJtepxmsrbWdTkTqQQ8=; b=nHlCzFEVyKRzMVFnW9EaJYrbpsYcACAz4JdpYOBNQCPg4rDMm9haKlCBs1UsnF7cDQ C5I8Kxd3nluUECfM1zxGfYo5VneriB2dzlEflZxpSqW2vwua4ceYiRP/iPMR+HabD5gs wgRcwtwpXzsmHgpoQAoSYabj3qFo20rPgA4jF80JIbwIfEjRcZVd8jBNLV5VpWXR8za/ lFSHWv7OpXAsPmeiZ3fCjHXB6Dy6vDc+U9NvLiiSWLM43aNmPRuipT1/3+N9HXaVreFI b2qK/yv7C/vSg3/rBYfhuLjqqkVjBJmduEJ2AQ2hTE1W5QT6WCvSESxAcgHkMxgn+vLw f/+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=d6FJC4M7yb6UETXkb1sZmFJEHJtepxmsrbWdTkTqQQ8=; b=LdCV6lF7/Fa7Cr6qsrFYW5DApf+vus0P3qndWO6k7HjqT5ljq+W2xrfxQScI2Tbb75 FvNdi4guBvacu1083NFQpkISy9S24zlpgmfKnlQuxjUWlcUzl3diGwfWuLaxps60Zq9i aIJKZAJzf1rfyXExYot40yb5dImGtM9+fWw5dNKFoNj5ZDbozEdHexnb+jIejnBQrgK7 4fMWFdY7whFTuDiDVj90D2KA3PbLpvc53Gzn1rISb1OS6nWWWM/Ewu3ifpEPI0ay3k+c 4DBAEHwjRYdb3a/8klVr28yjgVggDEsis0KZ1inDmCDE1mpdQet9nKa8hxkvH4g3klKB Lneg== X-Gm-Message-State: AOAM53226dwTZi4+2DvFZtCYtcz4bIxM6t/wS6UbFB3dto5xQaAKWAUu hNa5pW1ExB1DLuHub7LliRs= X-Google-Smtp-Source: ABdhPJzFlr3SK4cW5QFYIWou/UGCvXUjzgf6XkNhGl3ErV2Y7alWL1lv/fphIYIiRJ78f7jsFFvYpw== X-Received: by 2002:a7b:cb11:: with SMTP id u17mr13445453wmj.84.1592232857593; Mon, 15 Jun 2020 07:54:17 -0700 (PDT) Received: from abel.fritz.box ([2a02:908:1252:fb60:a5ab:7330:3773:519a]) by smtp.gmail.com with ESMTPSA id j4sm24277442wma.7.2020.06.15.07.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 07:54:16 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= To: chris@chris-wilson.co.uk, intel-gfx@lists.freedesktop.org, nirmoy.das@amd.com, dri-devel@lists.freedesktop.org Date: Mon, 15 Jun 2020 16:54:13 +0200 Message-Id: <20200615145415.1775-1-christian.koenig@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 15 Jun 2020 15:05:06 +0000 Subject: [Intel-gfx] [PATCH 1/3] drm/mm: remove unused rb_hole_size() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Just some code cleanup. Signed-off-by: Christian König Reviewed-by: Nirmoy Das --- drivers/gpu/drm/drm_mm.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c index 82d2888eb7fe..425fcd3590e8 100644 --- a/drivers/gpu/drm/drm_mm.c +++ b/drivers/gpu/drm/drm_mm.c @@ -305,11 +305,6 @@ static inline struct drm_mm_node *rb_hole_addr_to_node(struct rb_node *rb) return rb_entry_safe(rb, struct drm_mm_node, rb_hole_addr); } -static inline u64 rb_hole_size(struct rb_node *rb) -{ - return rb_entry(rb, struct drm_mm_node, rb_hole_size)->hole_size; -} - static struct drm_mm_node *best_hole(struct drm_mm *mm, u64 size) { struct rb_node *rb = mm->holes_size.rb_root.rb_node;