Re: ib-rhashtable.c:90:17: error

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

 



I had encountered same problem. And i solved by some procedures below:

Step 1: linux-next check out to latest version, backports also
checkout to master and apply ccm patch.
Step 2: generate tree by ./gentree.py --verbose --clean ~/linux-next/
~/backports-output
Step 3: modify DECLARE_EWMA(signal, 10, 8) to DECLARE_EWMA(signal,
2014, 8) in ../mac80211/sta_info.h of backports-output
Step 4: modify "skb=idr_remove(...);" to "skb=idr_find(...); if (skb)
idr_remove(...);"  in ../mac80211/status.h of backports-output
Step 5: Target linux kernel (the lower version or your specific
version ) need to be compiled first.
Step 6: export KLIB_BUILD="path/to/your_lower_linux_kernel"
Step 7: export KLIB="path/to/your/build/object" (I am about to get
*.ko, thus i point the directory to backports-output)
Step 8: make defconfig-your_choice (I am using defconfig-ath10k)
Step 9: make the backports-output and wait to compile.

My compile environment is Ubuntu16.04 with kernel 4.4 and I am porting
ath10k in linux kernel 4.11 back to linux 4.2.
I hope this information will help you.

On Wed, Mar 29, 2017 at 4:19 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
>
>>     tbl->locks = kvmalloc(size * sizeof(spinlock_t), gfp);
>
> Looks like we need to backport kvmalloc(), and perhaps something around
> the free as well.
>
>> Is there any fix for that?
>
> No, not yet, but shouldn't be hard.
>
> johannes
> --
> To unsubscribe from this list: send the line "unsubscribe backports" in



-- 
吳重毅 Wu Chung-yi
--
To unsubscribe from this list: send the line "unsubscribe backports" in




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux