2016-03-07 03:29:21

by Daeho Jeong

[permalink] [raw]
Subject: Question about percpu_free_rwsem function

Hi,

I got a trouble while I am developing a patch for EXT4 filesytem.
Actually, I used a percpu rw semaphore in my patch and there was no
problem when I built EXT4 filesystem as built-in mode. However, when
kbuild auto build robot built EXT4 filesystem with my patch as a "module",
a bulid error occurred because percpu_free_rwsem() function is not exported.

I noticed that other functions except percpu_free_rwsem() were exported in 2015.
Is there any reason for percpu_free_rwsem() not to be exported?
If I need the function to be exported, should I do that in my patch? :-)

Best Regards,


2016-03-07 15:30:04

by Paul E. McKenney

[permalink] [raw]
Subject: Re: Question about percpu_free_rwsem function

On Mon, Mar 07, 2016 at 03:28:11AM +0000, Daeho Jeong wrote:
> Hi,
>
> I got a trouble while I am developing a patch for EXT4 filesytem.
> Actually, I used a percpu rw semaphore in my patch and there was no
> problem when I built EXT4 filesystem as built-in mode. However, when
> kbuild auto build robot built EXT4 filesystem with my patch as a "module",
> a bulid error occurred because percpu_free_rwsem() function is not exported.
>
> I noticed that other functions except percpu_free_rwsem() were exported in 2015.
> Is there any reason for percpu_free_rwsem() not to be exported?
> If I need the function to be exported, should I do that in my patch? :-)

Sounds like a question for the ext4 maintainers. You can find them in
the MAINTAINERS file.

Thanx, Paul