backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: "backports@vger.kernel.org" <backports@vger.kernel.org>
Cc: aspriel@gmail.com, Johannes Berg <johannes@sipsolutions.net>,
	John Crispin <john@phrozen.org>
Subject: .coredump spatch
Date: Mon, 17 Sep 2018 23:39:55 +0200	[thread overview]
Message-ID: <a1e69bd7-132b-124b-d36c-b9cae361a9ff@hauke-m.de> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 645 bytes --]

The device structure now has this .coredump member which is also used by
some wireless drivers, see here for example:
https://git.kernel.org/linus/8e072168f75ebce85b96cbcefea2b10ddbd5913f

I tried to create a spatch for this, but I failed to match the driver
member because it is embedded inside an other structure, it looks like
this for example:

static struct pci_driver brcmf_pciedrvr = {
....
	.driver.coredump = brcmf_dev_coredump,
};

I would like to convert this to this:

static struct pci_driver brcmf_pciedrvr = {
....
#if LINUX_VERSION_IS_GEQ(4,16,0)
	.driver.coredump = brcmf_dev_coredump,
#endif
};

Hauke


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2018-09-18  3:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 21:39 Hauke Mehrtens [this message]
2018-09-18  6:28 ` .coredump spatch Omer Efrat
2018-09-18  6:28   ` Omer Efrat
2018-09-18 21:49   ` Hauke Mehrtens
2018-09-19  8:49 ` Johannes Berg

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=a1e69bd7-132b-124b-d36c-b9cae361a9ff@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=aspriel@gmail.com \
    --cc=backports@vger.kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=john@phrozen.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).