Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp977555pxj; Fri, 21 May 2021 03:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3gEcljcZhJC/EO8Icsvj/DBAY32JzhD/vAPAoyi4ewp4wd2nk13sfsKt5IFoPvZrmQrM+ X-Received: by 2002:a05:6602:718:: with SMTP id f24mr9647508iox.59.1621593710287; Fri, 21 May 2021 03:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621593710; cv=none; d=google.com; s=arc-20160816; b=w7ZIh4eFad5eqHXud/aTsbm1ar67oRiRggLfRUbe4XPuDsFp42FNezy+ogpewIt2LO NZ+SgoJzw0s0+xN0BhlzueA61nHt3+/l1iR3whD7ur305GIfQ57oBT5oMhlsY81M9oo3 qXsjknUNR930BqAOyI29393aEjFXuPGmE/kauk88EYS5X797AVL6BGAVYLwxaGipzuv3 bCDkR/FoxQ/mm9NSkb3IxuvdnnRt3SmyrJjO8+EX9fkhjkpXrFWg1rNYCBD9A/v/MWWG zKds+zhXdlGdpp/Rg6VOtYO1VFdvPKxFXhNHdHEyJF4oATVVRLiPLDZ/x29BxOZB97r+ vJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GRgnjjTyc74OV+vFDIKTcD4cnOw31v5F87VYgn4dO00=; b=E7asteYOFOy0vsW7uw6H2pmv2qZSbnHBBlfisb6ncOhBqKznDSlRVnv09TP3WZXGe5 SJEw0lSsn+hrcoiZheQ9T8QIY2LBKigTIV66osQ8kH6LDNa9ULKq0wPGciboafETKdqp PBQijQLDFrKmWIvqxfVjw5hDnrmEMLkDXJMpvaoVEWPSC9/QY1SauC/ZGGd800YwvMm5 GBkl+/k2b1dYBtiF45p3vd7RBHsh/bIZEnM2UJyE2Gm1y5UdOXEq5aHFR9gpIbox2Tmf Wf6fEBdpUqy+aNtmQ/rx2UD5gXCrSwXLVk0TIWWlUnST0vLVcWYUi8wtUZj/poqOYVrG 2k/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JFKQpqxj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si5507402ilc.16.2021.05.21.03.41.35; Fri, 21 May 2021 03:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JFKQpqxj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235372AbhEUJBB (ORCPT + 99 others); Fri, 21 May 2021 05:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234612AbhEUJAt (ORCPT ); Fri, 21 May 2021 05:00:49 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF85C06138A; Fri, 21 May 2021 01:59:25 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id v14so10996143pgi.6; Fri, 21 May 2021 01:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GRgnjjTyc74OV+vFDIKTcD4cnOw31v5F87VYgn4dO00=; b=JFKQpqxj0ygKabhGTJJ+/xkGGepO/JNO2FMbi0BuqBuK0zIwrUvOUQfkljjTPSpSKW wB9aBkinNrys/SDoxg7RXc8aJBj5Mwp2cA6MVV+u7sSRFfaSYC1LMWKvfgyuFUTt9tEk X7orRttCgEikL7CCIYE78Z4ucQGX7v3FfRR0gQJFFn5GkC2RI9bvWMgALeGyssHK1CbM XDKQmzMS0Pqs4DgMm76QN6Y4mujKdjn5agq5aMlbEdWTFj4MYfc7OVQ+awIAw8hRIalj ZvKkLhFstreG7MxyRt3rfBSvtSfMGYO6Bk6fOCuCgWwWdFeoDMyyByeESrKDrz/fEBI2 q64g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GRgnjjTyc74OV+vFDIKTcD4cnOw31v5F87VYgn4dO00=; b=ufpD4rSLqTipW736xd2/4Jt1JtyN7Fu/PY+JYcweOoXyR6ZE8LbV/nluixhjakSkqw d7dd99u2xmA9YXOB209Pdevqpl0N925IqzvPt8JZ5jVBHP4p4rEOBN7+CRvt3r0ZPuM2 b1YaHPFLyFRbrf1u/qHp5HhwKJV2EvLL2nkb79BIqHBe+2yGdc/Lla8MpQj8RIzocqjx M+MTNUox7QSdz8VA0aRsUncovlH0BqUAvMd9sffZ5LXs5fHMOG7ZlnKYkhjVUPSquUUD VX3JF/gzRsWxbm/2rgnPsoji8bM9wBXyEXDFI/hpiD059CAICH1TeNBXTiRGbQMuifdr OVag== X-Gm-Message-State: AOAM530zjIN25pI99sgS3OJBz3N9icldwBNBzlrY6s9asDbHLyaDlXV8 hufdz4ZoYX0BaeCz3NuTHIY= X-Received: by 2002:a05:6a00:14d0:b029:2cf:ee47:dfd9 with SMTP id w16-20020a056a0014d0b02902cfee47dfd9mr9557263pfu.31.1621587564803; Fri, 21 May 2021 01:59:24 -0700 (PDT) Received: from pride.localdomain (c-174-61-140-56.hsd1.wa.comcast.net. [174.61.140.56]) by smtp.gmail.com with ESMTPSA id q3sm3914489pff.142.2021.05.21.01.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 01:59:24 -0700 (PDT) From: Joe Richey To: trivial@kernel.org Cc: Joe Richey , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Mark Rutland , Lorenzo Pieralisi , Mauro Carvalho Chehab , Zhangfei Gao , Zhou Wang , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , "Chang S. Bae" , Andi Kleen , Sasha Levin , Peter Xu , Lei Cao , Ulf Hansson , Daniel Lezcano , "Rafael J. Wysocki" , Kenneth Lee , Jonathan Cameron , Zaibo Xu , Greg Kroah-Hartman , Hans Verkuil , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-accelerators@lists.ozlabs.org Subject: [PATCH v2 5/7] media: vicodec: Use _BITUL() macro in UAPI headers Date: Fri, 21 May 2021 01:58:46 -0700 Message-Id: <20210521085849.37676-6-joerichey94@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210521085849.37676-1-joerichey94@gmail.com> References: <20210520104343.317119-1-joerichey94@gmail.com> <20210521085849.37676-1-joerichey94@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Richey Replace BIT() in v4l2's UPAI header with _BITUL(). BIT() is not defined in the UAPI headers and its usage may cause userspace build errors. Fixes: 206bc0f6fb94 ("media: vicodec: mark the stateless FWHT API as stable") Signed-off-by: Joe Richey --- include/uapi/linux/v4l2-controls.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index d43bec5f1afd..5afc19c68704 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -50,6 +50,7 @@ #ifndef __LINUX_V4L2_CONTROLS_H #define __LINUX_V4L2_CONTROLS_H +#include #include /* Control classes */ @@ -1602,30 +1603,30 @@ struct v4l2_ctrl_h264_decode_params { #define V4L2_FWHT_VERSION 3 /* Set if this is an interlaced format */ -#define V4L2_FWHT_FL_IS_INTERLACED BIT(0) +#define V4L2_FWHT_FL_IS_INTERLACED _BITUL(0) /* Set if this is a bottom-first (NTSC) interlaced format */ -#define V4L2_FWHT_FL_IS_BOTTOM_FIRST BIT(1) +#define V4L2_FWHT_FL_IS_BOTTOM_FIRST _BITUL(1) /* Set if each 'frame' contains just one field */ -#define V4L2_FWHT_FL_IS_ALTERNATE BIT(2) +#define V4L2_FWHT_FL_IS_ALTERNATE _BITUL(2) /* * If V4L2_FWHT_FL_IS_ALTERNATE was set, then this is set if this * 'frame' is the bottom field, else it is the top field. */ -#define V4L2_FWHT_FL_IS_BOTTOM_FIELD BIT(3) +#define V4L2_FWHT_FL_IS_BOTTOM_FIELD _BITUL(3) /* Set if the Y' plane is uncompressed */ -#define V4L2_FWHT_FL_LUMA_IS_UNCOMPRESSED BIT(4) +#define V4L2_FWHT_FL_LUMA_IS_UNCOMPRESSED _BITUL(4) /* Set if the Cb plane is uncompressed */ -#define V4L2_FWHT_FL_CB_IS_UNCOMPRESSED BIT(5) +#define V4L2_FWHT_FL_CB_IS_UNCOMPRESSED _BITUL(5) /* Set if the Cr plane is uncompressed */ -#define V4L2_FWHT_FL_CR_IS_UNCOMPRESSED BIT(6) +#define V4L2_FWHT_FL_CR_IS_UNCOMPRESSED _BITUL(6) /* Set if the chroma plane is full height, if cleared it is half height */ -#define V4L2_FWHT_FL_CHROMA_FULL_HEIGHT BIT(7) +#define V4L2_FWHT_FL_CHROMA_FULL_HEIGHT _BITUL(7) /* Set if the chroma plane is full width, if cleared it is half width */ -#define V4L2_FWHT_FL_CHROMA_FULL_WIDTH BIT(8) +#define V4L2_FWHT_FL_CHROMA_FULL_WIDTH _BITUL(8) /* Set if the alpha plane is uncompressed */ -#define V4L2_FWHT_FL_ALPHA_IS_UNCOMPRESSED BIT(9) +#define V4L2_FWHT_FL_ALPHA_IS_UNCOMPRESSED _BITUL(9) /* Set if this is an I Frame */ -#define V4L2_FWHT_FL_I_FRAME BIT(10) +#define V4L2_FWHT_FL_I_FRAME _BITUL(10) /* A 4-values flag - the number of components - 1 */ #define V4L2_FWHT_FL_COMPONENTS_NUM_MSK GENMASK(18, 16) -- 2.31.1