From nobody Tue Nov 30 21:47:09 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7857118B905F; Tue, 30 Nov 2021 21:47:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3bR21YdXz3m9G; Tue, 30 Nov 2021 21:47:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 11C8B1DD5B; Tue, 30 Nov 2021 21:47:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AULl9Qc068725; Tue, 30 Nov 2021 21:47:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AULl9V9068724; Tue, 30 Nov 2021 21:47:09 GMT (envelope-from git) Date: Tue, 30 Nov 2021 21:47:09 GMT Message-Id: <202111302147.1AULl9V9068724@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 1097f2f40d08 - stable/13 - evdev: Add parentheses around '-' expression in operand of '&'. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1097f2f40d08f661cfbc84755570987f09feac71 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638308830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FONdN/JNMyQC1ZzapJf67rTozn8OgpMF5DPtONOHCkA=; b=t6eALI0v7hYqSYkR3ul0nAVFOM1XlF6X+BQVZnEOylbY71R8mwxf6chw1ln9FUdA3mx6uL dQYoAs5AfBeSRysrnvr2Vdokyyvj6VKGDHveWs0si+jXi1S9w1AMWTso9ZLY+TIeA1j1mO IqvCcbABKTjY6y0306s7Bf3wK6wLPezxiu3Plo/wJjkgOc2Br7GlqOMUQehWPmRzf7QRZi 6uefb90qcO3E5Bf+F660gdoseYKyqLWKMoVaotvo1lieljL3TdvGBeS5G45ztns94awBJQ NvSjP7guoqHLtIp9bLjG3gMyp716NPpLrDDa8t2h6OeKPrnWJpt458tu+6V4vQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638308830; a=rsa-sha256; cv=none; b=KFY9acm8EOYp9c/mTqyk21rjyWOGYo7vp0C93cR+v00Sow5k3hLWKbBbBDz5XyTNBNBZm7 nJDkOaSyso1c/otEqQyJLTGNjXH1P0zyISbfmbwiHt/y/X+8G4bCwuNftoQ/LY4omcjivQ FR+JVoq2QI9JjJb9mFlyjoh6clYHy3Hf+YbKa/wFvYGn1snzsZHkw556H8EsjlYzzef42k GAYI16+mEJuQc+9R/mDWUcOJl7I1JecB8Rt/+RdpIqUKQ/IuNLH3olicj/1QYnL8R0ljnJ CDLiRJdUyJdVLO1UspeHvVIb9cq9djoQCAY+m1dnJ1EZKOOczXKWReoW1mme2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1097f2f40d08f661cfbc84755570987f09feac71 commit 1097f2f40d08f661cfbc84755570987f09feac71 Author: John Baldwin AuthorDate: 2021-09-15 16:03:18 +0000 Commit: Vladimir Kondratyev CommitDate: 2021-11-30 21:45:30 +0000 evdev: Add parentheses around '-' expression in operand of '&'. This fixes a -Wparentheses error with GCC 9. Reviewed by: wulf Differential Revision: https://reviews.freebsd.org/D31947 (cherry picked from commit d99c87c8d54a02a229cbeaa19ec8784b1d5afbb9) --- sys/dev/evdev/evdev_mt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/evdev/evdev_mt.c b/sys/dev/evdev/evdev_mt.c index 3030a60e098a..6eb263838a61 100644 --- a/sys/dev/evdev/evdev_mt.c +++ b/sys/dev/evdev/evdev_mt.c @@ -100,7 +100,7 @@ static void evdev_mt_replay_events(struct evdev_dev *); static inline int ffc_slot(struct evdev_dev *evdev, slotset_t slots) { - return (ffs(~slots & (2U << MAXIMAL_MT_SLOT(evdev)) - 1) - 1); + return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); } void