All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: backports@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: [PATCH 1/5] backports: fix some dev_coredumpm() problem
Date: Wed, 11 Oct 2017 16:31:43 +0200	[thread overview]
Message-ID: <20171011143147.3337-1-johannes@sipsolutions.net> (raw)

From: Johannes Berg <johannes.berg@intel.com>

Sometimes the argument is const, sometimes not, just cast
away that difference.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/compat/backport-4.7.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/backport/compat/backport-4.7.c b/backport/compat/backport-4.7.c
index b064707767c6..372951b60382 100644
--- a/backport/compat/backport-4.7.c
+++ b/backport/compat/backport-4.7.c
@@ -176,7 +176,9 @@ void dev_coredumpsg(struct device *dev, struct scatterlist *table,
 		    size_t datalen, gfp_t gfp)
 {
 	dev_coredumpm(dev, THIS_MODULE, table, datalen, gfp,
-		      devcd_read_from_sgtable, devcd_free_sgtable);
+		      /* cast away some const problems */
+		      (void *)devcd_read_from_sgtable,
+		      (void *)devcd_free_sgtable);
 }
 EXPORT_SYMBOL_GPL(dev_coredumpsg);
 #endif /* >= 3.18.0 */
-- 
2.14.2

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

             reply	other threads:[~2017-10-11 14:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-11 14:31 Johannes Berg [this message]
2017-10-11 14:31 ` [PATCH 2/5] backports: backport from_timer() and timer_setup() Johannes Berg
2017-10-11 14:31 ` [PATCH 3/5] backports: remove genregdb Makefile change Johannes Berg
2017-10-11 14:31 ` [PATCH 4/5] backports: add OPTIMIZER_HIDE_VAR Johannes Berg
2017-10-11 14:31 ` [PATCH 5/5] backports: add crypto_memneq() 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=20171011143147.3337-1-johannes@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=backports@vger.kernel.org \
    --cc=johannes.berg@intel.com \
    /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.