All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Lists and aliasing (Re: Freeze on 27 February)
Date: Tue, 21 Feb 2012 18:09:36 +0100	[thread overview]
Message-ID: <4F43CFD0.3010703@gmail.com> (raw)
In-Reply-To: <20120221161943.GI27742@caffeine.csclub.uwaterloo.ca>

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

On 21.02.2012 17:19, Lennart Sorensen wrote:
> On Tue, Feb 21, 2012 at 05:12:12PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> Hello, it's to announce that from 27th of February the GRUB will be
>> frozen for 2.00 release. From that date on, no new features will be
>> committed only bugfixes.
>> If you have a patch which you think should be included in 2.00 you
>> can ping me about it but I might answer that it's postponed after
>> 2.00
>> @Richard Laager: Which of ZFS patches aren't committed yet? It's a
>> bit tricky to see which ones were superseeded.
> Any chance all these warnings will get fixed so powerpc can compile
> without using --disable-werror?
>
> At this point I can't figure out what to do to convince gcc that aliasing
> the list structure should be allowed.  It looks like the way lists are
> done in grub is simply a big hack that gcc doesn't like.
>
Try attached patch


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Attachment #2: list.diff --]
[-- Type: text/x-diff, Size: 1383 bytes --]

=== modified file 'grub-core/kern/list.c'
--- grub-core/kern/list.c	2012-02-12 02:52:17 +0000
+++ grub-core/kern/list.c	2012-02-12 02:52:48 +0000
@@ -32,3 +32,24 @@
 
   return NULL;
 }
+
+void
+grub_list_push (grub_list_t *head, grub_list_t item)
+{
+  item->prev = head;
+  if (*head)
+    (*head)->prev = &item->next;
+  item->next = *head;
+  *head = item;
+}
+
+void
+grub_list_remove (grub_list_t item)
+{
+  if (item->prev)
+    *item->prev = item->next;
+  if (item->next)
+    item->next->prev = item->prev;
+  item->next = 0;
+  item->prev = 0;
+}

=== modified file 'include/grub/list.h'
--- include/grub/list.h	2012-02-12 02:52:17 +0000
+++ include/grub/list.h	2012-02-12 02:53:20 +0000
@@ -31,26 +31,8 @@
 };
 typedef struct grub_list *grub_list_t;
 
-static inline void
-grub_list_push (grub_list_t *head, grub_list_t item)
-{
-  item->prev = head;
-  if (*head)
-    (*head)->prev = &item->next;
-  item->next = *head;
-  *head = item;
-}
-
-static inline void
-grub_list_remove (grub_list_t item)
-{
-  if (item->prev)
-    *item->prev = item->next;
-  if (item->next)
-    item->next->prev = item->prev;
-  item->next = 0;
-  item->prev = 0;
-}
+void EXPORT_FUNC(grub_list_push) (grub_list_t *head, grub_list_t item);
+void EXPORT_FUNC(grub_list_remove) (grub_list_t item);
 
 #define FOR_LIST_ELEMENTS(var, list) for ((var) = (list); (var); (var) = (var)->next)
 


  reply	other threads:[~2012-02-21 17:10 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 16:12 Freeze on 27 February Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-21 16:19 ` Lennart Sorensen
2012-02-21 17:09   ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-02-21 18:46     ` Lists and aliasing (Re: Freeze on 27 February) Lennart Sorensen
2012-02-21 19:58       ` Lennart Sorensen
2012-02-21 20:29         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 15:34           ` Lennart Sorensen
2012-02-22 15:50             ` Lennart Sorensen
2012-02-22 15:57               ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 16:18                 ` Lennart Sorensen
2012-02-22 16:25                   ` Lennart Sorensen
2012-02-22 16:43                     ` Lennart Sorensen
2012-02-22 16:50                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 17:16                       ` Lennart Sorensen
2012-02-22 17:35                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 17:41                           ` Lennart Sorensen
2012-02-22 17:46                             ` Lennart Sorensen
2012-02-22 18:01                               ` Lennart Sorensen
2012-02-22 18:28                                 ` Lennart Sorensen
2012-02-22 18:41                                   ` Lennart Sorensen
2012-02-22 19:00                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22 22:50                                       ` Lennart Sorensen
2012-02-22 23:03                                         ` Lennart Sorensen
2012-02-23  2:39                                           ` Isaac Dupree
2012-02-23  6:17                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-23 17:43                                             ` Lennart Sorensen
2012-02-24 23:16                                               ` Lennart Sorensen
2012-02-22 17:38                         ` Lennart Sorensen
2012-02-22 16:51                   ` Lennart Sorensen
2012-02-21 21:40         ` Lennart Sorensen
2012-02-22  5:35 ` Freeze on 27 February Richard Laager
2012-02-23  6:34   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27  6:58     ` Richard Laager
2012-02-27 18:17       ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27  7:32     ` Richard Laager
     [not found]     ` <1330033617.3895.26.camel@watermelon.coderich.net>
     [not found]       ` <4F4AC782.1090402@gmail.com>
     [not found]         ` <1330322499.2901.5.camel@watermelon.coderich.net>
     [not found]           ` <1330322681.2901.8.camel@watermelon.coderich.net>
2012-02-27 18:18             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27 18:20           ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-27 19:46             ` Richard Laager
2012-03-08 22:51               ` Remaining ZFS Changes for 2.00 (Was: Re: Freeze on 27 February) Richard Laager
2012-03-10 12:44                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 13:39                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 15:51                   ` Richard Laager
2012-03-10 16:01                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 13:41                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-10 17:51                 ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4F43CFD0.3010703@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.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 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.