All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>, Hauke Mehrtens <hauke@hauke-m.de>
Cc: backports@vger.kernel.org
Subject: Re: backports spatch question
Date: Mon, 05 Jul 2021 19:55:13 +0200	[thread overview]
Message-ID: <244749b289fcaca6826670471890420d4b51b6ed.camel@sipsolutions.net> (raw)
In-Reply-To: <31776ce8-7014-b3ed-41bf-121e8ce5001c@candelatech.com>

On Mon, 2021-07-05 at 10:47 -0700, Ben Greear wrote:
> On 7/1/21 2:51 PM, Johannes Berg wrote:
> > On Thu, 2021-07-01 at 14:40 -0700, Ben Greear wrote:
> > > 
> > > [greearb@v-f34-64 backports]$ spatch --version
> > > spatch version 1.0.8-gf4ba8df-dirty compiled with OCaml version 4.11.1
> > 
> > 
> > I just realized I never even tried on my system recently, I'm still on
> > F33 and have
> > 
> > spatch version 1.0.8-gc1dbb4f-dirty compiled with OCaml version 4.11.1
> > 
> > Could you try some other version? Backports says it needs "at least"
> > 1.0.7 but perhaps only exactly that works?
> > 
> > johannes
> > 
> 
> I hacked through this by removing the offending spatches.  Seems to have worked OK
> since the kernels I am using are relatively recent.
> 
> I spent a while getting the mac80211 patches from owrt tweaked or otherwise
> resolved so that it would patch against my backports tree.
> 
> But now I'm having trouble with rfkill and not sure best way forward.  Is backports
> supposed to take care of this somehow, or do I need to go hacking in openwrt?

You need this bit in backport-include/linux/rfkill.h, not sure why it's
not there yet:

#if LINUX_VERSION_IS_LESS(5,11,0)

/* This should come from uapi/linux/rfkill.h, but it was much easier
 * to do it this way.
 */
enum rfkill_hard_block_reasons {
        RFKILL_HARD_BLOCK_SIGNAL        = 1 << 0,
        RFKILL_HARD_BLOCK_NOT_OWNER     = 1 << 1,
};

static inline bool rfkill_set_hw_state_reason(struct rfkill *rfkill,
                                              bool blocked, unsigned
long reason)
{
        return rfkill_set_hw_state(rfkill, blocked);
}

#endif /* 5.11 */


johannes

--
To unsubscribe from this list: send the line "unsubscribe backports" in

  reply	other threads:[~2021-07-05 17:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e26b0d55-8662-ecf7-6630-ac23a99374b5@candelatech.com>
2021-07-01 21:40 ` backports spatch question Johannes Berg
2021-07-01 21:40   ` Ben Greear
2021-07-01 21:51     ` Johannes Berg
2021-07-01 22:33       ` Ben Greear
2021-07-01 22:55       ` Ben Greear
2021-07-05 17:47       ` Ben Greear
2021-07-05 17:55         ` Johannes Berg [this message]
2021-07-05 19:10           ` Ben Greear
2021-07-05 19:14             ` Johannes Berg
2021-07-05 19:17               ` Ben Greear
2021-07-05 19:19                 ` Johannes Berg
2021-07-05 19:26                   ` Ben Greear
2021-07-05 19:26                     ` Johannes Berg
2021-07-05 19:32                       ` Ben Greear
2021-07-05 19:32                         ` Johannes Berg
2021-07-05 19:38                           ` Ben Greear
2021-07-05 20:07                           ` Ben Greear
2021-07-05 20:30                           ` Ben Greear
2021-07-06  6:41                             ` Johannes Berg
2021-07-06 13:24                               ` Ben Greear

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=244749b289fcaca6826670471890420d4b51b6ed.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=backports@vger.kernel.org \
    --cc=greearb@candelatech.com \
    --cc=hauke@hauke-m.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.