lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a9137e59-80de-4314-8658-cf7e8105322d@wanadoo.fr>
Date: Sat, 13 Jul 2024 13:27:38 +0200
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: aditya-chari25 <adi25charis@...il.com>,
 laurent.pinchart@...asonboard.com, mchehab@...nel.org
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] MEDIA: USB: UVC: Corrected Errors in Macro Definitions

Le 13/07/2024 à 13:08, aditya-chari25 a écrit :
> macro definitions had errors since they weren't enclosed in parenthesis
> hence I rectified those errors

Hi,

The driver does *not* compile anymore with this patch.

Can you elaborate on what you are trying to fix and if your chnage is at 
least compile-tested?

CJ

> 
> Signed-off-by: aditya-chari25 <adi25charis@...il.com>
> ---
>   drivers/media/usb/uvc/uvc_driver.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
> index 8fe24c98087e..6e14b9dc3886 100644
> --- a/drivers/media/usb/uvc/uvc_driver.c
> +++ b/drivers/media/usb/uvc/uvc_driver.c
> @@ -2424,9 +2424,9 @@ static const struct uvc_device_info uvc_quirk_force_y8 = {
>   	.quirks = UVC_QUIRK_FORCE_Y8,
>   };
>   
> -#define UVC_INFO_QUIRK(q) (kernel_ulong_t)&(struct uvc_device_info){.quirks = q}
> -#define UVC_INFO_META(m) (kernel_ulong_t)&(struct uvc_device_info) \
> -	{.meta_format = m}
> +#define UVC_INFO_QUIRK(q) {(kernel_ulong_t)&(struct uvc_device_info){.quirks = q}}
> +#define UVC_INFO_META(m) {(kernel_ulong_t)&(struct uvc_device_info) \
> +	{.meta_format = m}}
>   
>   /*
>    * The Logitech cameras listed below have their interface class set to


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ