From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56D8FC433DB for ; Fri, 26 Mar 2021 12:14:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0EE3161A2A for ; Fri, 26 Mar 2021 12:14:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbhCZMO0 (ORCPT ); Fri, 26 Mar 2021 08:14:26 -0400 Received: from verein.lst.de ([213.95.11.211]:45475 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhCZMOB (ORCPT ); Fri, 26 Mar 2021 08:14:01 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 529B367373; Fri, 26 Mar 2021 13:13:59 +0100 (CET) Date: Fri, 26 Mar 2021 13:13:59 +0100 From: Christoph Hellwig To: yanfei.xu@windriver.com Cc: hch@lst.de, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] block: export disk_part_iter_* helpers Message-ID: <20210326121359.GA14989@lst.de> References: <20210326121059.597172-1-yanfei.xu@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326121059.597172-1-yanfei.xu@windriver.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 08:10:59PM +0800, yanfei.xu@windriver.com wrote: > From: Yanfei Xu > > disk_part_iter_* helpers might be used by other external modules, like > lttng-modules. But it was unexport in 'commit bc359d03c7ec ("block: add > a disk_uevent helper")'. Here export them again. Err, no. We never export things for out of tree modules. And any kind of driver code has absolutely no business looking at the partition tables to start with, modular or not.