All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gdm724x: add SPDX License in gdm724x drivers
@ 2021-11-02 18:58 Ankit Kumar Pandey
  2021-11-02 19:50 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Ankit Kumar Pandey @ 2021-11-02 18:58 UTC (permalink / raw)
  To: gregkh, linux-kernel, linux-staging

This work ensure SPDX-License convention is followed. License is taken
from file gdm_mux.c present in drivers/staging/gdm724x.

Signed-off-by: Ankit Kumar Pandey <itsankitkp@gmail.com>
---
 drivers/staging/gdm724x/gdmulte.mod.c | 40 +++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 drivers/staging/gdm724x/gdmulte.mod.c

diff --git a/drivers/staging/gdm724x/gdmulte.mod.c b/drivers/staging/gdm724x/gdmulte.mod.c
new file mode 100644
index 000000000..6ddc19dcc
--- /dev/null
+++ b/drivers/staging/gdm724x/gdmulte.mod.c
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. */
+
+#include <linux/module.h>
+#define INCLUDE_VERMAGIC
+#include <linux/build-salt.h>
+#include <linux/elfnote-lto.h>
+#include <linux/vermagic.h>
+#include <linux/compiler.h>
+
+BUILD_SALT;
+BUILD_LTO_INFO;
+
+MODULE_INFO(vermagic, VERMAGIC_STRING);
+MODULE_INFO(name, KBUILD_MODNAME);
+
+__visible struct module __this_module
+__section(".gnu.linkonce.this_module") = {
+	.name = KBUILD_MODNAME,
+	.init = init_module,
+#ifdef CONFIG_MODULE_UNLOAD
+	.exit = cleanup_module,
+#endif
+	.arch = MODULE_ARCH_INIT,
+};
+
+MODULE_INFO(intree, "Y");
+
+#ifdef CONFIG_RETPOLINE
+MODULE_INFO(retpoline, "Y");
+#endif
+
+MODULE_INFO(staging, "Y");
+
+MODULE_INFO(depends, "");
+
+MODULE_ALIAS("usb:v1076p8000d*dc*dsc*dp*ic02isc06ip*in*");
+MODULE_ALIAS("usb:v1076p9000d*dc*dsc*dp*ic02isc06ip*in*");
+
+MODULE_INFO(srcversion, "EBCF613A4FE4F4BD3A2C60F");
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdm724x: add SPDX License in gdm724x drivers
  2021-11-02 18:58 [PATCH] gdm724x: add SPDX License in gdm724x drivers Ankit Kumar Pandey
@ 2021-11-02 19:50 ` Greg KH
       [not found]   ` <CALbMxBz1A6V++jcBB1_oCUpYEnkVNnq2QUXBwpOhVyCXjB-Tnw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2021-11-02 19:50 UTC (permalink / raw)
  To: Ankit Kumar Pandey; +Cc: linux-kernel, linux-staging

On Wed, Nov 03, 2021 at 12:28:44AM +0530, Ankit Kumar Pandey wrote:
> This work ensure SPDX-License convention is followed. License is taken
> from file gdm_mux.c present in drivers/staging/gdm724x.
> 
> Signed-off-by: Ankit Kumar Pandey <itsankitkp@gmail.com>
> ---
>  drivers/staging/gdm724x/gdmulte.mod.c | 40 +++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 drivers/staging/gdm724x/gdmulte.mod.c

Why are you adding this file to the kernel source tree?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdm724x: add SPDX License in gdm724x drivers (resend)
       [not found]   ` <CALbMxBz1A6V++jcBB1_oCUpYEnkVNnq2QUXBwpOhVyCXjB-Tnw@mail.gmail.com>
@ 2021-11-03  8:25     ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2021-11-03  8:25 UTC (permalink / raw)
  To: Ankit Pandey; +Cc: linux-kernel, linux-staging

On Wed, Nov 03, 2021 at 01:49:27PM +0530, Ankit Pandey wrote:
> I am sorry, there was some issue with my git and I was looking at wrong
> history. I have fixed my git and checked drivers/staging/gdm724x/ for
> license issues. No such issue was present.
> Please ignore this patch.
> 
> Note: This was my first patch, I am still figuring out and learning things.
> 
> On Wed, 3 Nov, 2021, 1:20 am Greg KH, <gregkh@linuxfoundation.org> wrote:
> 
> > On Wed, Nov 03, 2021 at 12:28:44AM +0530, Ankit Kumar Pandey wrote:
> > > This work ensure SPDX-License convention is followed. License is taken
> > > from file gdm_mux.c present in drivers/staging/gdm724x.
> > >
> > > Signed-off-by: Ankit Kumar Pandey <itsankitkp@gmail.com>
> > > ---
> > >  drivers/staging/gdm724x/gdmulte.mod.c | 40 +++++++++++++++++++++++++++
> > >  1 file changed, 40 insertions(+)
> > >  create mode 100644 drivers/staging/gdm724x/gdmulte.mod.c
> >
> > Why are you adding this file to the kernel source tree?

This file should not have been in your git history at all, it is
automataically generated by the build.

So what tool was scanning it for a SPDX license?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-03  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 18:58 [PATCH] gdm724x: add SPDX License in gdm724x drivers Ankit Kumar Pandey
2021-11-02 19:50 ` Greg KH
     [not found]   ` <CALbMxBz1A6V++jcBB1_oCUpYEnkVNnq2QUXBwpOhVyCXjB-Tnw@mail.gmail.com>
2021-11-03  8:25     ` [PATCH] gdm724x: add SPDX License in gdm724x drivers (resend) Greg KH

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.