From: Alexey Dobriyan <adobriyan@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH -mm] s390: fix TIMER_MAGIC breakage
Date: Fri, 30 Sep 2005 14:06:39 +0400 [thread overview]
Message-ID: <20050930100639.GA6936@mipter.zuzino.mipt.ru> (raw)
In-Reply-To: <20050929143732.59d22569.akpm@osdl.org>
Sucker is remove-timer-debug-fields.patch
CC arch/s390/kernel/vtime.o
arch/s390/kernel/vtime.c: In function `init_virt_timer':
arch/s390/kernel/vtime.c:280: error: `TIMER_MAGIC' undeclared
----------------------------------------------------------------------------
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/s390/kernel/vtime.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
--- linux-2.6.14-rc2-mm2-vanilla/arch/s390/kernel/vtime.c
+++ linux-2.6.14-rc2-mm2-s390/arch/s390/kernel/vtime.c
@@ -24,7 +24,6 @@
#include <asm/s390_ext.h>
#include <asm/timer.h>
-#define VTIMER_MAGIC (TIMER_MAGIC + 1)
static ext_int_info_t ext_int_info_timer;
DEFINE_PER_CPU(struct vtimer_queue, virt_cpu_timer);
@@ -277,20 +276,12 @@ static void do_cpu_timer_interrupt(struc
void init_virt_timer(struct vtimer_list *timer)
{
- timer->magic = VTIMER_MAGIC;
timer->function = NULL;
INIT_LIST_HEAD(&timer->entry);
spin_lock_init(&timer->lock);
}
EXPORT_SYMBOL(init_virt_timer);
-static inline int check_vtimer(struct vtimer_list *timer)
-{
- if (timer->magic != VTIMER_MAGIC)
- return -EINVAL;
- return 0;
-}
-
static inline int vtimer_pending(struct vtimer_list *timer)
{
return (!list_empty(&timer->entry));
@@ -346,7 +337,7 @@ static void internal_add_vtimer(struct v
static inline int prepare_vtimer(struct vtimer_list *timer)
{
- if (check_vtimer(timer) || !timer->function) {
+ if (!timer->function) {
printk("add_virt_timer: uninitialized timer\n");
return -EINVAL;
}
@@ -414,7 +405,7 @@ int mod_virt_timer(struct vtimer_list *t
unsigned long flags;
int cpu;
- if (check_vtimer(timer) || !timer->function) {
+ if (!timer->function) {
printk("mod_virt_timer: uninitialized timer\n");
return -EINVAL;
}
@@ -481,11 +472,6 @@ int del_virt_timer(struct vtimer_list *t
unsigned long flags;
struct vtimer_queue *vt_list;
- if (check_vtimer(timer)) {
- printk("del_virt_timer: timer not initialized\n");
- return -EINVAL;
- }
-
/* check if timer is pending */
if (!vtimer_pending(timer))
return 0;
next prev parent reply other threads:[~2005-09-30 9:55 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 21:37 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 21:46 ` 2.6.14-rc2-mm2 Alexandre Buisse
2005-09-29 22:51 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:00 ` 2.6.14-rc2-mm2 Aurelien Francillon
2005-09-29 22:56 ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 22:08 ` 2.6.14-rc2-mm2 Alexandre Buisse
2005-09-29 23:40 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:54 ` 2.6.14-rc2-mm2 Brice Goglin
2005-09-30 8:45 ` 2.6.14-rc2-mm2 Laurent Riffard
2005-09-30 9:20 ` 2.6.14-rc2-mm2 Alexander Zarochentsev
2005-09-30 10:10 ` 2.6.14-rc2-mm2 Laurent Riffard
2005-09-29 23:51 ` 2.6.14-rc2-mm2 Hans Reiser
2005-09-29 22:47 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:18 ` 2.6.14-rc2-mm2 Antonino A. Daplas
2005-09-29 23:25 ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 23:45 ` 2.6.14-rc2-mm2 Antonino A. Daplas
2005-09-29 23:47 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:48 ` 2.6.14-rc2-mm2 Grant Coady
2005-09-29 23:27 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:09 ` 2.6.14-rc2-mm2 J.A. Magallon
2005-09-30 2:16 ` 2.6.14-rc2-mm2 Grant Coady
2005-10-01 18:16 ` 2.6.14-rc2-mm2 Jean Delvare
2005-09-29 23:26 ` 2.6.14-rc2-mm2 Mark Knecht
2005-09-29 23:49 ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 23:58 ` 2.6.14-rc2-mm2 Mark Knecht
2005-09-30 10:06 ` Alexey Dobriyan [this message]
2005-09-30 14:36 ` 2.6.14-rc2-mm2 Martin J. Bligh
2005-09-30 16:54 ` 2.6.14-rc2-mm2 Badari Pulavarty
2005-09-30 17:15 ` 2.6.14-rc2-mm2 Grant Wilson
2005-09-30 18:49 ` 2.6.14-rc2-mm2 (PHY reset until link up) Dominik Karall
2005-09-30 19:07 ` Andrew Morton
2005-09-30 19:32 ` [patch 2.6.14-rc2 1/1] r8169: tone down the r8169 driver Francois Romieu
2005-09-30 20:15 ` 2.6.14-rc2-mm2 (PHY reset until link up) Francois Romieu
2005-09-30 19:36 ` 2.6.14-rc2-mm2 Mickael Marchand
2005-10-04 21:42 ` 2.6.14-rc2-mm2 Mickael Marchand
2005-09-30 19:56 ` 2.6.14-rc2-mm2 alexs
2005-09-30 22:02 ` reiser4 compilation fix [ was: 2.6.14-rc2-mm2] Alexander Zarochentsev
2005-09-30 22:23 ` Stephen Hemminger
2005-10-01 4:56 ` [PATCH] mips: add missing semicolon Yoichi Yuasa
2005-10-01 16:52 ` 2.6.14-rc2-mm2 (dma_timer_expiry) Dominik Karall
2005-10-02 20:06 ` 2.6.14-rc2-mm2 (NULL pointer) Dominik Karall
2005-10-02 20:45 ` Greg KH
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=20050930100639.GA6936@mipter.zuzino.mipt.ru \
--to=adobriyan@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).