All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: ego@in.ibm.com
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@elte.hu>, Oleg Nesterov <oleg@tv-sign.ru>,
	Pavel Machek <pavel@ucw.cz>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -mm 2/2] Introduce freezer flags
Date: Fri, 27 Apr 2007 23:49:35 +0200	[thread overview]
Message-ID: <200704272349.36736.rjw@sisk.pl> (raw)
In-Reply-To: <20070427214047.GA21224@in.ibm.com>

On Friday, 27 April 2007 23:40, Gautham R Shenoy wrote:
> On Fri, Apr 27, 2007 at 05:40:16PM +0200, Rafael J. Wysocki wrote:
> > From: Rafael J. Wysocki <rjw@sisk.pl>
> > 
> > Move all of the freezer-related flags to a separate field in task_struct and
> > introduce functions to operate them using set_bit() etc.
> > 
> > 
> > Index: linux-2.6.21-rc7-mm2/include/linux/sched.h
> > ===================================================================
> > --- linux-2.6.21-rc7-mm2.orig/include/linux/sched.h
> > +++ linux-2.6.21-rc7-mm2/include/linux/sched.h
> > @@ -1006,7 +1006,10 @@ struct task_struct {
> >  	/* Deadlock detection and priority inheritance handling */
> >  	struct rt_mutex_waiter *pi_blocked_on;
> >  #endif
> > -
> > +#ifdef CONFIG_FREEZER
> > +	/* Used by the process freezer, defined in freezer.h */
> > +	unsigned int freezer_flags;
> 
> unsigned long freezer_flags; ??

I guess so.

> Else it throws the following warnings.

On which arch is that?  I've tested on x86_64 ...

> include/linux/freezer.h: In function `frozen':
> include/linux/freezer.h:22: warning: passing arg 2 of
> `constant_test_bit' from incompatible pointer type
> include/linux/freezer.h:22: warning: passing arg 2 of
> `variable_test_bit' from incompatible pointer type
> include/linux/freezer.h: In function `set_frozen_flag':
> include/linux/freezer.h:27: warning: passing arg 2 of `set_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `clear_frozen_flag':
> include/linux/freezer.h:32: warning: passing arg 2 of `clear_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `freezing':
> include/linux/freezer.h:40: warning: passing arg 2 of
> `constant_test_bit' from incompatible pointer type
> include/linux/freezer.h:40: warning: passing arg 2 of
> `variable_test_bit' from incompatible pointer type
> include/linux/freezer.h: In function `freeze':
> include/linux/freezer.h:48: warning: passing arg 2 of `set_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `clear_freeze_flag':
> include/linux/freezer.h:56: warning: passing arg 2 of `clear_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `freezer_should_exempt':
> include/linux/freezer.h:64: warning: passing arg 2 of
> `constant_test_bit' from incompatible pointer type
> include/linux/freezer.h:64: warning: passing arg 2 of
> `variable_test_bit' from incompatible pointer type
> include/linux/freezer.h: In function `freezer_exempt':
> include/linux/freezer.h:72: warning: passing arg 2 of `set_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `freezer_do_not_count':
> include/linux/freezer.h:132: warning: passing arg 2 of `set_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `freezer_count':
> include/linux/freezer.h:142: warning: passing arg 2 of `clear_bit' from
> incompatible pointer type
> include/linux/freezer.h: In function `freezer_should_skip':
> include/linux/freezer.h:152: warning: passing arg 2 of
> `constant_test_bit' from incompatible pointer type
> include/linux/freezer.h:152: warning: passing arg 2 of
> `variable_test_bit' from incompatible pointer type

Greetings,
Rafael

  reply	other threads:[~2007-04-27 21:45 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-27 15:37 [PATCH -mm 0/2] Separate freezer from PM code Rafael J. Wysocki
2007-04-27 15:38 ` [PATCH -mm 1/2] " Rafael J. Wysocki
2007-04-27 16:15   ` Sam Ravnborg
2007-04-27 16:25   ` Jeremy Fitzhardinge
2007-04-27 20:20     ` Rafael J. Wysocki
2007-04-27 20:20       ` Jeremy Fitzhardinge
2007-04-27 21:29         ` Rafael J. Wysocki
2007-04-29  8:43           ` Sam Ravnborg
2007-04-27 15:40 ` [PATCH -mm 2/2] Introduce freezer flags Rafael J. Wysocki
2007-04-27 16:19   ` Sam Ravnborg
2007-04-27 16:33     ` Gautham R Shenoy
2007-04-27 21:40   ` Gautham R Shenoy
2007-04-27 21:49     ` Rafael J. Wysocki [this message]
2007-04-27 21:49       ` Gautham R Shenoy
2007-04-27 22:09       ` Rafael J. Wysocki
2007-04-27 22:07         ` Pavel Machek
2007-04-27 22:56           ` Rafael J. Wysocki
2007-04-28  7:07             ` Pavel Machek
2007-04-28  1:34   ` [PATCH -mm] Allow selective freezing of the system for different events Gautham R Shenoy
2007-04-28  6:22     ` Andrew Morton
2007-04-28  7:45       ` Gautham R Shenoy
2007-04-29 17:51     ` Rafael J. Wysocki
2007-04-30 19:19       ` Gautham R Shenoy

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=200704272349.36736.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=ego@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=oleg@tv-sign.ru \
    --cc=pavel@ucw.cz \
    --cc=penberg@cs.helsinki.fi \
    /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 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.