All of lore.kernel.org
 help / color / mirror / Atom feed
* ib-rhashtable.c:90:17: error
@ 2017-03-29  8:04 Janusz Dziedzic
  2017-03-29  8:19 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Janusz Dziedzic @ 2017-03-29  8:04 UTC (permalink / raw)
  To: backports

Hello,

backports generate like this:

./gentree.py --verbose --clean --git-revision next-20170310
--copy-list copy-list.ath ~/linux-next/ ~/backports-output

When compile on 4.4 kernel I hit such error:

  CC [M]  /home/jdziedzx/backports-output/compat/backport-4.8.o
  CC [M]  /home/jdziedzx/backports-output/compat/lib-rhashtable.o
/home/jdziedzx/backports-output/compat/lib-rhashtable.c: In function
=E2=80=98alloc_bucket_locks=E2=80=99:
/home/jdziedzx/backports-output/compat/lib-rhashtable.c:90:17: error:
implicit declaration of function =E2=80=98kvmalloc=E2=80=99
[-Werror=3Dimplicit-function-declaration]
    tbl->locks =3D kvmalloc(size * sizeof(spinlock_t), gfp);
                 ^
/home/jdziedzx/backports-output/compat/lib-rhashtable.c:90:15:
warning: assignment makes pointer from integer without a cast
[-Wint-conversion]
    tbl->locks =3D kvmalloc(size * sizeof(spinlock_t), gfp);
               ^
cc1: some warnings being treated as errors

Is there any fix for that?

--=20
Janusz Dziedzic
--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ib-rhashtable.c:90:17: error
  2017-03-29  8:04 ib-rhashtable.c:90:17: error Janusz Dziedzic
@ 2017-03-29  8:19 ` Johannes Berg
  2017-03-29  8:33   ` 吳重毅
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2017-03-29  8:19 UTC (permalink / raw)
  To: Janusz Dziedzic, backports


>     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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ib-rhashtable.c:90:17: error
  2017-03-29  8:19 ` Johannes Berg
@ 2017-03-29  8:33   ` 吳重毅
  0 siblings, 0 replies; 3+ messages in thread
From: 吳重毅 @ 2017-03-29  8:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Janusz Dziedzic, backports

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=3Didr_remove(...);" to "skb=3Didr_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=3D"path/to/your_lower_linux_kernel"
Step 7: export KLIB=3D"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@sipsolutions.net> wrote:
>
>>     tbl->locks =3D 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



--=20
=E5=90=B3=E9=87=8D=E6=AF=85 Wu Chung-yi
--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-29  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-29  8:04 ib-rhashtable.c:90:17: error Janusz Dziedzic
2017-03-29  8:19 ` Johannes Berg
2017-03-29  8:33   ` 吳重毅

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.