Received: by 10.223.164.202 with SMTP id h10csp21342wrb; Wed, 29 Nov 2017 16:12:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMayJOBlwNUrANEEZa8UVQSQmWu4igfOlaX5mWzNFX7CIAVP/t45ET76Qn9nLQy46D07Tll1 X-Received: by 10.101.86.133 with SMTP id v5mr617106pgs.266.1512000754341; Wed, 29 Nov 2017 16:12:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512000754; cv=none; d=google.com; s=arc-20160816; b=tdGXDy4yNk4PbdzkpKIZZ37Z8RBLisy4Fb4c7lFXttTFp0I3JWPE3+yMVy7pVX2dJC CwNwvj1HWaGaPqjN/utZYnNz4rQh9aiRIcmq6b/8LPFaUg02i3TPHvS9eU5i5Zz7GJb9 EKOEwap+PSalJHtAFyQ3fnM0AbawkBM8Eg7E3T5VoJ9oYn+PKMMmjqCKb+wT+vUJcFzk uEW6o8GahOuiHRnfl52jyhJ3agMbJ9wxBY2+1yorPiiQ+AOQagzxfEuM2moKFVs1GogK hB5hEHoaK3MfiNcqPHTz9sIEOYT9rIE13KDIU/nKcN7IfN5f3hT33NVZg8egmMzDEMvM m/5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=9RE9WFsQc3Tvz6pw1PWxQtfnYdGPeb5dNi/WQD2knPs=; b=Z+q8eF+Qv3JfNNlt0nFEJHaKkYffWqAONKT6yx/Kc0ZUBzM/+OuIeJiyaxQeRhlPPd P2CLUP0s17tqx4fLiDZ2EHfA/S0biF1UyFfLw9+9r1EAZrjs8IsI2LOuzkH76Oi9G/2L GLStukQ56AvVmmmAZrFV2gepygwLEih0r2cPMzUk5jBtd3EOHuOjADWZ7uHtNrcgXduI l4EmjyZIjO8/hbEpXVPVolICJ84LmivgF/7eWmmxY3Dy/uBmjQA4YGb56qtGejeGFVId /2E1z4GPx9ksfymFiKkiq7wxJOBwBeBLJgcJiobykEw6rVoF3NQ2fBNrP2FSD8H3BRiV QICQ== 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 u79si2193927pfa.354.2017.11.29.16.12.20; Wed, 29 Nov 2017 16:12:34 -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 S1753642AbdK3AMO convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2017 19:12:14 -0500 Received: from mga05.intel.com ([192.55.52.43]:29642 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753618AbdK3AMM (ORCPT ); Wed, 29 Nov 2017 19:12:12 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Nov 2017 16:12:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,339,1508828400"; d="scan'208";a="7725761" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by fmsmga004.fm.intel.com with ESMTP; 29 Nov 2017 16:12:11 -0800 Received: from orsmsx159.amr.corp.intel.com (10.22.240.24) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 29 Nov 2017 16:12:10 -0800 Received: from orsmsx115.amr.corp.intel.com ([169.254.4.2]) by ORSMSX159.amr.corp.intel.com ([169.254.11.33]) with mapi id 14.03.0319.002; Wed, 29 Nov 2017 16:12:10 -0800 From: "Keller, Jacob E" To: Jakub Kicinski , "Kirsher, Jeffrey T" CC: "mingo@redhat.com" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "nhorman@redhat.com" , "sassmann@redhat.com" , "jogreene@redhat.com" , luca abeni Subject: RE: [PATCH] sched/deadline: fix one-bit signed bitfields to be unsigned Thread-Topic: [PATCH] sched/deadline: fix one-bit signed bitfields to be unsigned Thread-Index: AQHTaIi86QA4rSCuNkq3qoNlQFZQcaMrREyAgADKPdA= Date: Thu, 30 Nov 2017 00:12:09 +0000 Message-ID: <02874ECE860811409154E81DA85FBB5882AFAB96@ORSMSX115.amr.corp.intel.com> References: <20171128203619.71430-1-jeffrey.t.kirsher@intel.com> <20171128200726.1c806eb7@cakuba.netronome.com> In-Reply-To: <20171128200726.1c806eb7@cakuba.netronome.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjllMDFjZTYtMzkyNC00NjEwLWE1Y2YtZTVmYTI4Yjg0YmQ3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjJPbDM5bTVhU2NNcDFYM25mR1pkVkFycm5idjJvNW5GUDdyb3RiQStOSnM9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Jakub Kicinski [mailto:kubakici@wp.pl] > Sent: Tuesday, November 28, 2017 8:08 PM > To: Kirsher, Jeffrey T > Cc: mingo@redhat.com; peterz@infradead.org; Keller, Jacob E > ; linux-kernel@vger.kernel.org; > netdev@vger.kernel.org; nhorman@redhat.com; sassmann@redhat.com; > jogreene@redhat.com; luca abeni > Subject: Re: [PATCH] sched/deadline: fix one-bit signed bitfields to be unsigned > > On Tue, 28 Nov 2017 12:36:19 -0800, Jeff Kirsher wrote: > > From: Jacob Keller > > > > Commit 799ba82de01e ("sched/deadline: Use C bitfields for the state > > flags", 2017-10-10) introduced the use of C bitfields for these > > variables. However, sparse complains about them: > > > > ./include/linux/sched.h:476:62: error: dubious one-bit signed bitfield > > ./include/linux/sched.h:477:62: error: dubious one-bit signed bitfield > > ./include/linux/sched.h:478:62: error: dubious one-bit signed bitfield > > ./include/linux/sched.h:479:62: error: dubious one-bit signed bitfield > > > > This is because a one-bit signed bitfield can only hold the values 0 and > > -1, which can cause problems if the program expects to be able to > > represent the value positive 1. > > > > In practice, this may not cause a bug since -1 would be considered > > "true" in logical tests, however we should avoid the practice anyways. > > > > Fixes: 799ba82de01e ("sched/deadline: Use C bitfields for the state flags", 2017- > 10-10) > > Signed-off-by: Jacob Keller > > Cc: luca abeni > > Tested-by: Andrew Bowers > > Signed-off-by: Jeff Kirsher > > This is already in Linus's tree (I've been waiting for it to land as > well :)) > Excellent. Regards, Jake From 1585371976993302527@xxx Wed Nov 29 04:08:56 +0000 2017 X-GM-THRID: 1585343607967539974 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread