Received: by 10.223.164.202 with SMTP id h10csp713083wrb; Fri, 17 Nov 2017 07:30:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMZQKMycD2fLDMnGuMLwkfg5WS8TA2gBBl+fjtIYuw7nMkGJU7Tmgio4JOIQY6bBe09YarRR X-Received: by 10.84.131.12 with SMTP id 12mr5545194pld.418.1510932617515; Fri, 17 Nov 2017 07:30:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510932617; cv=none; d=google.com; s=arc-20160816; b=Jqoi19ju2GV6OSv856xbSKSj2qma1rkc4rQo3gCjA3adIFjwphaCMstfsHgY5uFUya lG8VEf3+Fpiw8t+m/hgE5gYCl7ZpPSsdo7mKt3/EVjo/kSbsdmZGiyFeUIO+3qt9feG2 wOOAjL0BIFaYrEbqEnKodcKeWAC61BD40Qy/Dr5YrBrGU9HJeyxUxqsT/UVTjRPvAisr wMsnBU5DJTx44tEh7Csa4P8xuOUDLzDPONHdFPMnavHb2aW27X6rxovP6DEB2Fr6w2V1 RRQWbTPmCnEaK37rfMz+eNeUKkG2meMivzOjaDzUGD7n5PM821ywFkqOvJsduYrGf+jT UeJw== 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:subject:cc:to:from:date :arc-authentication-results; bh=6UpZa4Wf2fEKSHIuXmXiBrqKYTNvaGBxOO2OgSniNBI=; b=CHdRm6aXb6O0reSsERI6MdHsQer/bbgVHkz4OOSdU5enOtkuUSgZlNDf1pfOq+tDXz XG2NoLeyxg3ND/GwVWuUNKVe1HJayrtJyLx81RQC/jHA7B7Y49Dl3FwlVWOGpLEmRuSK 2oxqyRUDfBt/ZPsR6+TVfV2oDX5OF/jCiMQpk5QRDkiJH3ybxL4fU4VYvPH3wOPASuZH oIq+okaV5A0PadQOMW0m94tLdQZBbrswtpKJ7p3UkxZtIUawaJwoPxxEi46gL8V0YLwG jwZNDZi+XctiR0XI/pdiiDByofSVy7f8d82L2JXkL244Oq6ZHMFveyg7/mDIGvyj0Rgv MuOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19si2620198plr.246.2017.11.17.07.30.04; Fri, 17 Nov 2017 07:30:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965308AbdKQIU3 (ORCPT + 91 others); Fri, 17 Nov 2017 03:20:29 -0500 Received: from mail.sssup.it ([193.205.80.98]:30643 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbdKQIUX (ORCPT ); Fri, 17 Nov 2017 03:20:23 -0500 Received: from [10.30.3.172] (account l.abeni@santannapisa.it HELO luca) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 125490790; Fri, 17 Nov 2017 09:20:20 +0100 Date: Fri, 17 Nov 2017 09:20:16 +0100 From: Luca Abeni To: Xin Long Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH] sched: use unsigned int for one-bit bitfield in sched_dl_entity Message-ID: <20171117092016.382a7270@luca> In-Reply-To: <9ca35406601257b736823d9a2109888c86f2c0e3.1510901411.git.lucien.xin@gmail.com> References: <9ca35406601257b736823d9a2109888c86f2c0e3.1510901411.git.lucien.xin@gmail.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 17 Nov 2017 14:50:11 +0800 Xin Long wrote: > This patch is to fix the 'dubious one-bit signed bitfield' error reported > by sparse, when using 'make C=2'. > > Fixes: 799ba82de01e ("sched/deadline: Use C bitfields for the state flags") > Signed-off-by: Xin Long I think this is very similar to patches already sent by Dan Carpenter and Matthew Wilcox. As for the previous patches, I think the change is ok. Luca > --- > include/linux/sched.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/linux/sched.h b/include/linux/sched.h > index a5dc7c9..3e35a37 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -473,10 +473,10 @@ struct sched_dl_entity { > * conditions between the inactive timer handler and the wakeup > * code. > */ > - int dl_throttled : 1; > - int dl_boosted : 1; > - int dl_yielded : 1; > - int dl_non_contending : 1; > + unsigned int dl_throttled : 1, > + dl_boosted : 1, > + dl_yielded : 1, > + dl_non_contending : 1; > > /* > * Bandwidth enforcement timer. Each -deadline task has its From 1584321390344670423@xxx Fri Nov 17 13:50:18 +0000 2017 X-GM-THRID: 1584321390344670423 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread