From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0667C4360C for ; Thu, 3 Oct 2019 02:23:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0B44222BE for ; Thu, 3 Oct 2019 02:23:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KNa9Ylbt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbfJCCXU (ORCPT ); Wed, 2 Oct 2019 22:23:20 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34116 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfJCCXT (ORCPT ); Wed, 2 Oct 2019 22:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uukNNW7qQ6N5xxrju+6gv/tEnkqzO22XeDWjNJoQQyk=; b=KNa9Ylbt3z+0evDhHHqfRkcPk Dr4iulViWFd8oQEUgM4iQH04/RYHGag++8UgL+bSUseuSfX4attrv1ZIIZelb2vkFghAUS7MrDwPB aF06K0aGZeurhUe2h5HvQXjc4MdsHbdQ7Gj/QvMQaX1qJlYK3IhZbmhyRky57w7lg2K8RPxEETpyx 1cqE5wCboCu1xz7oivx+2eqfyq1PcyKSOxLax/Hwz1b70vPNnauyoPw4Xu07DZ8bko0L2gLO9Y+Bv 43Imof9Wwdey9osWGd6Zx0jNQF94MJDb4G4k7Kgc5FCLQ66oaQFo2BWAv+xJG7VinINPIM+LhoayE Mm5oc6TnQ==; Received: from [2601:1c0:6280:3f0::9a1f] by bombadil.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFqlm-0007pt-49; Thu, 03 Oct 2019 02:23:06 +0000 To: "linux-block@vger.kernel.org" , LKML Cc: axboe , Jonas Rabenstein , David Kozub From: Randy Dunlap Subject: [PATCH 1/2] block: sed-opal: fix sparse warning: obsolete array init. Message-ID: <807d7b7f-623b-75f0-baab-13b1b0c02e9d@infradead.org> Date: Wed, 2 Oct 2019 19:23:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap 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") Signed-off-by: Randy Dunlap Cc: Jens Axboe Cc: linux-block@vger.kernel.org Cc: Jonas Rabenstein Cc: David Kozub --- block/sed-opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-54-rc1.orig/block/sed-opal.c +++ lnx-54-rc1/block/sed-opal.c @@ -129,7 +129,7 @@ static const u8 opaluid[][OPAL_UID_LENGT { 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 },