From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out28-98.mail.aliyun.com (out28-98.mail.aliyun.com [115.124.28.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE38078F4A for ; Mon, 16 Mar 2026 05:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773640123; cv=none; b=LxxN7sdARL5hUA0ep1rRE7ZMIJvUnz6HIvngzuYzKAlL+VMsRRzYFaDLLHLw0sDTRSlQdGxE7x9yibucLl2d7pTmsVQ7m3vjWVFpmgnetMQtT2UTlOSxzWu9VJPvjjER0qbVILRwff/k63wBIG64tEN5XBKcc05o5iGMCV7EOK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773640123; c=relaxed/simple; bh=NoYsgui0qlC0iQf834inqtQqnKF/ArOdStUt3zoEb34=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=O/NQylKy1xvk4cgJWDkOrsOHxfZjdzOf74f3lrpONi1V9bmnYViN5n/ORRnLnD7H1z8nCQI3o3azCC1f0FYoeoBR1um4X7ob+8XU8swBEcjJRLxPB3Wnm9BlpK++/rkhylvCDJBuao2L0V7K77jxlR6XyIimwDOnbafW1lyzA+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=izBN+GkW; arc=none smtp.client-ip=115.124.28.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="izBN+GkW" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1773640113; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=OED2UqpsODjwgj7WIlX0Yih4RVuBc+4p//C/zveDf7Q=; b=izBN+GkWMuwG+qSXPIQDPecrmj/UVcmOhtXehknh/awYvMFKYEZ9Jxj0GWmp2HBms8eTde7EDLA20KZfoe42+hHkAyP5w9WKyhpUxPd1UigGFmidNrfn9FVH1zTaK6Ya+A8F0HI8rCkykgBIJrI6IUxCoZ4oXn4JJud7tkXo+Zs= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037032089;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=47;SR=0;TI=SMTPD_---.gt4DdjB_1773632822; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.gt4DdjB_1773632822 cluster:ay29) by smtp.aliyun-inc.com; Mon, 16 Mar 2026 11:47:03 +0800 From: Hou Wenlong To: linux-kernel@vger.kernel.org Cc: Hou Wenlong , Alex Deucher , Alex Hung , Alvin Lee , amd-gfx@lists.freedesktop.org, Ankit Nautiyal , Aurabindo Pillai , Ausef Yousof , Bhuvanachandra Pinninti , Chaitanya Kumar Borah , Charlene Liu , Chenyu Chen , Chris Park , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Dillon Varone , Dmytro Laktyushkin , dri-devel@lists.freedesktop.org, Gustavo Sousa , Harold Sun , Harry Wentland , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Jun Lei , Karthi Kandasamy , Leo Chen , Leo Li , Lohita Mudimela , Lucas De Marchi , Meenakshikumar Somasundaram , Nicholas Carbones , Ray Wu , Relja Vojvodic , Rodrigo Siqueira , Rodrigo Vivi , Ryan Seto , Samson Tam , Simona Vetter , =?UTF-8?q?Timur=20Krist=C3=B3f?= , Tvrtko Ursulin , Wayne Lin , Wenjing Liu , Yan Li , Zhenyu Wang , Zhi Wang Subject: [PATCH 0/2] drm: Fix namespace clashes with 'pixel_format' Date: Mon, 16 Mar 2026 11:46:27 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The 'pixel_format' structure is defined in include/video/pixel_format.h. However, DRM also defines a local structure with the same name, which leads to namespace clashes as reported in [0]. As suggested in [1], rename the 'pixel_format' definitions in drivers/drm by adding a prefix to avoid the conflict. [0]: https://lore.kernel.org/lkml/aahBPzflrEJ2FPx0@sirena.org.uk [1]: https://lore.kernel.org/lkml/20260313122808.GAabQC2Bmul9Odt-dX@fat_crate.local Hou Wenlong (2): drm/i915/gvt: Rename struct 'pixel_format' to 'gvt_pixel_format' drm/amd/display: Rename enum 'pixel_format' to 'dc_pixel_format' drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_spl_translate.c | 3 ++- drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp_dscl.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c | 4 ++-- drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h | 2 +- drivers/gpu/drm/amd/display/dc/inc/hw/transform.h | 2 +- drivers/gpu/drm/i915/gvt/fb_decoder.c | 6 +++--- 8 files changed, 14 insertions(+), 13 deletions(-) -- 2.31.1