From: "O.Sezer" <sezeroz@ttnet.net.tr>
To: linux-kernel@vger.kernel.org
Cc: marcelo.tosatti@cyclades.com
Subject: [PATCH] [2.4.28-pre1] more gcc3.4 inline fixes [1/10]
Date: Tue, 17 Aug 2004 18:14:11 +0300 [thread overview]
Message-ID: <412220C3.1050306@ttnet.net.tr> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: gcc34_inline_01.diff --]
[-- Type: text/plain, Size: 3167 bytes --]
--- 28p1/drivers/block/cpqarray.c~ 2004-02-18 15:36:31.000000000 +0200
+++ 28p1/drivers/block/cpqarray.c 2004-08-16 20:50:37.000000000 +0300
@@ -960,6 +960,20 @@
return c;
}
+static inline void complete_buffers(struct buffer_head *bh, int ok)
+{
+ struct buffer_head *xbh;
+ while(bh) {
+ xbh = bh->b_reqnext;
+ bh->b_reqnext = NULL;
+
+ blk_finished_io(bh->b_size >> 9);
+ bh->b_end_io(bh, ok);
+
+ bh = xbh;
+ }
+}
+
/*
* Get a request and submit it to the controller.
* This routine needs to grab all the requests it possibly can from the
@@ -1094,19 +1108,6 @@
}
}
-static inline void complete_buffers(struct buffer_head *bh, int ok)
-{
- struct buffer_head *xbh;
- while(bh) {
- xbh = bh->b_reqnext;
- bh->b_reqnext = NULL;
-
- blk_finished_io(bh->b_size >> 9);
- bh->b_end_io(bh, ok);
-
- bh = xbh;
- }
-}
/*
* Mark all buffers that cmd was responsible for
*/
--- 28p1/drivers/block/cciss.c~ 2004-08-16 20:12:58.000000000 +0300
+++ 28p1/drivers/block/cciss.c 2004-08-16 21:04:26.000000000 +0300
@@ -168,6 +168,35 @@
static void cciss_procinit(int i) {}
#endif /* CONFIG_PROC_FS */
+/*
+ * Enqueuing and dequeuing functions for cmdlists.
+ */
+static inline void addQ(CommandList_struct **Qptr, CommandList_struct *c)
+{
+ if (*Qptr == NULL) {
+ *Qptr = c;
+ c->next = c->prev = c;
+ } else {
+ c->prev = (*Qptr)->prev;
+ c->next = (*Qptr);
+ (*Qptr)->prev->next = c;
+ (*Qptr)->prev = c;
+ }
+}
+
+static inline CommandList_struct *removeQ(CommandList_struct **Qptr,
+ CommandList_struct *c)
+{
+ if (c && c->next != c) {
+ if (*Qptr == c) *Qptr = c->next;
+ c->prev->next = c->next;
+ c->next->prev = c->prev;
+ } else {
+ *Qptr = NULL;
+ }
+ return c;
+}
+
static struct block_device_operations cciss_fops = {
owner: THIS_MODULE,
open: cciss_open,
@@ -629,6 +658,7 @@
static inline void register_cciss_ioctl32(void) {}
static inline void unregister_cciss_ioctl32(void) {}
#endif
+
/*
* ioctl
*/
@@ -2131,35 +2161,6 @@
return (ulong) (page_remapped ? (page_remapped + page_offs) : 0UL);
}
-/*
- * Enqueuing and dequeuing functions for cmdlists.
- */
-static inline void addQ(CommandList_struct **Qptr, CommandList_struct *c)
-{
- if (*Qptr == NULL) {
- *Qptr = c;
- c->next = c->prev = c;
- } else {
- c->prev = (*Qptr)->prev;
- c->next = (*Qptr);
- (*Qptr)->prev->next = c;
- (*Qptr)->prev = c;
- }
-}
-
-static inline CommandList_struct *removeQ(CommandList_struct **Qptr,
- CommandList_struct *c)
-{
- if (c && c->next != c) {
- if (*Qptr == c) *Qptr = c->next;
- c->prev->next = c->next;
- c->next->prev = c->prev;
- } else {
- *Qptr = NULL;
- }
- return c;
-}
-
/*
* Takes jobs of the Q and sends them to the hardware, then puts it on
* the Q to wait for completion.
reply other threads:[~2004-08-17 15:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=412220C3.1050306@ttnet.net.tr \
--to=sezeroz@ttnet.net.tr \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/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.