Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8734763imu; Sat, 29 Dec 2018 02:37:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN4xE7KRhPeqQFtaPkE8UxhP4+haqzIdg31MmhNXMk6Q1txMDkdWQwyPRO5wCzhrCUB6I9+f X-Received: by 2002:a17:902:34a:: with SMTP id 68mr31218141pld.268.1546079827144; Sat, 29 Dec 2018 02:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546079827; cv=none; d=google.com; s=arc-20160816; b=bPmY9VK0Py7mNjeIQRDYOxzgWsqCXQDm+vLlIDMkRbwZonX1P4rNt837iyeSS/S4HO 6F2h3mgyduU+qIAneoIKgqcYlJFGXNrqIUI6ZGpi1Gsx5Mgv2bagamPguUNwt5/ur2TR U6cMU+M0u4qRhNIFuwh0zUPAqb+GxU0Heb1Z+P18WHruQqooMh9RjFbDy9onu9J+LDj8 tsXtqc2z3yM9Ml0241PCltNXNJC/QQW7gQan7CRmWTRJwVFinsDU+ktWlMJlsNaBlnlf IHym4jD4Psh5ns5IGwWVWrMHFYwYgWDrUx/n29y4cA/RmjuDMCCERz/uS7t3ayM8vNPY 9pfA== 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:subject:cc:to:from:date; bh=doi1Fq/1RH8tZZ3SSZBKmF9iC5mEzxOMZzcJJvneh8c=; b=NuAv+sx8etpuk7EmXIy/Z7Gtb1HgwvyNL5/F8m9k54lNuuOZEz76FCqxVyW6GM6wFZ j3R5aQHmP0cadmhB40JsM9st0k+0hOBZFCpdzjwmSq4pusKVPLIl4fNhcJOPPky9CCx9 eydxtUqAxbKujidbl5aYY9GLbceu3frWv/c/bInIfpZsKPGHQxz2i3VyfUXJav9pK8yW +u9inTCzS+Ij6atCXeqUc2crfl1zUI323htC+/txc20Z55D5qp/Oz21eQAgMuycD27iH 5iXz2LgwXSq6eirmB6BGGUpVz2iyW13pe0N/IxQcdJcsX4twVZAAcsKwfTJuf46ksaRs olIg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p64si36839610pfg.79.2018.12.29.02.36.51; Sat, 29 Dec 2018 02:37:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbeL1XkB (ORCPT + 99 others); Fri, 28 Dec 2018 18:40:01 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37560 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727596AbeL1XkB (ORCPT ); Fri, 28 Dec 2018 18:40:01 -0500 Received: from localhost.localdomain (c-24-6-170-16.hsd1.ca.comcast.net [24.6.170.16]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B5B4DB49; Fri, 28 Dec 2018 23:39:59 +0000 (UTC) Date: Fri, 28 Dec 2018 15:39:58 -0800 From: Andrew Morton To: Christoph Hellwig Cc: Huang Shijie , linux@armlinux.org.uk, arnd@arndb.de, gregkh@linuxfoundation.org, m.szyprowski@samsung.com, robin.murphy@arm.com, sfr@canb.auug.org.au, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, shijie8@gmail.com Subject: Re: [PATCH] lib/genalloc.c: rename addr_in_gen_pool to gen_pool_has_addr Message-Id: <20181228153958.40cfb7a9b446225d73c585cd@linux-foundation.org> In-Reply-To: <20181228084834.GA8658@lst.de> References: <20181228083950.20398-1-sjhuang@iluvatar.ai> <20181228084834.GA8658@lst.de> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 28 Dec 2018 09:48:34 +0100 Christoph Hellwig wrote: > On Fri, Dec 28, 2018 at 04:39:50PM +0800, Huang Shijie wrote: > > Follow the kernel conventions, rename addr_in_gen_pool to > > gen_pool_has_addr. > > Which convention? That symbols from subsystem foo should be called foo_*. Not uniformly observed by any means, but it is a thing. > The old name certainly looks more sensible to me. It does read better, but it's rather a standout in this case: q:/usr/src/25> grep EXPORT_SYMBOL lib/genalloc.c EXPORT_SYMBOL(gen_pool_create); EXPORT_SYMBOL(gen_pool_add_virt); EXPORT_SYMBOL(gen_pool_virt_to_phys); EXPORT_SYMBOL(gen_pool_destroy); EXPORT_SYMBOL(gen_pool_alloc); EXPORT_SYMBOL(gen_pool_alloc_algo); EXPORT_SYMBOL(gen_pool_dma_alloc); EXPORT_SYMBOL(gen_pool_free); EXPORT_SYMBOL(gen_pool_for_each_chunk); EXPORT_SYMBOL(addr_in_gen_pool); EXPORT_SYMBOL_GPL(gen_pool_avail); EXPORT_SYMBOL_GPL(gen_pool_size); EXPORT_SYMBOL(gen_pool_set_algo); EXPORT_SYMBOL(gen_pool_first_fit); EXPORT_SYMBOL(gen_pool_first_fit_align); EXPORT_SYMBOL(gen_pool_fixed_alloc); EXPORT_SYMBOL(gen_pool_first_fit_order_align); EXPORT_SYMBOL(gen_pool_best_fit); EXPORT_SYMBOL_GPL(gen_pool_get); EXPORT_SYMBOL(devm_gen_pool_create); EXPORT_SYMBOL_GPL(of_gen_pool_get);