+ module-export-param_free_charp.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: module: export param_free_charp()
has been added to the -mm tree.  Its filename is
     module-export-param_free_charp.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/module-export-param_free_charp.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/module-export-param_free_charp.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Dan Streetman <ddstreet@xxxxxxxx>
Subject: module: export param_free_charp()

Change the param_free_charp() function from static to exported.

It is used by zswap in the next patch ("zswap: use charp for zswap param
strings").

Signed-off-by: Dan Streetman <ddstreet@xxxxxxxx>
Acked-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: Seth Jennings <sjennings@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/moduleparam.h |    1 +
 kernel/params.c             |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -puN include/linux/moduleparam.h~module-export-param_free_charp include/linux/moduleparam.h
--- a/include/linux/moduleparam.h~module-export-param_free_charp
+++ a/include/linux/moduleparam.h
@@ -386,6 +386,7 @@ extern int param_get_ullong(char *buffer
 extern const struct kernel_param_ops param_ops_charp;
 extern int param_set_charp(const char *val, const struct kernel_param *kp);
 extern int param_get_charp(char *buffer, const struct kernel_param *kp);
+extern void param_free_charp(void *arg);
 #define param_check_charp(name, p) __param_check(name, p, char *)
 
 /* We used to allow int as well as bool.  We're taking that away! */
diff -puN kernel/params.c~module-export-param_free_charp kernel/params.c
--- a/kernel/params.c~module-export-param_free_charp
+++ a/kernel/params.c
@@ -325,10 +325,11 @@ int param_get_charp(char *buffer, const
 }
 EXPORT_SYMBOL(param_get_charp);
 
-static void param_free_charp(void *arg)
+void param_free_charp(void *arg)
 {
 	maybe_kfree_parameter(*((char **)arg));
 }
+EXPORT_SYMBOL(param_free_charp);
 
 const struct kernel_param_ops param_ops_charp = {
 	.set = param_set_charp,
_

Patches currently in -mm which might be from ddstreet@xxxxxxxx are

module-export-param_free_charp.patch
zswap-use-charp-for-zswap-param-strings.patch
zpool-remove-redundant-zpool-type-string-const-ify-zpool_get_type.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux