Re: backports spatch question
Ben Greear <[email protected]>
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Organization | Candela Technologies |
| Message-ID | <[email protected]> |
On 7/5/21 12:32 PM, Johannes Berg wrote: > On Mon, 2021-07-05 at 12:32 -0700, Ben Greear wrote: >> On 7/5/21 12:26 PM, Johannes Berg wrote: >>> On Mon, 2021-07-05 at 12:26 -0700, Ben Greear wrote: >>>> On 7/5/21 12:19 PM, Johannes Berg wrote: >>>>> On Mon, 2021-07-05 at 12:17 -0700, Ben Greear wrote: >>>>>> >>>>>> Did you test it? >>>>>> >>>>> >>>>> Yes, pretty sure we do it basically all the time. We don't have kernels >>>>> that new yet in most of our test setups. >>>>> >>>>>> Because that should be logically identical to what I tried if I read this file properly: >>>>> >>>>> Actually, your version might be more correct than ours ... >>>>> >>>>> I dunno. I note we also have an <linux/rfkill.h> include in cfg80211.h, >>>>> but that should be there upstream too, so not sure. >>>> >>>> There are a lot of rfkill.h files, what logic makes the backports code include the specific >>>> backport/backport-include/linux/rfkill.h file? I suspect that isn't working for the cfg80211.h >>>> file for whatever reason. >>> >>> It's just an additional -I flag on the compiler command line, or - >>> isystem or something like that. >>> >>> johannes >>> >> >> my cfg80211.h shows this line: >> >> #include <uapi/linux/rfkill.h> > > Not a later <linux/rfkill.h> line? We have one like that in our version > ... > > I guess we should really only have the <linux/rfkill.h> one, but since > we want the function declaration, we really ought to have that? > > johannes > > This is from Linus' 5.13 tree. My grep sucks, but gets the job done. [greearb@ben-dt4 configs]$ grep rfkill\.h ~/git/linux-2.6/include/net/cfg80211.h #include <uapi/linux/rfkill.h> * functions to adjust rfkill hw state * @reason: one of reasons in &enum rfkill_hard_block_reasons enum rfkill_hard_block_reasons reason); Is 'your version' of the kernel public somewhere? I can try changing the cfg80211.h in the upstream kernel that I am generating the backports package from, but that will not help anyone else trying to create a backports package from a stock 5.13 kernel... Thanks, Ben -- Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com -- To unsubscribe from this list: send the line "unsubscribe backports" in