Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4423750ybb; Mon, 23 Mar 2020 21:15:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvPkLK1zyNkxXdTWHWZ6LKGa9FsimMoVgqlbRDoVFOOIetCiqFIxhRKMZ7paf8fZikpoE0S X-Received: by 2002:aca:edcf:: with SMTP id l198mr1989319oih.97.1585023332046; Mon, 23 Mar 2020 21:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585023332; cv=none; d=google.com; s=arc-20160816; b=v8Mia85Shw8O9Ktj31FX44zb6tejahCE06ZYGTI9WFt8ZBFgWE2inQwphtRCabk2Of 9tufxHuHy1QS1OtkrL9OlhPYdqrX5pc45kHGPw322yPuQpmilArPYWi+Oqits+v92ygl eJb0y18HEr2qTS8/KmMdxCxSh969QN0QIXJMFO9KbGOfVjGoL+rWt0Vhm5KkGHT95YGA VISMqLd8kOuf0fJXfRZzYz8iGzLqPxeWV9yKGS5y5X27zrrb5RFtHQKrAXwdaYAR9suq eTLQj0pfbz/2H5wZsfhAcnjX0K+5keyD9SBtP6xXNmdYTDLY23IUIaY+6JqF/FAZsHlm RZOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=mjQ9MbkN2lg9YBuiVW+Ce9he0mEnlCLjk/uJWKcwNpY=; b=PHmKQ5XwVvosYBnbT2IRf1HTFkrD0RKvVp3ZUDhtoPnzr8tuBP0bPmmbdqyle3DM9r xX9Rmo2bvfU5uCOgxI1cAquaZ6BisqyGncuEZ6RPTi5Wq+p/rxycYRMhvN3J5jk7dURD hmaGPmFZvE+c4t9ElF5388MGCyexcK2r00jm0fq5uTaVAUq4YdvMufvd03gmqcZkcKK9 Fl7G73o8ghkYjqilVPe8I6aP7wbOmFbJQgJ6Zen/RoSBzUHlasjaonZbxvWEf/BDuW6F I013uRfH7tXexqi8K+aTJ3IA29I+egWJvrXjXFMGIJGzq2mAlVKa3+8mLcq4iyy2NhC0 CNag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qsz45JQD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si9331385oto.260.2020.03.23.21.15.18; Mon, 23 Mar 2020 21:15:32 -0700 (PDT) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qsz45JQD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725927AbgCXENo (ORCPT + 99 others); Tue, 24 Mar 2020 00:13:44 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:22289 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgCXENo (ORCPT ); Tue, 24 Mar 2020 00:13:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585023223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=mjQ9MbkN2lg9YBuiVW+Ce9he0mEnlCLjk/uJWKcwNpY=; b=Qsz45JQDfEc8063RiWlBt0NYfHNUtY0tChySONc1DfYUZKuw0P6LA8okLVmz5cdiiifuj6 GPvjZOpvcAqNJOk26Aqdp8pnOIXItHujuSSz5xAXoCcaY61VqB42Q6Kn/jxPYWSUqJufoZ gYpFmW/d7U0pwetoEA1hpXRI0xNl8hY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-143-wxBI9LdeNoamUVSLYULY7A-1; Tue, 24 Mar 2020 00:13:41 -0400 X-MC-Unique: wxBI9LdeNoamUVSLYULY7A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 06187800D50; Tue, 24 Mar 2020 04:13:40 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.36.110.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12527BBBCE; Tue, 24 Mar 2020 04:13:35 +0000 (UTC) Date: Tue, 24 Mar 2020 05:13:41 +0100 From: Eugene Syromiatnikov To: linux-kernel@vger.kernel.org, Benjamin Tissoires Cc: Dmitry Torokhov , Markus Koch , "Dmitry V. Levin" Subject: [PATCH] input: avoid BIT() macro usage in the serio.h UAPI header Message-ID: <20200324041341.GA32335@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 19ba1eb15a2a ("Input: psmouse - add a custom serio protocol to send extra information") introduced usage of the BIT() macro for SERIO_* flags; this macro is not provided in UAPI headers. Replace if with similarly defined _BITUL() macro defined in . Cc: # v5.0+ Fixes: 19ba1eb15a2a ("Input: psmouse - add a custom serio protocol to send extra information") Signed-off-by: Eugene Syromiatnikov --- include/uapi/linux/serio.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/serio.h b/include/uapi/linux/serio.h index 50e9919..ed2a96f 100644 --- a/include/uapi/linux/serio.h +++ b/include/uapi/linux/serio.h @@ -9,7 +9,7 @@ #ifndef _UAPI_SERIO_H #define _UAPI_SERIO_H - +#include #include #define SPIOCSTYPE _IOW('q', 0x01, unsigned long) @@ -18,10 +18,10 @@ /* * bit masks for use in "interrupt" flags (3rd argument) */ -#define SERIO_TIMEOUT BIT(0) -#define SERIO_PARITY BIT(1) -#define SERIO_FRAME BIT(2) -#define SERIO_OOB_DATA BIT(3) +#define SERIO_TIMEOUT _BITUL(0) +#define SERIO_PARITY _BITUL(1) +#define SERIO_FRAME _BITUL(2) +#define SERIO_OOB_DATA _BITUL(3) /* * Serio types -- 2.1.4