Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp478198rdb; Mon, 22 Jan 2024 09:54:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2RLX10P3mgckQ9J3z40TuZxjEt5aILps1/FNzJR7Iodjdzp5bpzIAIuXsn9xPlIrNrj5l X-Received: by 2002:a17:903:445:b0:1d7:338c:a39b with SMTP id iw5-20020a170903044500b001d7338ca39bmr3697603plb.107.1705946096863; Mon, 22 Jan 2024 09:54:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705946096; cv=pass; d=google.com; s=arc-20160816; b=UcXfGUZZ3Jvptwy+O5D930C36mcUfHx1EQhEZzTaakEJAla/+3fEH/97EUawllmfJI Pf5Bh4cfloV+O6y0zfN//ICHVoMCc06IO5sfI+iXK2mQ7x046ukybtf2UtBA/WxbwEYg 9QZg0HA2fk3rZT4hvXBFJ986RkBt6Tqbd+SZmuXC/5Cy9OOae5p8AtwPX2eyoXthR+Rh YFM2FtwHZtoeUhncmj1ulhGKcWRi6gK57fULzfYqullRtxtROakAdYb3Kk9hPA8k6dX5 lZ8mjvruvLpTMnDUiP56y+N8uw7oRpFxOdUr1c8NFLODnqAmfo3dQ8XsMArowJWZy7ex CiBQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qBqyYX/tvGcUylWmdeIdrBhLbuJereaLnx5mdY8/x7k=; fh=V0Y7D+NYwbRjftFBOle/PXeXFlkU7/6JZc4flFKmh+4=; b=OH2LinwuaEAyPgVmeDVyHDI6+0TFar4jqLzxmtHX4i0/YUcjhtonnnImd9J2qPXn1x P13i0NYewQ90X+9KF6WzQ/vx1BQ67Vj9a18v/s9mZQJc6UlRtdX6Jrl2mjYQQeeK0W5s 92rdy47YqIaeVMZ8LAhoxFNIVnNsH/nTTOhs96DNHNZ5GAPoMlgBjBcF2YGliIHoN9pt vhVV9Kw5AeXaBnueA9KA2ZKlMy+0w4XaUP8t1fRE/Wqe129CJjjFcV2wV0d4XUKIUT5p KTMVfZchodZgH7qmgBorn/ruK9jQVmyyPwyP7qiSvgrScl8+zIZ81Hilz1qo07IL8VlG IIiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RWv1opR2; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k6-20020a170902ba8600b001d3f1b76e46si8049357pls.641.2024.01.22.09.54.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RWv1opR2; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-33758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7237F28773F for ; Mon, 22 Jan 2024 17:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C43134C3B6; Mon, 22 Jan 2024 17:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RWv1opR2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E98593EA75; Mon, 22 Jan 2024 17:13:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943621; cv=none; b=LLODi67vTvky8oMqo6pawNi3dpjKzK2soglrk0h0OxzYigFMAbV8ge3H8SlfzVqKTrtprJO9rTB7P7b5ubadrZFcOhKqH9sQPE9fWwbUazfrf45+FeDNvzuPF8fTVQZs53xZskFEcqB8RVVZlBu6Wrnx2yps0gnx4ZHNeZCwgJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943621; c=relaxed/simple; bh=bTxjd+qZSv1qFxwXubj1oMBpkIEEgxymwDM9Dh+JF6U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j1NX+wNgCeDCBVT5cPs2B1qF0+1SCi53A6mIXCdYClWoS/HOgh+iPM+cmGSvRxAkw5AVTwK1oGjwmMllBbmt3G6WlpW6JwB9JKfqKlg62qKyhwimdS3zzVtE1RX346VSxgbnzWnnEMWLsrUFvH+IKsRz+GgHIDHHeCFHpk9uxNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RWv1opR2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 649E0C433C7; Mon, 22 Jan 2024 17:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705943620; bh=bTxjd+qZSv1qFxwXubj1oMBpkIEEgxymwDM9Dh+JF6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RWv1opR2q95xCpR0+3/hSNvNDyw56ylkajM5zYiRbcsJ+lWi18mTHAzOW2WRdlm2w rC8tazrjEsZd+l/QI04MEFtVlQ/4c4D4iQey7g6MLZryV6J35Lr7JYRgyIUSHLfKoD 10H5hp7Ycm/nKHiibOTCpi+KvW7v7VBhMHoZmwyo= Date: Mon, 22 Jan 2024 09:13:39 -0800 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Ulf Hansson , Stanislaw Gruszka Subject: Re: [PATCH v1] PM: sleep: Use bool for all 1-bit fields in struct dev_pm_info Message-ID: <2024012230-attitude-diligence-cb4e@gregkh> References: <12380944.O9o76ZdvQC@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12380944.O9o76ZdvQC@kreacher> On Mon, Jan 22, 2024 at 05:11:26PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > For some 1-bit fields in struct dev_pm_info the data type is bool, while > for some other 1-bit fields in there it is unsigned int, and these > differences are somewhat arbitrary. > > For consistency, change the data type of the latter to bool, so that all > of the 1-bit fields in struct dev_pm_info fields are bool. > > This also reduces the size of struct device on my x86 systems by 8 B, > from 1120 B to 1112 B. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > include/linux/pm.h | 32 ++++++++++++++++---------------- > 1 file changed, 16 insertions(+), 16 deletions(-) Reviewed-by: Greg Kroah-Hartman