Re: arch/um/include/asm/Kbuild question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/12/21 12:06 AM, Masahiro Yamada wrote:
> On Wed, May 12, 2021 at 3:18 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>>
>> Hi.
>>
>> I thought that adding
>> +generic-y += rwonce.h
>>
>> to arch/um/include/asm/Kbuild would fix a build problem:
>>
>>   CC [M]  fs/hostfs/hostfs_user.o
>> In file included from ../include/asm-generic/div64.h:27,
>>                  from ../fs/hostfs/hostfs_user.c:21:
>> include/linux/compiler.h:248:10: fatal error: asm/rwonce.h: No such file or directory
>>   248 | #include <asm/rwonce.h>
>>       |          ^~~~~~~~~~~~~~
>>
>>
>> but it doesn't seem to be helping.
>> Do I need to use mandatory-y instead?
>>
>> Or is arch/um/ with ARCH=um and SUBARCH=i386 just "different"?
> 
> 
> I see
> 
>   mandatory-y += rwonce.h
> 
> in include/asm-generic/Kbuild.
> 
> 
> arch/x86/include/generated/asm/rwonce.h
> is generated.
> 
> 
> Is it still failing?

Yes, I see the generated/asm/rwonce.h file but it
still fails.

Thanks.

>>
>> The build error is:
>> ERROR: modpost: "__divdi3" [fs/hostfs/hostfs.ko] undefined!
>>
>> and my current patch attempt is below
>>
>> Thanks.
>>
>> ---

-- 
~Randy




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux