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-next>] [day] [month] [year] [list]
Message-ID: <03e45afe-c4f8-e69b-9cba-6a8863296ad4@infradead.org>
Date:   Mon, 3 Sep 2018 12:32:04 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     LKML <linux-kernel@...r.kernel.org>
Cc:     Geert Uytterhoeven <geert@...ux-m68k.org>,
        Kyungmin Park <kyungmin.park@...sung.com>,
        linux-mtd@...ts.infradead.org,
        David Woodhouse <dwmw2@...radead.org>,
        Brian Norris <computersforpeace@...il.com>,
        Boris Brezillon <boris.brezillon@...tlin.com>,
        Marek Vasut <marek.vasut@...il.com>,
        Richard Weinberger <richard@....at>,
        Adrian Bunk <bunk@...nel.org>, Adrian Bunk <bunk@...ian.org>
Subject: [PATCH] mtd: onenand: fix parameter list build warning

From: Randy Dunlap <rdunlap@...radead.org>

Fix build warning in <linux/mtd/onenand.h> by adding a "stub" struct
for mtd_oob_ops:

include/linux/mtd/onenand.h: warning: 'struct mtd_oob_ops' declared inside parameter list [enabled by default]
include/linux/mtd/onenand.h: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Fixes: 607d1cb10426 ("[MTD] [OneNAND] proper onenand_bbt_read_oob() prototype")

Reported-by: Geert Uytterhoeven <geert@...ux-m68k.org>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Kyungmin Park <kyungmin.park@...sung.com>
Cc: linux-mtd@...ts.infradead.org
Cc: David Woodhouse <dwmw2@...radead.org>
Cc: Brian Norris <computersforpeace@...il.com>
Cc: Boris Brezillon <boris.brezillon@...tlin.com>
Cc: Marek Vasut <marek.vasut@...il.com>
Cc: Richard Weinberger <richard@....at>
Cc: Adrian Bunk <bunk@...nel.org>
Cc: Adrian Bunk <bunk@...ian.org>
---
 include/linux/mtd/onenand.h |    1 +
 1 file changed, 1 insertion(+)

--- lnx-419-rc2.orig/include/linux/mtd/onenand.h
+++ lnx-419-rc2/include/linux/mtd/onenand.h
@@ -221,6 +221,7 @@ struct onenand_manufacturers {
         char *name;
 };
 
+struct mtd_oob_ops;
 int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
 			 struct mtd_oob_ops *ops);
 unsigned onenand_block(struct onenand_chip *this, loff_t addr);


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ