ipq5018: Fix compilation issue for unused-const-variable

1. Modified to the declare block_drvr struct and const variable
   only on HAVE_BLOCK_DEVICE config enabled.
2. Removed unused const training_block_64

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Icfe05aec82a124429443aadf735767366b168d6b
This commit is contained in:
Karthick Shanmugham 2020-10-07 12:56:47 +05:30 committed by Gerrit - the friendly Code Review server
parent c8fbe594d9
commit 48a7534422
2 changed files with 3 additions and 9 deletions

View file

@ -20,6 +20,9 @@
#define PRINTF(fmt,args...)
#endif
DECLARE_GLOBAL_DATA_PTR;
#ifdef HAVE_BLOCK_DEVICE
struct block_drvr {
char *name;
block_dev_desc_t* (*get_dev)(int dev);
@ -55,9 +58,6 @@ static const struct block_drvr block_drvr[] = {
{ },
};
DECLARE_GLOBAL_DATA_PTR;
#ifdef HAVE_BLOCK_DEVICE
static block_dev_desc_t *get_dev_hwpart(const char *ifname, int dev, int hwpart)
{
const struct block_drvr *drvr = block_drvr;

View file

@ -122,12 +122,6 @@ struct qpic_serial_nand_params *serial_params;
* An array holding the fixed pattern to compare with
* training pattern.
*/
static const unsigned int training_block_64[] = {
0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F,
0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F,
0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F,
0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F,
};
static const unsigned int training_block_128[] = {
0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F, 0x0F0F0F0F,