Message ID | 20221101100448.66712-3-randy.li@synaptics.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2865276wru; Tue, 1 Nov 2022 03:19:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jZVuQCW1Kyan8KXIVmFUlaiSYpvUabsMSQItGxYx9Ek9TihGGekFyMsDXCyS89KSbb3B0 X-Received: by 2002:a17:90b:152:b0:213:dfd6:3e5e with SMTP id em18-20020a17090b015200b00213dfd63e5emr10143704pjb.229.1667297983082; Tue, 01 Nov 2022 03:19:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667297983; cv=pass; d=google.com; s=arc-20160816; b=Tn+sjRMSxlydPKv6adKme6t9gbnBs/4PbJUMgU0rGkunWa6hiq5thraSOBljcdewsi SPjMepLyTovKbOlDnNPfT075O/iGJpNC0mD/LFVwlsERZG5Lm5aHsJCV2Oli7vP+SbGu sWYlb9s5w3pDDDpGyNc6FdFzCpPnYmcykPk6zlf/RqwRRvXANaDwM5t+5KOJOn0VHNj4 8UcIUspd7yYdrnJ6A+cIhOh+IvyMVc3zpeyo/OTiHnuSMj41veu6bbYSmQeOTDbadH6h EnJv+CGgO7aPBETA2X2EqpBKKvufmgzWwjgKrz1OmexYMLLvRfC2UbAWDtxFpRovROBb P12w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WLbFrOWEYWjaTOVaR/p2ZKNFdbel3IZbWaevVbsdCwo=; b=lhtD5lH31N6ksAXEdgPaOSdQkjOA1mJIyR9MEh7B1YCZb6MoaRWqGdgkZA5lFewOHp WyNOVK0cVVfSLRw5KpFC3cg7A2fI3as28bUT8uYuc0S0dGHsNrsJZfycxuk1jyv68cCV zOXImh4eGTB4zSsrAkT2wrInCQWuPEafZnF25w6bwxZlLRdHn0BgJ7vaSGezRF3xqCtE pDHOcEZvwWFfXQQaYig+Trdo9mR0foC+pAHlj0wNAG4Rs3SKol6pv0oVubatar6z9i76 Q0YyJdLQugOVe2+TVybyItEfEEgFJOpbhcQH4o4kU7qgiMSAsFaUoEWe+5H365tTijbO 7fgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=A9114vFY; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a1709027d8200b0018659ff71d2si9813090plm.62.2022.11.01.03.19.28; Tue, 01 Nov 2022 03:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=A9114vFY; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbiKAKF5 (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 06:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiKAKFx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 06:05:53 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2083.outbound.protection.outlook.com [40.107.93.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA368193D2; Tue, 1 Nov 2022 03:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mC8GAPdebjQIiJATMq2NyKe6p6Z4qsfCSf5r3El064eLuPbsoTFZnw51xrNdKeEd6SVr86szTPTfFu1t+xYmXkB9yViWuPD9gu0rP1E5t+a3jXIJtbK+kjs95yKbTxgiigPdj8CImeS81YzfGIZ05KeBCKMNR1f3vUg3t5/vUSubvlVHmtxXcWr6pI2q//W9Gf8iADyUiGsceJXhieQooruTPTWf668Z38mi7fwwAnx6n68JgqjrOGorQ37UfCUBqAGJCEPHQlNbFrfauuLr0dnhGHI5zSLc0eJlCCIWzSmdCeZCdNQxyzYOrA+3T4ZlB9k5yEnWhlcvgsiEnNKbPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WLbFrOWEYWjaTOVaR/p2ZKNFdbel3IZbWaevVbsdCwo=; b=hArLA82YgyuW81kmIpk+Uvr/tGYkQmOBahAgL9YNEkwbqlELsLfzk4J54kmc/SNYOuqjT9V/7eKGLEhpvI9zW00GiP4lgRsaONOxW0y/uTGhWXMCIVTB/6aEjHQ5tbn7xHUQuI6aocyPyUO59zdkTx5qHK4cFHcxUwRboOLLQnexSFqr7/rjk1JtXdD7/9T5iNV/y9ndqy6FBLkM3nOMzb67Stj1RdAJ1OlireYoxo0UqgB3p97BPC90qJuJt3sOX0J5PM0MJYME+4JYo11uHyhJUeIHfXuXfbxKuNeUMFE6cH+fB03Slr8a9LkBDAENGypG4q/dY7c4g34XiU/C3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WLbFrOWEYWjaTOVaR/p2ZKNFdbel3IZbWaevVbsdCwo=; b=A9114vFYm6bklPo4oWG1goZjrgwrAQ/3Y2KHdzLdTFp09Nl8grejhqotjr6lnahDesNX10NMMb5LGFnAXIAiT9RVFv/YExoIxjltazLd3Olijn59auzrNYCYTfPdh3L/tdVj7qdXbG+GENpVui+fQybZlSOjMK6ByHO7+n6x19k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) by MW4PR03MB6362.namprd03.prod.outlook.com (2603:10b6:303:11d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.19; Tue, 1 Nov 2022 10:05:51 +0000 Received: from DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::a132:66d9:ed0f:e5c1]) by DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::a132:66d9:ed0f:e5c1%7]) with mapi id 15.20.5769.021; Tue, 1 Nov 2022 10:05:51 +0000 From: Hsia-Jun Li <randy.li@synaptics.com> To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, daniel@ffwll.ch, ezequiel@vanguardiasur.com.ar, helen.koike@collabora.com, hverkuil-cisco@xs4all.nl, jszhang@kernel.org, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, maarten.lankhorst@linux.intel.com, mchehab@kernel.org, mripard@kernel.org, nicolas@ndufresne.ca, ribalda@chromium.org, sakari.ailus@linux.intel.com, sebastian.hesselbarth@gmail.com, tfiga@chromium.org, tzimmermann@suse.de, "Hsia-Jun(Randy) Li" <randy.li@synaptics.com> Subject: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers Date: Tue, 1 Nov 2022 18:04:46 +0800 Message-Id: <20221101100448.66712-3-randy.li@synaptics.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101100448.66712-1-randy.li@synaptics.com> References: <20221101100448.66712-1-randy.li@synaptics.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH0PR07CA0027.namprd07.prod.outlook.com (2603:10b6:510:5::32) To DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR03MB5196:EE_|MW4PR03MB6362:EE_ X-MS-Office365-Filtering-Correlation-Id: fbe8876a-776a-444b-52c3-08dabbf0a7d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H4SUqSfy3xre2VoMOqhxyjpdd9Yh3pk9dZQPsjBGLnj5Kosk5xq0ceuJCqSXpQzm5z7NTAoL8Npu9OqMYxB99v3ObJkA1Htgzb65ZLbrf1EeoXAqUnpP5qSFynHuRBCBjUh5JtDSLk1+gxkSftiuQXVOqCisKemG3DW+10uC5o9HoJiYNLY2jDxpDRHK24XhnB+6OM7FyRpapS9TYeb2DVGfG7C+erEDurRUsHd3hQ4Jl32syKPeYaSiWLKb3JDMb4OKcvRSmEflEuMYaSJqq7p3ueb5AqRdcyp7oTZ1seCe+v4aFVQyRp2vGcbFy4IniY96D0oBfe1wANogP4hriO2wGvEIjNWVik5sY3/EG6gCVsWSe8pUT+LHnSQQYHLAYy60ydA0FF/Lgdht8svTFLcgR76a7DSkR9bxVHv9C69ULVZ79Pg1ghJfMk9JAZ2CPvAvUZyjw7JudmEw+utOttOJ2VaNnnmNQwnbTPVogmMFZiWZ38f0F/VR53KMnHMdcErVMDtT1nJi+w/nbR+U2ErKWKXw1Km3OM4QF0Z6JSObwwGeRdvaYtcD46tfwaKqvXdj4cshQ3hiBJu/PVr42KIkUyF3FIpL29MgIfv/e8xFPdytyfFfYFpDxEfomn7irshqzDq917TJZ2luM6cpeOlxnxKQ4lHf8xvD1xaNP0hBwYn7Za1k8VXxb+fYRkVl0FW/xCy6gGb9Dk0yb72zFKrillggT2sWk6L9L0PQkLIdU26ZEh0YA/OhD4POu3jE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB5196.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(346002)(39860400002)(396003)(136003)(366004)(451199015)(36756003)(478600001)(86362001)(6486002)(6506007)(66946007)(316002)(6916009)(66476007)(66556008)(107886003)(4326008)(8676002)(6666004)(52116002)(6512007)(8936002)(5660300002)(26005)(41300700001)(1076003)(2906002)(186003)(7416002)(2616005)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HbxwtuiiREkKfFQd4tCbaTI3X9JCeNhumQYX1Jov0UhwvM7cSVlaOpKCK79q5qmHWMe1sEPSlTSAKAFoK/1DplrUNDqcIHtT6gwmiWigXJz24AxrRFOuEFDJBXhtjMvLF39Iqy/p1aRiL8vxU3I83ogFRLDH8/2k7mbcGUFWudsBdsMbN9rExANGKq3BDyxzBGnUGckmTM1oaWfcPmGRJfRUoB6Q4A/z3tFaUb5OSuR+cCDHI8aGDv6MjbXtGRqtHF27K/646HBMLztS8OZP8xh2+9hHzRfCLBSzdRvpul5xczRfqVcZbNri01jzqb9pPzPKHikSc2ZknedXCDtZSZL3VkPnxicwMi0Qrcl8GkSdsq2u1I6uPdet0MFDZJlWW5zpG8Pc4O0nYIwQhGqX4IRjuX06uf9O1lraGIm1mF8P5ijs1wrShtLA834EqTEDpORJkSjn+PXsiXIC7DgPPZn2PIjOQoN12wBoVyCjZBh+djBcB2cN3U580/2gkKL3epEvgsDoUkk3WjFnZMcxN/vEi3wFmwRpCVjBccjszkqsc2JpMCbsvH2+JvJWYe1aOh5N3t8RcWlIQ1byRovZ1bzUrZvcbChC2icaoRn+M+XmirttH/cvpnM8GScIdAtkEJiCnBKxbJ/eJ7hNBISKFQ0lXf68tWU3pv19fMTnhJOcDLGxkyvqOMNZD5taobfKoF5vb2q7NpcCkXNpr5BukUID0xmb/mPmjWlQ02wnGgQnNPmkslKbk0wDR2t1CZw0LG4vss92zttfG3XLFKMTZNaUFqSxkeykHCepifmIjZ9E6+IALisJHcVnvyZlqRq7k01pAHRmMxvF0ZJZzKHP8VYN+bgV3ONP3f9If0ajZs/dw9BgtW3fI/5M0dWU5BtdqlJ7S7w9uuEUszpRBlbCtPEaPp28zU12wy7Xh/pCjZJtwcq/mXVPdiULvkcKKMtwyNkUFzCbGn6SKZeJwOqOxAboA2OcNlr6N003sSJbr3JU0MC3XdLOKEYIib2GpjHBaL7ap5tF0opgtZyqFzm5rqd1afuOUbf7JYipwb9Jx2StFqJ42KDIcSW0rxdq9oxGcTS4QOtD5VJ99AUnAoTd41xKYEj3hOzg0YPUIpiFs4ZukZ5M3V6dtilx4D0xjBCFg9jM4IQhqTnhBWJjhsdQa7lXf5oGyjILyCHYHiazI0qWO7FCL35J34UADwUKTUrx76EM9tOCFl0JsZ1kKvXvT4dHEztK960AMK7qIE0/Eo1LzUTYIjVGueGeaqD5LUhfDSDnzM8Vaoug2rEko6sc86j+XqH7oE/33IjQV8bzMrTrA/E1xauHmllSasWk7/V8dV1qU5HmA5WAfGpWInz4L8XTF0cvwPdANMK99ouh5roet+4lSa268GXCueZ8OOv8hF+NVIJ79q9zJeQb2KBX6uMRpCAoNri4avPyVXrggCykl9b8tImhEdNF9WUOvNyHpHniw2GR2t5M6w/sUHEqYiCDyjKFu8EGQmxKe6Uq6980Bae8i3ohS47vVU9tmfKWPUeQ+A/Z0eaItVJBMFSPz+cATzxiuIkEbgrn50InQ6lSYJDamikBDEkGRw/kgwA2 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbe8876a-776a-444b-52c3-08dabbf0a7d5 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB5196.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2022 10:05:51.1791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nbV16mQ5ipMUr9n6weVeaN3UaUciPfTJSQqVK8nSP6366VvUQv4v3fYPUrwqR3c8DJfkOa0SEYusQU0x7A0YWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR03MB6362 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748288650270919642?= X-GMAIL-MSGID: =?utf-8?q?1748288650270919642?= |
Series |
Add pixel formats used in Synatpics SoC
|
|
Commit Message
Hsia-Jun Li
Nov. 1, 2022, 10:04 a.m. UTC
From: "Hsia-Jun(Randy) Li" <randy.li@synaptics.com> Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com> --- include/uapi/linux/videodev2.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
Comments
Hi Hsia-Jun, Thank you for the patch! Yet something to improve: [auto build test ERROR on media-tree/master] [also build test ERROR on drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.1-rc3 next-20221101] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20221101100448.66712-3-randy.li%40synaptics.com patch subject: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers config: arm-randconfig-r002-20221101 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 git checkout 58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/imx/ drivers/gpu/ipu-v3/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All error/warnings (new ones prefixed by >>): In file included from drivers/gpu/ipu-v3/ipu-common.c:26: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined] #define fourcc_mod_is_vendor(modifier, vendor) \ ^ include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here #define fourcc_mod_is_vendor(modifier, vendor) \ ^ In file included from drivers/gpu/ipu-v3/ipu-common.c:26: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined] #define fourcc_mod_code(vendor, val) \ ^ include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here #define fourcc_mod_code(vendor, val) \ ^ 2 warnings generated. -- In file included from drivers/gpu/ipu-v3/ipu-pre.c:13: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined] #define fourcc_mod_is_vendor(modifier, vendor) \ ^ include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here #define fourcc_mod_is_vendor(modifier, vendor) \ ^ In file included from drivers/gpu/ipu-v3/ipu-pre.c:13: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined] #define fourcc_mod_code(vendor, val) \ ^ include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here #define fourcc_mod_code(vendor, val) \ ^ >> drivers/gpu/ipu-v3/ipu-pre.c:174:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' if (modifier == DRM_FORMAT_MOD_LINEAR) ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:125:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/ipu-v3/ipu-pre.c:213:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' if (modifier != DRM_FORMAT_MOD_LINEAR) { ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:126:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ >> drivers/gpu/ipu-v3/ipu-pre.c:216:19: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' if (modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED) ^ include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED' #define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:127:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_VIVANTE ^ drivers/gpu/ipu-v3/ipu-pre.c:226:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' if (modifier == DRM_FORMAT_MOD_LINEAR) ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:128:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ 2 warnings and 4 errors generated. -- In file included from drivers/gpu/ipu-v3/ipu-prg.c:17: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined] #define fourcc_mod_is_vendor(modifier, vendor) \ ^ include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here #define fourcc_mod_is_vendor(modifier, vendor) \ ^ In file included from drivers/gpu/ipu-v3/ipu-prg.c:17: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined] #define fourcc_mod_code(vendor, val) \ ^ include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here #define fourcc_mod_code(vendor, val) \ ^ >> drivers/gpu/ipu-v3/ipu-prg.c:133:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' case DRM_FORMAT_MOD_LINEAR: ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:125:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ >> drivers/gpu/ipu-v3/ipu-prg.c:134:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' case DRM_FORMAT_MOD_VIVANTE_TILED: ^ include/uapi/drm/drm_fourcc.h:716:39: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_TILED' #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:126:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_VIVANTE ^ drivers/gpu/ipu-v3/ipu-prg.c:135:7: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' case DRM_FORMAT_MOD_VIVANTE_SUPER_TILED: ^ include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED' #define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:127:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_VIVANTE ^ 2 warnings and 3 errors generated. -- In file included from drivers/gpu/drm/imx/ipuv3-plane.c:18: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:828:9: warning: 'fourcc_mod_is_vendor' macro redefined [-Wmacro-redefined] #define fourcc_mod_is_vendor(modifier, vendor) \ ^ include/uapi/drm/drm_fourcc.h:419:9: note: previous definition is here #define fourcc_mod_is_vendor(modifier, vendor) \ ^ In file included from drivers/gpu/drm/imx/ipuv3-plane.c:18: In file included from include/video/imx-ipu-v3.h:16: In file included from include/linux/videodev2.h:61: >> include/uapi/linux/videodev2.h:831:9: warning: 'fourcc_mod_code' macro redefined [-Wmacro-redefined] #define fourcc_mod_code(vendor, val) \ ^ include/uapi/drm/drm_fourcc.h:422:9: note: previous definition is here #define fourcc_mod_code(vendor, val) \ ^ >> drivers/gpu/drm/imx/ipuv3-plane.c:107:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' DRM_FORMAT_MOD_LINEAR, ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:89:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:108:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' DRM_FORMAT_MOD_INVALID ^ include/uapi/drm/drm_fourcc.h:465:32: note: expanded from macro 'DRM_FORMAT_MOD_INVALID' #define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:90:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:112:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' DRM_FORMAT_MOD_LINEAR, ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:91:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ >> drivers/gpu/drm/imx/ipuv3-plane.c:113:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' DRM_FORMAT_MOD_VIVANTE_TILED, ^ include/uapi/drm/drm_fourcc.h:716:39: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_TILED' #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:92:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_VIVANTE ^ drivers/gpu/drm/imx/ipuv3-plane.c:114:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' DRM_FORMAT_MOD_VIVANTE_SUPER_TILED, ^ include/uapi/drm/drm_fourcc.h:728:44: note: expanded from macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED' #define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:93:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_VIVANTE ^ drivers/gpu/drm/imx/ipuv3-plane.c:115:2: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' DRM_FORMAT_MOD_INVALID ^ include/uapi/drm/drm_fourcc.h:465:32: note: expanded from macro 'DRM_FORMAT_MOD_INVALID' #define DRM_FORMAT_MOD_INVALID fourcc_mod_code(NONE, DRM_FORMAT_RESERVED) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:94:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:346:18: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' if (modifier == DRM_FORMAT_MOD_LINEAR) ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:114:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:834:36: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' plane_state->fb->modifier == DRM_FORMAT_MOD_LINEAR) ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:151:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:859:36: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' plane_state->fb->modifier != DRM_FORMAT_MOD_LINEAR) ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:152:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ drivers/gpu/drm/imx/ipuv3-plane.c:863:31: error: use of undeclared identifier 'V4L2_PIX_FMT_MOD_VENDOR_NONE' plane_state->fb->modifier = DRM_FORMAT_MOD_LINEAR; ^ include/uapi/drm/drm_fourcc.h:475:31: note: expanded from macro 'DRM_FORMAT_MOD_LINEAR' #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) ^ include/uapi/linux/videodev2.h:832:12: note: expanded from macro 'fourcc_mod_code' ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) ^ <scratch space>:153:1: note: expanded from here V4L2_PIX_FMT_MOD_VENDOR_NONE ^ 2 warnings and 10 errors generated. vim +/fourcc_mod_is_vendor +828 include/uapi/linux/videodev2.h 824 825 #define fourcc_mod_get_vendor(modifier) \ 826 (((modifier) >> 56) & 0xff) 827 > 828 #define fourcc_mod_is_vendor(modifier, vendor) \ 829 (fourcc_mod_get_vendor(modifier) == V4L2_PIX_FMT_MOD_VENDOR_## vendor) 830 > 831 #define fourcc_mod_code(vendor, val) \ 832 ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) 833
Hi Hsia-Jun, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on media-tree/master] [also build test WARNING on drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.1-rc3 next-20221101] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20221101100448.66712-3-randy.li%40synaptics.com patch subject: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers config: parisc-randconfig-r022-20221101 compiler: hppa-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 git checkout 58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/imx/ drivers/gpu/ipu-v3/ drivers/rtc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/ipu-v3/ipu-prv.h:16, from drivers/gpu/ipu-v3/ipu-cpmem.c:11: >> include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/ipu-v3/ipu-cpmem.c:10: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | >> include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | -- In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/ipu-v3/ipu-pre.c:13: >> include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/ipu-v3/ipu-pre.c:6: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | >> include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | drivers/gpu/ipu-v3/ipu-pre.c: In function 'ipu_pre_configure': include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:174:25: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 174 | if (modifier == DRM_FORMAT_MOD_LINEAR) | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: note: each undeclared identifier is reported only once for each function it appears in 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:174:25: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 174 | if (modifier == DRM_FORMAT_MOD_LINEAR) | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared (first use in this function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:728:49: note: in expansion of macro 'fourcc_mod_code' 728 | #define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:216:33: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED' 216 | if (modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/ipu-v3/ipu-prg.c:17: >> include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/ipu-v3/ipu-prg.c:6: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | >> include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | drivers/gpu/ipu-v3/ipu-prg.c: In function 'ipu_prg_format_supported': include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:133:14: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 133 | case DRM_FORMAT_MOD_LINEAR: | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: note: each undeclared identifier is reported only once for each function it appears in 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:133:14: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 133 | case DRM_FORMAT_MOD_LINEAR: | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared (first use in this function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:716:49: note: in expansion of macro 'fourcc_mod_code' 716 | #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:134:14: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_TILED' 134 | case DRM_FORMAT_MOD_VIVANTE_TILED: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/drm/imx/ipuv3-plane.c:18: >> include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/drm/imx/ipuv3-plane.c:12: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | >> include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared here (not in a function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/imx/ipuv3-plane.c:107:9: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 107 | DRM_FORMAT_MOD_LINEAR, | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared here (not in a function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:716:49: note: in expansion of macro 'fourcc_mod_code' 716 | #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/imx/ipuv3-plane.c:113:9: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_TILED' 113 | DRM_FORMAT_MOD_VIVANTE_TILED, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/fourcc_mod_is_vendor +828 include/uapi/linux/videodev2.h 824 825 #define fourcc_mod_get_vendor(modifier) \ 826 (((modifier) >> 56) & 0xff) 827 > 828 #define fourcc_mod_is_vendor(modifier, vendor) \ 829 (fourcc_mod_get_vendor(modifier) == V4L2_PIX_FMT_MOD_VENDOR_## vendor) 830 > 831 #define fourcc_mod_code(vendor, val) \ 832 ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) 833
Hi Hsia-Jun, Thank you for the patch! Yet something to improve: [auto build test ERROR on media-tree/master] [also build test ERROR on drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.1-rc3 next-20221101] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20221101100448.66712-3-randy.li%40synaptics.com patch subject: [PATCH v3 2/4] media: videodev2.h: add pixel format modifiers config: riscv-randconfig-r003-20221101 compiler: riscv64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hsia-Jun-Li/Add-pixel-formats-used-in-Synatpics-SoC/20221101-180905 git checkout 58e89ab4bf39c7b8b8733c2e5129c0ceb19cd270 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/drm/imx/ipuv3-plane.c:18: include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/drm/imx/ipuv3-plane.c:12: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared here (not in a function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/imx/ipuv3-plane.c:107:9: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 107 | DRM_FORMAT_MOD_LINEAR, | ^~~~~~~~~~~~~~~~~~~~~ >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared here (not in a function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:716:49: note: in expansion of macro 'fourcc_mod_code' 716 | #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/imx/ipuv3-plane.c:113:9: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_TILED' 113 | DRM_FORMAT_MOD_VIVANTE_TILED, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/ipu-v3/ipu-pre.c:13: include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/ipu-v3/ipu-pre.c:6: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | drivers/gpu/ipu-v3/ipu-pre.c: In function 'ipu_pre_configure': >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:174:25: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 174 | if (modifier == DRM_FORMAT_MOD_LINEAR) | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: note: each undeclared identifier is reported only once for each function it appears in 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:174:25: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 174 | if (modifier == DRM_FORMAT_MOD_LINEAR) | ^~~~~~~~~~~~~~~~~~~~~ >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared (first use in this function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:728:49: note: in expansion of macro 'fourcc_mod_code' 728 | #define DRM_FORMAT_MOD_VIVANTE_SUPER_TILED fourcc_mod_code(VIVANTE, 2) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-pre.c:216:33: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_SUPER_TILED' 216 | if (modifier == DRM_FORMAT_MOD_VIVANTE_SUPER_TILED) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/videodev2.h:61, from include/video/imx-ipu-v3.h:16, from drivers/gpu/ipu-v3/ipu-prg.c:17: include/uapi/linux/videodev2.h:828: warning: "fourcc_mod_is_vendor" redefined 828 | #define fourcc_mod_is_vendor(modifier, vendor) \ | In file included from include/drm/drm_fourcc.h:26, from drivers/gpu/ipu-v3/ipu-prg.c:6: include/uapi/drm/drm_fourcc.h:419: note: this is the location of the previous definition 419 | #define fourcc_mod_is_vendor(modifier, vendor) \ | include/uapi/linux/videodev2.h:831: warning: "fourcc_mod_code" redefined 831 | #define fourcc_mod_code(vendor, val) \ | include/uapi/drm/drm_fourcc.h:422: note: this is the location of the previous definition 422 | #define fourcc_mod_code(vendor, val) \ | drivers/gpu/ipu-v3/ipu-prg.c: In function 'ipu_prg_format_supported': >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_NONE' undeclared (first use in this function); did you mean 'V4L2_PIX_FMT_MOD_LINEAR'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:133:14: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 133 | case DRM_FORMAT_MOD_LINEAR: | ^~~~~~~~~~~~~~~~~~~~~ include/uapi/linux/videodev2.h:832:19: note: each undeclared identifier is reported only once for each function it appears in 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:475:33: note: in expansion of macro 'fourcc_mod_code' 475 | #define DRM_FORMAT_MOD_LINEAR fourcc_mod_code(NONE, 0) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:133:14: note: in expansion of macro 'DRM_FORMAT_MOD_LINEAR' 133 | case DRM_FORMAT_MOD_LINEAR: | ^~~~~~~~~~~~~~~~~~~~~ >> include/uapi/linux/videodev2.h:832:19: error: 'V4L2_PIX_FMT_MOD_VENDOR_VIVANTE' undeclared (first use in this function); did you mean 'DRM_FORMAT_MOD_VENDOR_VIVANTE'? 832 | ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/uapi/drm/drm_fourcc.h:716:49: note: in expansion of macro 'fourcc_mod_code' 716 | #define DRM_FORMAT_MOD_VIVANTE_TILED fourcc_mod_code(VIVANTE, 1) | ^~~~~~~~~~~~~~~ drivers/gpu/ipu-v3/ipu-prg.c:134:14: note: in expansion of macro 'DRM_FORMAT_MOD_VIVANTE_TILED' 134 | case DRM_FORMAT_MOD_VIVANTE_TILED: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +832 include/uapi/linux/videodev2.h 824 825 #define fourcc_mod_get_vendor(modifier) \ 826 (((modifier) >> 56) & 0xff) 827 828 #define fourcc_mod_is_vendor(modifier, vendor) \ 829 (fourcc_mod_get_vendor(modifier) == V4L2_PIX_FMT_MOD_VENDOR_## vendor) 830 831 #define fourcc_mod_code(vendor, val) \ > 832 ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) 833
diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 29da1f4b4578..d00b2e9c0c54 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -816,6 +816,26 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_FLAG_PREMUL_ALPHA 0x00000001 #define V4L2_PIX_FMT_FLAG_SET_CSC 0x00000002 +/* + * F O R M A T M O D I F I E S + */ +/* Vendor Ids: */ +#define V4L2_PIX_FMT_RESERVED ((1ULL << 56) - 1) + +#define fourcc_mod_get_vendor(modifier) \ + (((modifier) >> 56) & 0xff) + +#define fourcc_mod_is_vendor(modifier, vendor) \ + (fourcc_mod_get_vendor(modifier) == V4L2_PIX_FMT_MOD_VENDOR_## vendor) + +#define fourcc_mod_code(vendor, val) \ + ((((__u64)V4L2_PIX_FMT_MOD_VENDOR_## vendor) << 56) | ((val) & 0x00ffffffffffffffULL)) + +/* Format Modifier tokens */ +#define V4L2_PIX_FMT_MOD_INVALID fourcc_mod_code(NONE, V4L2_PIX_FMT_RESERVED) +#define V4L2_PIX_FMT_MOD_LINEAR fourcc_mod_code(NONE, 0) + + /* * F O R M A T E N U M E R A T I O N */