ARM: Fix rd_size declaration
Subsystems (3)
PATCH 1/1 ARM: Fix rd_size declaration
The global variable 'rd_size' is declared as 'int' in source file arch/arm/kernel/atags_parse.c and as 'unsigned long' in drivers/block/brd.c. Fix this inconsistency. Additionally, remove the declarations of rd_image_start, rd_prompt and rd_doload from parse_tag_ramdisk() since these duplicate existing declarations in <linux/initrd.h>.
--- arch/arm/kernel/atags_parse.c | 3 +-- drivers/block/brd.c | 1 + include/linux/initrd.h | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-)
arch/arm/kernel/atags_parse.c +1 -2
@@ -18,6 +18,7 @@*/ #include <linux/init.h> +#include <linux/initrd.h> #include <linux/kernel.h> #include <linux/fs.h> #include <linux/root_dev.h>
@@ -91,8 +92,6 @@ __tagtable(ATAG_VIDEOTEXT, parse_tag_videotext);#ifdef CONFIG_BLK_DEV_RAM static int __init parse_tag_ramdisk (const struct tag *tag) { -extern int rd_size, rd_image_start, rd_prompt, rd_doload; - rd_image_start = tag->u.ramdisk.start; rd_doload = (tag->u.ramdisk.flags &1 ) ==0 ; rd_prompt = (tag->u.ramdisk.flags &2 ) ==0 ;
drivers/block/brd.c +1 -0
@@ -9,6 +9,7 @@*/ #include <linux/init.h> +#include <linux/initrd.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/major.h>
include/linux/initrd.h +3 -0
@@ -10,6 +10,9 @@ extern int rd_prompt;/* starting block # of image */ extern int rd_image_start; +/* size of a single RAM disk */ +extern unsigned long rd_size; +/* 1 if it is not an error if initrd_start < memory_start */ extern int initrd_below_start_ok;
Signature · 1 line
2.12.2
Quoted 6 lines · Bart Van Assche
The global variable '
rd_size' is declared as 'int' in source filearch/arm/kernel/atags_parse.cand as 'unsigned long' indrivers/block/brd.c. Fix this inconsistency. Additionally, remove the declarations ofrd_image_start,rd_promptandrd_doloadfromparse_tag_ramdisk()since these duplicate existing declarations in <linux/initrd.h>.
This is version 2 of the patch for removing the rd_size declaration. Compared to v1, the new header file <linux/brd.h> has been dropped.
Bart.
Quoted 6 lines · Bart Van Assche
The global variable '
rd_size' is declared as 'int' in source filearch/arm/kernel/atags_parse.cand as 'unsigned long' indrivers/block/brd.c. Fix this inconsistency. Additionally, remove the declarations ofrd_image_start,rd_promptandrd_doloadfromparse_tag_ramdisk()since these duplicate existing declarations in <linux/initrd.h>.
(replying to my own e-mail)
Hello Russell,
Did I send this patch to the right maintainer? If so, do you want to share any feedback about this patch?
Thanks,
Bart.
Quoted 8 lines · Bart Van Assche
Quoted 6 lines · Bart Van Assche
The global variable '
rd_size' is declared as 'int' in source filearch/arm/kernel/atags_parse.cand as 'unsigned long' indrivers/block/brd.c. Fix this inconsistency. Additionally, remove the declarations ofrd_image_start,rd_promptandrd_doloadfromparse_tag_ramdisk()since these duplicate existing declarations in <linux/initrd.h>.
Quoted 6 lines
(replying to my own e-mail)
Hello Russell,
Did I send this patch to the right maintainer? If so, do you want to share any feedback about this patch?
I think it's fine from an ARM point of view. It seems most of this patch is to do with initrds, so I guess if no one else is interested in it, akpm may pick it up.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.