Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3329890rdb; Tue, 6 Feb 2024 14:28:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSQGJzyM4ac3wo4BxfRJ8huXgXzHEFoILgsO10lH+X7OaEDdMUJU1yWXp7tTmal+28Dxsm X-Received: by 2002:a62:e417:0:b0:6e0:6734:a9f8 with SMTP id r23-20020a62e417000000b006e06734a9f8mr200654pfh.14.1707258498280; Tue, 06 Feb 2024 14:28:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707258498; cv=pass; d=google.com; s=arc-20160816; b=AvL1pVoPQExlwW/9KTt694ydFZ9kH3fQ4wtQ26EUvtKPfJ0RtY4JLkm8Xzx8E/zXqM LevcT6jezZXfLAXYNwYULh9PkdFWaUGU7lMXcsoma0qLWWli0vow+7Qb15fvkA7Wejwc ZjMtcPAPs7QLUeEs37Drp3B29chWHFx7XXYdYQrftvpzAoWPodqVZy2+ZPF3qRQdJtTx dXEEfo7J1VNF4OKWLWsYIpFZdfkSCdthIp0o25QxlecxbRYTiGliJQsZbKDIqU/QoaXP s9R8RnjLCRDdSSQyZrOnDEBTqo4GLgITt2iN1umaYQiWSKMuIib3MnweEnN/uEjceHER caug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=3Ez6cmbQ+6c02bU3Ls6dl5ljjHsIkcoz1E2LZLwBXtM=; fh=jN0nnCyy4IZSPmJ9dyxVbIDP/+ybW17eZ5n/vzFKACY=; b=pENY0b7Sk6TnxLyzwsOhmVZiDImR2waVuLxwnBbh4Whj0gKoXvZ1CWaktu4LCj/lxC lwjkcM5jHmZYgREx9mttuKscO/8s5xKugLKFfu6j2xRpV14Fj5vjWSrQU+pMaG5GcB10 pw3UTR92iAocPvRWTNcQUSvqZFZJ69LTZlyBy/YME5zrSeVmF0IIb7CUNMbqu3XP1HdA uCZDbyU/os+y6hcmV6JgYAAYeZqawG50uk54l5tcC4699ZZOtqUCcagLJs2AVhl7PI/l xolAHCgeKFf3buUjomQicYVJfOB0N5u0a8YSZC1h8U1onLpGCQByLsy/aGQyY+0FR4zB LpDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=d4DsACTS; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-55689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55689-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXxvbdzvA81UhZ5coEwTH+CZYZ/rhAXe8n56U5tobkXea23ityClZPD5WTfXdOOan/QAoTCGlDOnFk1SVxU1V1YxZbsfy5Q3Uhqh0O4ng== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cn8-20020a056a00340800b006e0541d5951si2395097pfb.385.2024.02.06.14.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 14:28:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=d4DsACTS; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-55689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55689-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C69B8B245BA for ; Tue, 6 Feb 2024 22:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2960A1C298; Tue, 6 Feb 2024 22:25:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="d4DsACTS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 152C61C283 for ; Tue, 6 Feb 2024 22:25:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707258352; cv=none; b=eRwDwHP5DR9O5TrcFXxOCQtlgw2uTb3Iybdbg7rjzhlTogilS6xGFvB1R5T7NX75Sa+cV0qO9L0LYp/Vua4SY1GaIJQn0TH3ir0LcXYcYwfQ4jZBsPTnx2Imcn4DRVsgVvHMiEVq0dDLU3Kx1i8jIk4ISeg8YUYZICGg79qMOU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707258352; c=relaxed/simple; bh=WU3x0zIeoP6xyUMyTVcnpXfLJrwhP5APoHffIvSjMFQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=HqTbQd+tndilg6XpXYNz9QBnx3vhhem1i6ryv8FG4l+DCs3Zb8glVKpRhK5I/g09Zla5ANRU8szhRUWoPqARt83+OrUVEV/XqnzvBowmAT3m4ijMMk+9Ofl7isnBS1hNz7XX2eVbgruwlrCguR6ndD6fGdzFdrI3vPqR65HtunI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=d4DsACTS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CA06C433C7; Tue, 6 Feb 2024 22:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1707258351; bh=WU3x0zIeoP6xyUMyTVcnpXfLJrwhP5APoHffIvSjMFQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d4DsACTSy8TyyqJS3vN1FDuQFelfApE/DdBxnrCS9iPQH/Zy2u6zE1d/W0TvEFZgi hoUTECZ7LJ2xfiTR0yzszUXCmhASl9nJ4P93wMC8/fqYcIpm5LEckg8nQ6/LDkUM+m 00qmGUqbRWbeJh/vyhvDo7YkU+xeniPBDG52Rxi4= Date: Tue, 6 Feb 2024 14:25:50 -0800 From: Andrew Morton To: Anshuman Khandual Cc: linux-mm@kvack.org, Sumit Semwal , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/cma: Drop cma_get_name() Message-Id: <20240206142550.62bed7715692ddc0071da7d0@linux-foundation.org> In-Reply-To: <20240206041518.438801-1-anshuman.khandual@arm.com> References: <20240206041518.438801-1-anshuman.khandual@arm.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 6 Feb 2024 09:45:18 +0530 Anshuman Khandual wrote: > cma_get_name() just returns cma->name without any additional transformation > unlike other helpers such as cma_get_base() and cma_get_size(). This helper > is not worth the additional indirection, and can be dropped after replacing > directly with cma->name in the sole caller __add_cma_heap(). drivers/dma-buf/heaps/cma_heap.c: In function '__add_cma_heap': drivers/dma-buf/heaps/cma_heap.c:379:28: error: invalid use of undefined type 'struct cma' 379 | exp_info.name = cma->name; | ^~ Fixing this would require moving the `struct cma' definition into cma.h. I don't think that's worthwhile.