mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Andrew Morton" <morton@nortelnetworks.com>
To: "Mohammad A. Haque" <mhaque@haque.net>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Miles Lane <miles@megapathdsl.net>,
	Frank Davis <fdavis112@juno.com>,
	linux-kernel@vger.kernel.org
Subject: Re: INIT_LIST_HEAD marco audit
Date: Mon, 11 Dec 2000 23:07:21 +0000	[thread overview]
Message-ID: <3A355E29.36A57B4C@asiapacificm01.nt.com> (raw)
In-Reply-To: <E145SRT-0007sM-00@the-village.bc.nu> <3A34D455.7208BE2F@haque.net>

"Mohammad A. Haque" wrote:
> 
> Thinko.
> 
> Question is... Adam Richter posted a patch for i2o_lan.c that does
> this...
> 
> static struct tq_struct i2o_post_buckets_task = {
>         list: LIST_HEAD_INIT(i2o_post_buckets_task.list),
>         sync: 0,
>         routine: (void (*)(void *))i2o_lan_receive_post,
>         data: (void *) 0
> };
> 

Will someone pleeeeze compile, test, use and submit this?

--- linux-2.4.0-test12-pre7/include/linux/tqueue.h	Mon Dec 11 13:21:04 2000
+++ linux/include/linux/tqueue.h	Tue Dec 12 10:03:51 2000
@@ -47,6 +47,16 @@
 #define DECLARE_TASK_QUEUE(q)	LIST_HEAD(q)
 #define TQ_ACTIVE(q)		(!list_empty(&q))
 
+#define INIT_TQ_STRUCT(routine, data)				\
+	{	list: LIST_HEAD_INIT(*(struct list_head *)0),	\
+		sync: 0,					\
+		routine: (routine),				\
+		data: (data),					\
+	}
+
+#define DECLARE_TQ_STRUCT(name, routine, data)			\
+	struct tq_struct name = INIT_TQ_STRUCT(routine, data)
+
 extern task_queue tq_timer, tq_immediate, tq_disk;
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2000-12-11 23:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-11  0:42 Frank Davis
2000-12-11  0:46 ` Mohammad A. Haque
2000-12-11  2:54 ` Mohammad A. Haque
2000-12-11  3:22   ` Mohammad A. Haque
2000-12-11  3:50   ` Miles Lane
2000-12-11  4:14     ` Mohammad A. Haque
2000-12-11 12:52       ` Alan Cox
2000-12-11 13:19         ` Mohammad A. Haque
2000-12-11 23:07           ` Andrew Morton [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=3A355E29.36A57B4C@asiapacificm01.nt.com \
    --to=morton@nortelnetworks.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=fdavis112@juno.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhaque@haque.net \
    --cc=miles@megapathdsl.net \
    /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

all inboxes | Powered by JetHome®