mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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>. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Russell King <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Jan Kara <[email protected]> Cc: Jason Yan <[email protected]> Cc: Zhaohongjiang <[email protected]> Cc: Miao Xie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
24 lines
646 B
C
24 lines
646 B
C
|
|
#define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
|
|
|
|
/* 1 = load ramdisk, 0 = don't load */
|
|
extern int rd_doload;
|
|
|
|
/* 1 = prompt for ramdisk, 0 = don't prompt */
|
|
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;
|
|
|
|
/* free_initrd_mem always gets called with the next two as arguments.. */
|
|
extern unsigned long initrd_start, initrd_end;
|
|
extern void free_initrd_mem(unsigned long, unsigned long);
|
|
|
|
extern unsigned int real_root_dev;
|