lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190130113428.37570a55@xps13>
Date:   Wed, 30 Jan 2019 11:34:28 +0100
From:   Miquel Raynal <miquel.raynal@...tlin.com>
To:     YueHaibing <yuehaibing@...wei.com>
Cc:     <bbrezillon@...nel.org>, <richard@....at>, <dwmw2@...radead.org>,
        <computersforpeace@...il.com>, <marek.vasut@...il.com>,
        <mcoquelin.stm32@...il.com>, <alexandre.torgue@...com>,
        <christophe.kerello@...com>, <linux-kernel@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-stm32@...md-mailman.stormreply.com>,
        <linux-mtd@...ts.infradead.org>
Subject: Re: [PATCH -next] mtd: rawnand: stm32_fmc2: Make some functions
 static

Hi Yue,

YueHaibing <yuehaibing@...wei.com> wrote on Wed, 30 Jan 2019 18:09:08
+0800:

> Fixes the following sparse warning:
> drivers/mtd/nand/raw/stm32_fmc2_nand.c:1228:6: warning: symbol 'stm32_fmc2_read_data' was not declared. Should it be static?
> drivers/mtd/nand/raw/stm32_fmc2_nand.c:1275:6: warning: symbol 'stm32_fmc2_write_data' was not declared. Should it be static?
> drivers/mtd/nand/raw/stm32_fmc2_nand.c:1707:32: warning: symbol 'stm32_fmc2_nand_ooblayout_ops' was not declared. Should it be static?
> 
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
>  drivers/mtd/nand/raw/stm32_fmc2_nand.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
> index e057282..999ca6a 100644
> --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c
> +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
> @@ -1225,8 +1225,8 @@ static irqreturn_t stm32_fmc2_irq(int irq, void *dev_id)
>  	return IRQ_HANDLED;
>  }
>  
> -void stm32_fmc2_read_data(struct nand_chip *chip, void *buf,
> -			  unsigned int len, bool force_8bit)
> +static void stm32_fmc2_read_data(struct nand_chip *chip, void *buf,
> +				 unsigned int len, bool force_8bit)
>  {
>  	struct stm32_fmc2_nfc *fmc2 = to_stm32_nfc(chip->controller);
>  	void __iomem *io_addr_r = fmc2->data_base[fmc2->cs_sel];
> @@ -1272,8 +1272,8 @@ void stm32_fmc2_read_data(struct nand_chip *chip, void *buf,
>  		stm32_fmc2_set_buswidth_16(fmc2, true);
>  }
>  
> -void stm32_fmc2_write_data(struct nand_chip *chip, const void *buf,
> -			   unsigned int len, bool force_8bit)
> +static void stm32_fmc2_write_data(struct nand_chip *chip, const void *buf,
> +				  unsigned int len, bool force_8bit)
>  {
>  	struct stm32_fmc2_nfc *fmc2 = to_stm32_nfc(chip->controller);
>  	void __iomem *io_addr_w = fmc2->data_base[fmc2->cs_sel];
> @@ -1704,7 +1704,7 @@ static int stm32_fmc2_nand_ooblayout_free(struct mtd_info *mtd, int section,
>  	return 0;
>  }
>  
> -const struct mtd_ooblayout_ops stm32_fmc2_nand_ooblayout_ops = {
> +static const struct mtd_ooblayout_ops stm32_fmc2_nand_ooblayout_ops = {
>  	.ecc = stm32_fmc2_nand_ooblayout_ecc,
>  	.free = stm32_fmc2_nand_ooblayout_free,
>  };

This is nand/next material, so if you don't mind I would like to squash
this fix into the original commit inserting the driver.


Thanks,
Miquèl

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ