summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2019-10-03 04:23:05 +0200
committerJens Axboe <axboe@kernel.dk>2019-10-03 22:21:30 +0200
commitdc301025658aef326763765b0bebeaa44569ed20 (patch)
tree4b1af5fffb3cc0bd66abb1f7da047129beb6b62e /block
parentblock: pg: add header include guard (diff)
downloadlinux-dc301025658aef326763765b0bebeaa44569ed20.tar.xz
linux-dc301025658aef326763765b0bebeaa44569ed20.zip
block: sed-opal: fix sparse warning: obsolete array init.
Fix sparse warning: (missing '=') ../block/sed-opal.c:133:17: warning: obsolete array initializer, use C99 syntax Fixes: ff91064ea37c ("block: sed-opal: check size of shadow mbr") Cc: linux-block@vger.kernel.org Cc: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de> Cc: David Kozub <zub@linux.fjfi.cvut.cz> Reviewed-by: Scott Bauer <sbauer@plzdonthack.me> Reviewed-by: Revanth Rajashekar <revanth.rajashekar@intel.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/sed-opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/sed-opal.c b/block/sed-opal.c
index 4e95a9792162..59a6ba2131d5 100644
--- a/block/sed-opal.c
+++ b/block/sed-opal.c
@@ -129,7 +129,7 @@ static const u8 opaluid[][OPAL_UID_LENGTH] = {
{ 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x84, 0x01 },
/* tables */
- [OPAL_TABLE_TABLE]
+ [OPAL_TABLE_TABLE] =
{ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01 },
[OPAL_LOCKINGRANGE_GLOBAL] =
{ 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x00, 0x01 },