Re: [PATCH] block: export disk_part_iter_* helpers

From: Christoph Hellwig
Date: Fri Mar 26 2021 - 08:14:57 EST


On Fri, Mar 26, 2021 at 08:10:59PM +0800, yanfei.xu@xxxxxxxxxxxxx wrote:
> From: Yanfei Xu <yanfei.xu@xxxxxxxxxxxxx>
>
> 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.