Skip to contentSkip to conversation

stubdom: fix error assignment in grub:load_module

PATCH Applied Olaf Hering 3 participants 3 messages Oct 9, 2012 – Oct 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: fix error assignment in grub:load_module

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1349787855 -7200
# Node ID 384714804b9b2a9742cc45dffaa43b749b85513b # Parent 142e4577f5a9b95832b82f7b6d31fde1697cbe76
stubdom: fix error assignment in grub:load_module

[ 1333s] mini-os.c: In function 'load_module':
[ 1333s] mini-os.c:244: warning: statement with no effect

stubdom/grub/mini-os.c +1 -1
diff -r 142e4577f5a9 -r 384714804b9b stubdom/grub/mini-os.c
@@ -241,7 +241,7 @@ load_module (char *module, char *arg)
 
     if ((void*) (multiboot_next_module_header+1) - module_image > PAGE_SIZE) {
         /* Too many modules */
-        ERR_WONT_FIT;
+        errnum = ERR_WONT_FIT;
         return 0;
     }
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Olaf Hering, le Tue 09 Oct 2012 15:04:29 +0200, a écrit :

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1349787855 -7200
# Node ID 384714804b9b2a9742cc45dffaa43b749b85513b # Parent 142e4577f5a9b95832b82f7b6d31fde1697cbe76
stubdom: fix error assignment in grub:load_module

[ 1333s] mini-os.c: In function 'load_module':
[ 1333s] mini-os.c:244: warning: statement with no effect

Quoted 18 lines

diff -r 142e4577f5a9 -r 384714804b9b stubdom/grub/mini-os.c

stubdom/grub/mini-os.c +1 -1
@@ -241,7 +241,7 @@ load_module (char *module, char *arg)
 
     if ((void*) (multiboot_next_module_header+1) - module_image > PAGE_SIZE) {
         /* Too many modules */
-        ERR_WONT_FIT;
+        errnum = ERR_WONT_FIT;
         return 0;
     }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Signature · 4 lines
Samuel
/* Halley */

	(Halley's comment.)
Applied
#2 lore raw
Quoted 8 lines · Samuel Thibault
Quoted 7 lines · Olaf Hering, le Tue 09 Oct 2012 15:04:29 +0200, a écrit :

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1349787855 -7200
# Node ID 384714804b9b2a9742cc45dffaa43b749b85513b # Parent 142e4577f5a9b95832b82f7b6d31fde1697cbe76
stubdom: fix error assignment in grub:load_module

Quoted 6 lines
Quoted 4 lines

[ 1333s] mini-os.c: In function 'load_module':
[ 1333s] mini-os.c:244: warning: statement with no effect

APplied, thanks,

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel