mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Corey Minyard <tcminyard@gmail.com>
To: Oskar Schirmer <oskar@scara.com>
Cc: linux-kernel@vger.kernel.org, Wim Van Sebroeck <wim@iguana.be>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] char/ipmi: remove local ioctl defines replaced by generic ones
Date: Tue, 26 Jun 2012 14:38:01 -0500	[thread overview]
Message-ID: <4FEA0F99.4030609@acm.org> (raw)
In-Reply-To: <1338456523-12390-1-git-send-email-oskar@scara.com>

Looks good to me...

Acked-by: Corey Minyard <cminyard@mvista.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@scara.com>
> Cc: Corey Minyard<minyard@acm.org>
> Cc: Wim Van Sebroeck<wim@iguana.be>
> Cc: Andrew Morton<akpm@linux-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)


      parent reply	other threads:[~2012-06-26 19:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-31  9:28 Oskar Schirmer
2012-06-26 18:52 ` Wim Van Sebroeck
2012-06-26 19:38 ` Corey Minyard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FEA0F99.4030609@acm.org \
    --to=tcminyard@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minyard@acm.org \
    --cc=oskar@scara.com \
    --cc=wim@iguana.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome