Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1398968ybh; Thu, 23 Jul 2020 08:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg4KHJTKicPv8YlCliggZMZp3GRpC/hnKNOnDq86D4ctUJpMBPKLTuvzkYxRt7uSd2exno X-Received: by 2002:a17:906:1b45:: with SMTP id p5mr4684029ejg.51.1595516424077; Thu, 23 Jul 2020 08:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595516424; cv=none; d=google.com; s=arc-20160816; b=XZ/jFkxNZLW9XSQYICbPEiUWsvfIaaR5mPx6f/T159CnuK6q3SjHT2vEKJvlbkwZv0 fkhtRwrH1KYdIJwaC5LfOIDBI0tOezeiwtYVoN6ZymFoPIJxPbyOo08JLhfAD9LmTW8t zXy1p/NrzV3tT/wu21wy12sX8MrBYG2LNWof6O9hr1dmgRzcqSym0ZlcsY9US2CPw5OT THSzj8ilqw3O+tw0VcB7O6ozQ0q1WGl2oNLMn0BqHpiT/iKDeMjmSG3EkKHIqeZjsZ/Q 8BBNpABw83SuWVD5iLbD6y/sGO2uYAGmVlkB/PrSqq5iO2uqmCEzstkHYI695qFL+TEi +8Ng== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=8ZN3NDS030WIL2JY52ZJ7IVtTFCu2F1eqZDs/nUiSkw=; b=SDYtrw52jqDHpgDPlxn/Mfb9c7Nd5LWmP4ylhL0taD9FmcF4R4we9/NCewdI+cmM0W VDCrm08k3IvZwn1puLSyOcltqtTKv6gegEuixBdSqWjtMi/k4FlwJWyvuxZk0oEuSXaF uyifNlVPlUZP6Y/ow5K2MYugIXC4grlD6oqkyz1phmD8rHozu+r9IyojCIOLhsfRcrqf XpzhMbTLh3+juWRmTvRES41NWDMfZWryG/ka2puyjOrHjjgaG5CBhJD7fYqQHecUD3Sk CImA7xsxa1UAsp9mm8pokvjg3BJSU+kn1b0uoJ62qgc2paZIBDx8qBKQX4f4ORGpXasE qHBA== 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 g10si2333687ejf.312.2020.07.23.08.00.00; Thu, 23 Jul 2020 08:00:24 -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 S1729442AbgGWO7k (ORCPT + 99 others); Thu, 23 Jul 2020 10:59:40 -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 S1727885AbgGWO7k (ORCPT ); Thu, 23 Jul 2020 10:59:40 -0400 IronPort-SDR: abCBptrdrDtTsRnIs24CJ3lKVm3X+ic8DD2h54rSiHROFcGb/EgqLWoIEIwKULWpXKtIdWjBOa bO53K664uCDQ== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="151839015" X-IronPort-AV: E=Sophos;i="5.75,386,1589266800"; d="scan'208";a="151839015" 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:39 -0700 IronPort-SDR: wviLJLFeuWBjR4/AL7eD0LAEhVXPn7sPSrBrTK1Wmf5MZVUibvYJEMjTG2yRaYXuJI4+E9EKWL atOeCtVubTwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,386,1589266800"; d="scan'208";a="311051157" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by fmsmga004.fm.intel.com with ESMTP; 23 Jul 2020 07:59:37 -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 0/6] mei: remove one-element arrays Date: Thu, 23 Jul 2020 17:59:21 +0300 Message-Id: <20200723145927.882743-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.25.4 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 1. Remove one-element arrays from hw.h 2. Adjust to preferred method of getting size of structure from memory allocation and movement. sizeof(*var) instead of sizeof(struct some_struct) Tomas Winkler (6): mei: hbm: use sizeof of variable instead of struct type mei: ioctl: use sizeof of variable instead of struct type mei: bus: use sizeof of variable instead of struct type mei: client: use sizeof of variable instead of struct type mei: hw: use sizeof of variable instead of struct type mei: hw: don't use one element arrays drivers/misc/mei/bus-fixup.c | 23 ++++++----- drivers/misc/mei/bus.c | 2 +- drivers/misc/mei/client.c | 8 ++-- drivers/misc/mei/hbm.c | 74 ++++++++++++++++-------------------- drivers/misc/mei/hw-me.c | 5 +-- drivers/misc/mei/hw-txe.c | 5 +-- drivers/misc/mei/hw.h | 8 ++-- drivers/misc/mei/main.c | 6 +-- 8 files changed, 59 insertions(+), 72 deletions(-) -- 2.25.4