Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352421pxb; Mon, 20 Sep 2021 19:49:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUQ0tO+YDV47y1fpC5zars+SludaGZHsLoGScwLEpaZGHksF/aajANxUP86hShGDkkz5QM X-Received: by 2002:a17:906:7217:: with SMTP id m23mr31830510ejk.466.1632192574119; Mon, 20 Sep 2021 19:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192574; cv=none; d=google.com; s=arc-20160816; b=PHSP+uyWWeVAMtqW5azXHZmh9q0SkI3gny/9Ixr/LMh4dcfCXy7LwQdE5ZVsmikiSu lRxUbnEmApZfJ15MoWvMlrThihxuck1fFR99CQgWsU65wLEtho7KQl8uluNN886RsE/c 2+H4CE7fkOo4HQEG4Gak/WhuYSg6ojtqhKTHLmK4EaIV9OQjVGrOEaDqLojH36snaImZ 51inFT4mXvDJTpRRFTyA4nOQk0hHCEzmRfoSVTXXBFg9llTFuGLXikURNPHGId0/sw1Z AC0erRzQ9SB5jTQsYOLXTGXQS/P4/ncHvZEMjS3BPMARxIaOh9yGJDPmNOIiOGwp7NDt jxbg== 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=PXbG1LAFc5CmmNBEVcQC+AL4Vb8h4tFE9RJw1oLi8j8=; b=EQTERq5UNPAxBWl5zSRMZdgc2EBeYXf4f6xtiHC2Ojn7jiMw6GH6LHeJsmaWbkXIIR vaooTa2aSNgywfc4cMBKHA6rRkHaEZHc6m8DgBVluA046bnvJ/M3I0A932p3nRX/RpgL 0lhfkyUpDimpomsUIIdCCVtnzrR5Pihx+BTN7a3xgORGNtCh2qTDYx2xjDOM7TIVtGUQ xx+78aN9+ex73lx6XjXrLzaMe1+uiJw6umJpF5+gt66nPegH0E0Idm8Ue7kYhYn8K018 m1YrBPkHNPcK+g042t4Gj0ts3jjulrARGZJ1vnTe4yHsWXrPN84xpUtGRZZ5c5khYhf5 Cj8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rp5OI6k6; 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 w8si22768492ede.307.2021.09.20.19.49.10; Mon, 20 Sep 2021 19:49:34 -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=Rp5OI6k6; 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 S1353201AbhITSiA (ORCPT + 99 others); Mon, 20 Sep 2021 14:38:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:49302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380110AbhITSce (ORCPT ); Mon, 20 Sep 2021 14:32:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE2F461458; Mon, 20 Sep 2021 17:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158880; bh=3yos3JvVPLcMvFsxovYx1mLu68HlfZthsxXRfdeKGhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rp5OI6k6sY4RRKRT4kVsyS4hGo4hFDPnF+NYRzpONEa5raYHyRsQCkjPbq8BWWtZr PWvh+mV8qR14koohncDasbfSPeCFd+GvHQvDvpXxIkrcI2yT2+BuLy3HqwfrM6oquH J+nAOjiE/Ka/La1/kPBrBPiGZG5ZDbSBXln3QDbs= 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.10 065/122] PCI: cadence: Use bitfield for *quirk_retrain_flag* instead of bool Date: Mon, 20 Sep 2021 18:43:57 +0200 Message-Id: <20210920163917.907574413@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@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 d34ca0fda0f6..973b309ac9ba 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -63,7 +63,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 6705a5fedfbb..60981877f65b 100644 --- a/drivers/pci/controller/cadence/pcie-cadence.h +++ b/drivers/pci/controller/cadence/pcie-cadence.h @@ -299,7 +299,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