Skip to contentSkip to conversation

first patch test

PATCH In review Vishal Parmar 4 participants 4 messages Feb 18, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 first patch test

---
 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -1
index e4bcb5011360..c79dcee2213f 100644
@@ -2082,7 +2082,7 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
-
+        pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (dev == NULL)
Signature · 1 line
2.34.1
#1 lore raw

Hey Vishal,

actually sending noise to the mailing list is not very nice. And you also just did the same mistake as someone else a few weeks ago.

Please see this mail:
https://lore.kernel.org/linux-media/[email protected]/

If you don't know what to do for your first patch, then either ask in the mailing list or have a look into the TODO files in drivers/staging/media or ask on the IRC channel: https://linuxtv.org/irc/

Greetings,
Sebastian

Quoted 21 lines · Vishal Parmar

---
drivers/media/usb/uvc/uvc_driver.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -1
index e4bcb5011360..c79dcee2213f 100644
@@ -2082,7 +2082,7 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
-
+        pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (dev == NULL)
Signature · 1 line
2.34.1
#2 lore raw
In reply to Vishal Parmar
Quoted 10 lines · Vishal Parmar
---
 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +0 -0
index e4bcb5011360..c79dcee2213f 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2088

Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +1 -1
@@ -2082,7 +2082,7 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
-
+        pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (dev == NULL)

Hi and welcome to LKML!

As others has pointed, it seems like you had sent a patch which only added noises to the ML. Also, I see that you send the similar change as one in "Modifying a driver under the VM" section of kernelnewbies.org [1].

If you'd like to submit patches, you can do so by contributing to drivers/staging/ drivers first or documentation files at Documentation/. It is not recommended to go outside of there until you've gained experience and have several of your patches accepted and applied by respective maintainers.

In any case, please read Documentation/process/submitting-patches.rst.

Thanks.

[1]: https://kernelnewbies.org/FirstKernelPatch

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer
#3 lore raw
Quoted 22 lines · Bagas Sanjaya
Quoted 10 lines · Vishal Parmar
---
 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +0 -0
index e4bcb5011360..c79dcee2213f 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2088

Quoted 8 lines
drivers/media/usb/uvc/uvc_driver.c +1 -1
@@ -2082,7 +2082,7 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
-
+        pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
 	if (dev == NULL)

Hi and welcome to LKML!

Quoted 4 lines

As others has pointed, it seems like you had sent a patch which only added noises to the ML. Also, I see that you send the similar change as one in "Modifying a driver under the VM" section of kernelnewbies.org [1].

Vishal, could you please point us to the exact location of the instructions you've interpreted as telling you to send this patch out ? I'd like to get that fixed to avoid similar noise in the future.

Quoted 11 lines

If you'd like to submit patches, you can do so by contributing to drivers/staging/ drivers first or documentation files at Documentation/. It is not recommended to go outside of there until you've gained experience and have several of your patches accepted and applied by respective maintainers.

In any case, please read Documentation/process/submitting-patches.rst.

Thanks.

[1]: https://kernelnewbies.org/FirstKernelPatch

Signature · 3 lines
Regards,

Laurent Pinchart