Received: by 10.213.65.68 with SMTP id h4csp18225imn; Mon, 19 Mar 2018 18:04:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELvORi71je/41LxaXvZZA4ojo8pq4eRcspSn/K7UbzzmE8IM0WqZYoD7wLMbkQLzKEvAceDJ X-Received: by 2002:a17:902:a589:: with SMTP id az9-v6mr14324427plb.283.1521507868373; Mon, 19 Mar 2018 18:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521507868; cv=none; d=google.com; s=arc-20160816; b=pb1w8USYk35fhfRPYCY9YlCmGi6asMqLeOoOfF0iThQz092OQcZlfty8/CemB0Ekpj oeJtazeSaS4T6qrkFW+lSe/pqUfwRqqSsk/bK06Ja4WIRcBU+qZQY4FyiJBn6EUpveBO bCR5Y49WyF1yrzHwDykA1B+XmSH9uIa8YC5PRTbWLZnhb5us5bNjebY0ykFFOaWhZ2VP lyi5RbyV1csDaoRv4OS3d+YpcvQ5pLvjj9kCWbGY4KVNYL4Zer1WzewWTFMt29vdx4HH Yzsz7uwEIRrDDX7PL887r36U/yrxJtB+G/KEcjsdY/EG0dJ5lFxPQvk8JeQ8E+jWjyZ8 6SFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WZbCvOvrmpzyzX8gfhR3poESmSe2eL384YtwOfZou+w=; b=Hi3Gl/FQW9X7JdwaA/mFto0ujTmDkuLiUorI76Pc/Do4xna0LzlF26uPD0wszhMegI W7ocHP5njzdQbQO8B2o4yxdm/IJMhIXZ/QTaec80+0rW2bPBDhkPJjjc/Kwf2r/5CXf/ E4+UhE4TnONc6lbQj0mB/+ewIJrQj0FpO2bjhP9IntW+ZMW5ICC4ReouQjYwIftVpaoX Hvcxzb/MH3j0l44/LwbnIqGnc92gxc6dFlxFH5ovd2dDx0/zKGrJ/68x5LYchnOZmDP1 pYzy1nppxGcZO7iYkfVzPb9MBb1q4eMWBKMNqF8Eome0QC+cADNn0ZN/2RzgoxU/Q4BU wPcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7-v6si434257plr.399.2018.03.19.18.04.14; Mon, 19 Mar 2018 18:04:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970462AbeCSShn (ORCPT + 99 others); Mon, 19 Mar 2018 14:37:43 -0400 Received: from mx-rz-2.rrze.uni-erlangen.de ([131.188.11.21]:33478 "EHLO mx-rz-2.rrze.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970421AbeCSShf (ORCPT ); Mon, 19 Mar 2018 14:37:35 -0400 Received: from mx-rz-2.rrze.uni-erlangen.de (mx-rz-2.rrze.uni-erlangen.de [IPv6:2001:638:a000:1025::15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx-rz-2.rrze.uni-erlangen.de (Postfix) with ESMTPS id 404lDF4KDdzPjpJ; Mon, 19 Mar 2018 19:37:33 +0100 (CET) Authentication-Results: mx-rz-2.rrze.uni-erlangen.de; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Quarantine-ID: <4EzassA7Buht> X-Virus-Scanned: amavisd-new at boeck2.rrze.uni-erlangen.de (RRZE) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 2003:d5:3db:1800:60b5:55d8:d757:229 Received: from fau.de (p200300D503DB180060B555D8D7570229.dip0.t-ipconnect.de [IPv6:2003:d5:3db:1800:60b5:55d8:d757:229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: U2FsdGVkX1/DirBU1RGunKIpxRJ6xwfOakPSwU3kEc4=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 404lDB1kv8zPk6B; Mon, 19 Mar 2018 19:37:30 +0100 (CET) From: Jonas Rabenstein To: Jonas Rabenstein , Scott Bauer , Jonathan Derrick , Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: [PATCH v2 01/11] block: sed-opal: use correct macro for method length Date: Mon, 19 Mar 2018 19:36:43 +0100 Message-Id: <0c681a486d73d71dde21b573dbe802d1267a8514.1521482295.git.jonas.rabenstein@studium.uni-erlangen.de> X-Mailer: git-send-email 2.16.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Also the values of OPAL_UID_LENGTH and OPAL_METHOD_LENGTH are the same, it is weird to use OPAL_UID_LENGTH for the definition of the methods. Signed-off-by: Jonas Rabenstein diff --git a/block/sed-opal.c b/block/sed-opal.c index 945f4b8610e0..5aa41744b8f1 100644 --- a/block/sed-opal.c +++ b/block/sed-opal.c @@ -181,7 +181,7 @@ static const u8 opaluid[][OPAL_UID_LENGTH] = { * Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00 * Section: 6.3 Assigned UIDs */ -static const u8 opalmethod[][OPAL_UID_LENGTH] = { +static const u8 opalmethod[][OPAL_METHOD_LENGTH] = { [OPAL_PROPERTIES] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x01 }, [OPAL_STARTSESSION] = -- 2.16.1