Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1401748ybh; Thu, 23 Jul 2020 08:03:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztVpC4CZELqVbTcAq2dvG0C7tB8pEAk4aK3UOtN5AACG2eJf0/UhR6wUQCSnvj3RaM6ihl X-Received: by 2002:a17:907:1051:: with SMTP id oy17mr4978156ejb.394.1595516613342; Thu, 23 Jul 2020 08:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595516613; cv=none; d=google.com; s=arc-20160816; b=l9KmE+lTfoolp1gFGcLuO3P9VTJGiciiktiml0G7bcUqNrwKngWPDDwbJ9gRXeknQZ 2Eh99QkGhPM9N6xdYFyGQ3yyu0X4mDqqHIjGg2k21CJ70OglwfgM2cwk/YHV/kIcwqHQ 37SfCBYdbJphCk7cr+r2KEZuW8aEGAlngW8oYqgXSjV0/CN6ln7H8P3uLGcIIPoCTyOA DLNMHXfNmWkTV3kVjlk183iJ5CN5Ycwsc7fiq1PP2TJKZd64Wy0ysElsf+VFhNusNePI VmSlEQoxfsUaclwDnZNq0c43TovmkpjNadEYVyf3u9hpxDkDb9KXrrYHSXExNgDj+KLj JgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=mji0Ua19C2SJA8fiNTX8SBRsPkow/sKP47UqxMXG1Kk=; b=Yai9ByQyovYZtaz4/1QVZwhUct6T0YZOKYE/YyJEbKlMSWtm+rE2A/E4TWUWPhlvED WZa6covQiNxW5mK9THoGkO/S2ZHn2un9Uf+mQKVcS3CQ3iuxnKwEIzFRf+mb/VS7dWTM 5GuR8xEIK1wNExlmZlqoMCrBKrjUBPa5Iny5BHewj2PhG8W6dG+QFr7zTYwSG12A+cag nAnOVcnp2XDrQaQKg3adhOkiewGoyA7dlJU19e13av7DgC1RddPYJwrVyrt3m29cRKXC xXeCjyIyvUmzSzBQmHhlD3sySh0Am6ckfXw+HDXbtL8mIX6cQO/us1IVoa5owgpiR6qV ALug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci27si2283086ejc.199.2020.07.23.08.03.08; Thu, 23 Jul 2020 08:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729539AbgGWO7w (ORCPT + 99 others); Thu, 23 Jul 2020 10:59:52 -0400 Received: from mga09.intel.com ([134.134.136.24]:50088 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729471AbgGWO7w (ORCPT ); Thu, 23 Jul 2020 10:59:52 -0400 IronPort-SDR: IXIspDQ78GYtyRyMo/Jn8KcjqaH+mp0DN5qKPhDe5TvqJU9/4mBirkbxb3ukJ6wJ2+sewBy5J0 P1gb+37+t6aA== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="151839043" X-IronPort-AV: E=Sophos;i="5.75,386,1589266800"; d="scan'208";a="151839043" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 07:59:51 -0700 IronPort-SDR: 6TdPDkvZmhKHlZHbelu6djCJ8ps388ukEN8g9aaH+2/8Y0n39CKtxiNubDkabMiiykUhU/RSRQ dFnMXZylaGQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,386,1589266800"; d="scan'208";a="311051231" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by fmsmga004.fm.intel.com with ESMTP; 23 Jul 2020 07:59:49 -0700 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler , "Gustavo A . R . Silva" , Arnd Bergmann Subject: [char-misc-next 6/6] mei: hw: don't use one element arrays Date: Thu, 23 Jul 2020 17:59:27 +0300 Message-Id: <20200723145927.882743-7-tomas.winkler@intel.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200723145927.882743-1-tomas.winkler@intel.com> References: <20200723145927.882743-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the single element arrays with a simple value type u8 reserved, even thought is is not used for dynamically sized trailing elements it confuses the effort of replacing one-element arrays with flexible arrays for that purpose. Link: https://github.com/KSPP/linux/issues/79 Cc: Gustavo A. R. Silva Signed-off-by: Tomas Winkler --- drivers/misc/mei/hw.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index b1a8d5ec88b3..26fa92cb7f7a 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* - * Copyright (c) 2003-2018, Intel Corporation. All rights reserved + * Copyright (c) 2003-2020, Intel Corporation. All rights reserved * Intel Management Engine Interface (Intel MEI) Linux driver */ @@ -319,7 +319,7 @@ struct hbm_props_response { u8 hbm_cmd; u8 me_addr; u8 status; - u8 reserved[1]; + u8 reserved; struct mei_client_properties client_properties; } __packed; @@ -352,7 +352,7 @@ struct hbm_add_client_response { u8 hbm_cmd; u8 me_addr; u8 status; - u8 reserved[1]; + u8 reserved; } __packed; /** @@ -461,7 +461,7 @@ struct hbm_notification { u8 hbm_cmd; u8 me_addr; u8 host_addr; - u8 reserved[1]; + u8 reserved; } __packed; /** -- 2.25.4