]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Feb 2018 13:09:12 +0000 (14:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Feb 2018 13:09:12 +0000 (14:09 +0100)
added patches:
asoc-pcm512x-add-missing-module_description-author-license.patch

queue-3.18/asoc-pcm512x-add-missing-module_description-author-license.patch [new file with mode: 0644]
queue-3.18/series

diff --git a/queue-3.18/asoc-pcm512x-add-missing-module_description-author-license.patch b/queue-3.18/asoc-pcm512x-add-missing-module_description-author-license.patch
new file mode 100644 (file)
index 0000000..a7028b8
--- /dev/null
@@ -0,0 +1,37 @@
+From 0cab20cec0b663b7be8e2be5998d5a4113647f86 Mon Sep 17 00:00:00 2001
+From: Jesse Chan <jc@linux.com>
+Date: Sun, 19 Nov 2017 23:45:49 -0800
+Subject: ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
+
+From: Jesse Chan <jc@linux.com>
+
+commit 0cab20cec0b663b7be8e2be5998d5a4113647f86 upstream.
+
+This change resolves a new compile-time warning
+when built as a loadable module:
+
+WARNING: modpost: missing MODULE_LICENSE() in sound/soc/codecs/snd-soc-pcm512x-spi.o
+see include/linux/module.h for more information
+
+This adds the license as "GPL v2", which matches the header of the file.
+
+MODULE_DESCRIPTION and MODULE_AUTHOR are also added.
+
+Signed-off-by: Jesse Chan <jc@linux.com>
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/soc/codecs/pcm512x-spi.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/sound/soc/codecs/pcm512x-spi.c
++++ b/sound/soc/codecs/pcm512x-spi.c
+@@ -67,3 +67,7 @@ static struct spi_driver pcm512x_spi_dri
+ };
+ module_spi_driver(pcm512x_spi_driver);
++
++MODULE_DESCRIPTION("ASoC PCM512x codec driver - SPI");
++MODULE_AUTHOR("Mark Brown <broonie@kernel.org>");
++MODULE_LICENSE("GPL v2");
index 77fe3ab4be1dfa833418fe9b6fa131273709c297..2ba2cf3b494448d9f596b848e1fd0f7cfeb5dbf1 100644 (file)
@@ -33,3 +33,4 @@ usb-f_fs-prevent-gadget-unbind-if-it-is-already-unbound.patch
 usb-uas-unconditionally-bring-back-host-after-reset.patch
 selinux-general-protection-fault-in-sock_has_perm.patch
 spi-imx-do-not-access-registers-while-clocks-disabled.patch
+asoc-pcm512x-add-missing-module_description-author-license.patch