Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354310pxb; Mon, 20 Sep 2021 19:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+aY1v7bYo4Cc4T14qYU1kfwCFeTvI+W6IRjHTKWEQJZbOFcRN1W2noP9GzWwy5y/tLJTf X-Received: by 2002:a05:6e02:1305:: with SMTP id g5mr19883172ilr.9.1632192816967; Mon, 20 Sep 2021 19:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192816; cv=none; d=google.com; s=arc-20160816; b=jakzmdykkb46WY7euW08xEX8Fiuktf6BrRZuoUM9Ez8Rxy/1F4a2WyD31jbDV4C1UB AJH8+Ii3MZRRMbebfIXYXOcWMDwGND3fsAqlI/sNdI8u2KsQvAhGvGnw1KGvVdUoMPbu 4EjQZnUhZjLIyazzxYbyMDT0B9g4KmOhHaB5GU7VGRfgnyEz+HoZniowXuQPbRMNztKe HN4swXR2dd7Bhe+AXs4tn184WWg4MOd44Isebn69YnUrOzw95K6VKQIlZQxhL1NLAppM bJcB32fMJDVchOMkv1ATk0GUmhNV0xnVHuOWNGZbu1cmVOA2gpzy4U3QIcQWPaj0bvuH LCiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p9T3nuuRH8MWfFzUE6v6ahri0NRe5fdx4T0neKrRaMI=; b=wRg03uMo1Ehni9KjmZ5BjB4ZFseDF9lcjdpjYzj3fEolwAczCW9d+6edgxI4BOzSv8 MRchF72xkmGryeQME7ZAXZ1txnCTmVJUixAk+YCvNXf9vFaNqKUFkJFfaPUOkEk2dMX2 LV2jozF1kJVvf48wK16QE4W2+DeKv3/XD0DIXPEKbluar6UOf4E8YXsCHDFaQfy56+ww Bk2VJaGf03HPdob7QB0xecNXvk7qvlCgIzS67l9zBb5nk+o1FJdf/uXu7xuP2MihCKVL A2OL02snUNKrhGpVvkD2WbMN3wXbZFpD+K1tT/Y/nQacWOtKuCba5OTNtCPjRwzTV/Ol CF2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f+y+WTGg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si13291438jaf.41.2021.09.20.19.53.25; Mon, 20 Sep 2021 19:53:36 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f+y+WTGg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387455AbhITS6A (ORCPT + 99 others); Mon, 20 Sep 2021 14:58:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:59828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384477AbhITSsQ (ORCPT ); Mon, 20 Sep 2021 14:48:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E16763369; Mon, 20 Sep 2021 17:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159226; bh=alr/Fr+3BEJGzOrZJdEg4FUj83fn8nf0tz1XUxDuecY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f+y+WTGgwBVLnx2cu4a8A+lHOjBFwXxs5eesVHlXt2d1fcNNQ/GtzQdWy3CFxJBL2 B3vRGPkvWvsDvh+x3v0KBXZ79+BK+rKCQsj55LMVaY8Z7g8ghleCraV25y+XWx/xOS tshMHbNnLHwMt7WTawMIBjJyAClqMOGtiVOqajK4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Helgaas , Kishon Vijay Abraham I , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 5.14 103/168] PCI: cadence: Use bitfield for *quirk_retrain_flag* instead of bool Date: Mon, 20 Sep 2021 18:44:01 +0200 Message-Id: <20210920163925.023361338@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I [ Upstream commit f4455748b2126a9ba2bcc9cfb2fbcaa08de29bb2 ] No functional change. As we are intending to add additional 1-bit members in struct j721e_pcie_data/struct cdns_pcie_rc, use bitfields instead of bool since it takes less space. As discussed in [1], the preference is to use bitfileds instead of bool inside structures. [1] -> https://lore.kernel.org/linux-fsdevel/CA+55aFzKQ6Pj18TB8p4Yr0M4t+S+BsiHH=BJNmn=76-NcjTj-g@mail.gmail.com/ Suggested-by: Bjorn Helgaas Link: https://lore.kernel.org/r/20210811123336.31357-2-kishon@ti.com Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/controller/cadence/pci-j721e.c | 2 +- drivers/pci/controller/cadence/pcie-cadence.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index 35e61048e133..0c5813b230b4 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -66,7 +66,7 @@ enum j721e_pcie_mode { struct j721e_pcie_data { enum j721e_pcie_mode mode; - bool quirk_retrain_flag; + unsigned int quirk_retrain_flag:1; }; static inline u32 j721e_pcie_user_readl(struct j721e_pcie *pcie, u32 offset) diff --git a/drivers/pci/controller/cadence/pcie-cadence.h b/drivers/pci/controller/cadence/pcie-cadence.h index 30db2d68c17a..bc27d126f239 100644 --- a/drivers/pci/controller/cadence/pcie-cadence.h +++ b/drivers/pci/controller/cadence/pcie-cadence.h @@ -303,7 +303,7 @@ struct cdns_pcie_rc { u32 vendor_id; u32 device_id; bool avail_ib_bar[CDNS_PCIE_RP_MAX_IB]; - bool quirk_retrain_flag; + unsigned int quirk_retrain_flag:1; }; /** -- 2.30.2