summaryrefslogtreecommitdiffstats
path: root/block/sed-opal.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2019-10-02 19:23:05 -0700
committerJens Axboe <axboe@kernel.dk>2019-10-03 14:21:30 -0600
commitdc301025658aef326763765b0bebeaa44569ed20 (patch)
tree4b1af5fffb3cc0bd66abb1f7da047129beb6b62e /block/sed-opal.c
parent3a4b46c3bc73240b31cd324b3551fc4231d9f1d5 (diff)
downloadlinux-stable-dc301025658aef326763765b0bebeaa44569ed20.tar.gz
linux-stable-dc301025658aef326763765b0bebeaa44569ed20.tar.bz2
linux-stable-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/sed-opal.c')
-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 },