From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Sat, 3 Jun 2017 13:52:59 +0200 Subject: [U-Boot] [PATCH v3 2/5] partitions: increase MAX_SEARCH_PARTITIONS and move to part.h In-Reply-To: <1496456554-6816-3-git-send-email-alison@peloton-tech.com> References: <20170530084651.545d9954@ipc1.ka-ro> <1496456554-6816-1-git-send-email-alison@peloton-tech.com> <1496456554-6816-3-git-send-email-alison@peloton-tech.com> Message-ID: <20170603135259.6ba67e86@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Alison, > From: Alison Chaiken > > Move MAX_SEARCH_PARTITIONS to part.h so that functions in cmd > directory can find it. At the same time, increase the value to > 64 since some operating systems use many, and the resources > consumed by a larger value are minimal. > > Signed-off-by: Alison Chaiken > --- > disk/part.c | 1 - > include/part.h | 1 + > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/disk/part.c b/disk/part.c > index 491b02d..e640a55 100644 > --- a/disk/part.c > +++ b/disk/part.c > @@ -388,7 +388,6 @@ cleanup: > > #define PART_UNSPECIFIED -2 > #define PART_AUTO -1 > -#define MAX_SEARCH_PARTITIONS 16 > int blk_get_device_part_str(const char *ifname, const char > *dev_part_str, struct blk_desc **dev_desc, > disk_partition_t *info, int > allow_whole_dev) diff --git a/include/part.h b/include/part.h > index 16c4a46..c41aa6a 100644 > --- a/include/part.h > +++ b/include/part.h > @@ -49,6 +49,7 @@ struct block_drvr { > > #define PART_NAME_LEN 32 > #define PART_TYPE_LEN 32 > +#define MAX_SEARCH_PARTITIONS 64 > > typedef struct disk_partition { > lbaint_t start; /* # of first block in > partition */ Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de