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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 26 Jun 2012 14:38:01 -0500
From:	Corey Minyard <tcminyard@...il.com>
To:	Oskar Schirmer <oskar@...ra.com>
CC:	linux-kernel@...r.kernel.org, Wim Van Sebroeck <wim@...ana.be>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] char/ipmi: remove local ioctl defines replaced by generic
 ones

Looks good to me...

Acked-by: Corey Minyard <cminyard@...sta.com>


On 05/31/2012 04:28 AM, Oskar Schirmer wrote:
> This watchdog driver had ioctl defines introduced locally
> for pre timeout handling, marked to be removed as soon as
> a generic replacement would become available.
>
> The latter has actually occurred in 2006, at e05b59fe.
>
> Remove the local duplicates for pre timeout handling.
>
> Signed-off-by: Oskar Schirmer<oskar@...ra.com>
> Cc: Corey Minyard<minyard@....org>
> Cc: Wim Van Sebroeck<wim@...ana.be>
> Cc: Andrew Morton<akpm@...ux-foundation.org>
> ---
>   drivers/char/ipmi/ipmi_watchdog.c |   13 -------------
>   1 files changed, 0 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c
> index 7ed356e..37b8be7 100644
> --- a/drivers/char/ipmi/ipmi_watchdog.c
> +++ b/drivers/char/ipmi/ipmi_watchdog.c
> @@ -141,17 +141,6 @@
>
>   #define IPMI_WDOG_TIMER_NOT_INIT_RESP	0x80
>
> -/* These are here until the real ones get into the watchdog.h interface. */
> -#ifndef WDIOC_GETTIMEOUT
> -#define	WDIOC_GETTIMEOUT        _IOW(WATCHDOG_IOCTL_BASE, 20, int)
> -#endif
> -#ifndef WDIOC_SET_PRETIMEOUT
> -#define	WDIOC_SET_PRETIMEOUT     _IOW(WATCHDOG_IOCTL_BASE, 21, int)
> -#endif
> -#ifndef WDIOC_GET_PRETIMEOUT
> -#define	WDIOC_GET_PRETIMEOUT     _IOW(WATCHDOG_IOCTL_BASE, 22, int)
> -#endif
> -
>   static DEFINE_MUTEX(ipmi_watchdog_mutex);
>   static bool nowayout = WATCHDOG_NOWAYOUT;
>
> @@ -732,7 +721,6 @@ static int ipmi_ioctl(struct file *file,
>   			return -EFAULT;
>   		return 0;
>
> -	case WDIOC_SET_PRETIMEOUT:
>   	case WDIOC_SETPRETIMEOUT:
>   		i = copy_from_user(&val, argp, sizeof(int));
>   		if (i)
> @@ -740,7 +728,6 @@ static int ipmi_ioctl(struct file *file,
>   		pretimeout = val;
>   		return ipmi_set_timeout(IPMI_SET_TIMEOUT_HB_IF_NECESSARY);
>
> -	case WDIOC_GET_PRETIMEOUT:
>   	case WDIOC_GETPRETIMEOUT:
>   		i = copy_to_user(argp,&pretimeout, sizeof(pretimeout));
>   		if (i)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ