u-boot/disk
Stephen Warren 2f50164627 disk: make get_partition_info() always available to disk.c
Now that get_device_and_partition() always calls get_partition_info()
when disk.c is compiled, we must always compile the function, rather
than ifdef it away.

The implementation must be conditional based on CONFIG_CMD_* etc., since
that's what e.g. part_dos.c uses to ifdef out get_partition_info_dos();
CONFIG_DOS_PARTITION can be enabled even without those commands being
enabled.

Technically, this change is required before Rob's "disk/part: introduce
get_device_and_partition" patch. However, at least when the compiler
optimizer is turned on, it isn't required before then in practice,
since get_device_and_partition() calls get_dev(), which is stubbed out
in disk.c under exactly the same conditions that get_partition_info()
is not compiled, and hence the compiler never generates code for the
call to the missing function. However, in my later patch "disk:
get_device_and_partition() "auto" partition and cleanup", the optimizer
doesn't succeed at this, and may attempt to reference the undefined
function.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
2012-09-25 14:43:19 -07:00
..
Makefile disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
part_amiga.c Block: Remove MG DISK support 2012-06-21 20:53:09 +02:00
part_amiga.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part_dos.c Block: Remove MG DISK support 2012-06-21 20:53:09 +02:00
part_dos.h part_dos: fix crash with big sector size 2011-07-27 23:41:33 +02:00
part_efi.c Block: Remove MG DISK support 2012-06-21 20:53:09 +02:00
part_efi.h part: show efi partition name when print out partition info 2011-10-06 20:42:47 +02:00
part_iso.c Block: Remove MG DISK support 2012-06-21 20:53:09 +02:00
part_iso.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
part_mac.c part_mac: dcache: allocate cacheline-aligned buffers 2012-09-02 17:08:31 +02:00
part_mac.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part.c disk: make get_partition_info() always available to disk.c 2012-09-25 14:43:19 -07:00