{"id":26399,"url":"https://patchwork.libcamera.org/api/covers/26399/?format=json","web_url":"https://patchwork.libcamera.org/cover/26399/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260331234644.14654-1-bryan.odonoghue@linaro.org>","date":"2026-03-31T23:46:42","name":"[0/2] Import drm.h and drm_mode.h for egl.cpp to use","submitter":{"id":175,"url":"https://patchwork.libcamera.org/api/people/175/?format=json","name":"Bryan O'Donoghue","email":"bryan.odonoghue@linaro.org"},"mbox":"https://patchwork.libcamera.org/cover/26399/mbox/","series":[{"id":5861,"url":"https://patchwork.libcamera.org/api/series/5861/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5861","date":"2026-03-31T23:46:42","name":"Import drm.h and drm_mode.h for egl.cpp to use","version":1,"mbox":"https://patchwork.libcamera.org/series/5861/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/26399/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 11A79BEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 31 Mar 2026 23:46:47 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4F5AC62D30;\n\tWed,  1 Apr 2026 01:46:46 +0200 (CEST)","from mail-wm1-x333.google.com (mail-wm1-x333.google.com\n\t[IPv6:2a00:1450:4864:20::333])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 95AAA62CC7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  1 Apr 2026 01:46:44 +0200 (CEST)","by mail-wm1-x333.google.com with SMTP id\n\t5b1f17b1804b1-48541edecf9so75515085e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 31 Mar 2026 16:46:44 -0700 (PDT)","from inspiron14p-linux ([109.76.57.51])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-4887e80a6ebsm83000225e9.6.2026.03.31.16.46.42\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 31 Mar 2026 16:46:43 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"KQgUNKpB\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=linaro.org; s=google; t=1775000804; x=1775605604;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=BM0IoLl3kJB0y+blni9sT4HE+Xxe25KboaMlrGlUIM0=;\n\tb=KQgUNKpB8VBU6rwt7YJuMid/hJkhzrzBWbvO576dFamMZi3hLFUqfNhpdkabOZKLrB\n\tRQVurBZG9WLQ93yTSbsXH7PhvzTf5elkLOBRE+fHsIBpBikSYePSm2VUo8fJvxFlZR1t\n\tjGr7ghMLvWlqPW6Zitls3MusYqmTWMo0V7CnEThBs1dMuxa0DLzYGKLBIvAQ6mg/kpLh\n\tXA1odd/umwbB6MFxrNHWkMEEfwRLZmDOV2O+Y5XVymQdSG40EbWuxgZwMux76n0yh8VL\n\tD2CJOpAZ7FGqMd7X06+D83yqQEE0EX/rINF4c+lAxdpxLh7jg6ABsF9LB5z7Tve+wzRW\n\tCvag==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1775000804; x=1775605604;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\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ytfqP6h6H7ekgov7jfWeuLi04Pj/\n\t2jjRfzSMi1+WDkJRBvdUoJemAsnmCE8+QrFIQv","X-Received":"by 2002:a05:600c:1388:b0:485:379b:57bb with SMTP id\n\t5b1f17b1804b1-48883569e7fmr21858255e9.3.1775000803705; \n\tTue, 31 Mar 2026 16:46:43 -0700 (PDT)","From":"Bryan O'Donoghue <bryan.odonoghue@linaro.org>","To":"libcamera-devel@lists.libcamera.org","Cc":"bryan.odonoghue@linaro.org","Subject":"[PATCH 0/2] Import drm.h and drm_mode.h for egl.cpp to use","Date":"Wed,  1 Apr 2026 00:46:42 +0100","Message-ID":"<20260331234644.14654-1-bryan.odonoghue@linaro.org>","X-Mailer":"git-send-email 2.52.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"As reported on IRC by \"zipwax\" egl.cpp inadvertently depends on libdrm for drm.h and\nfails to add the relevant depends to meson.\n\nThis series imports the headers directly without changing indentation for\nlibcamera's checkpatch which I assume is kosher for this type of\ncopy/paste.\n\nOnce done we include linux/drm_fourcc.h in egl.cpp where drm_fourcc.h\nrelies on drm.h and drm_mode.h.\n\nBryan O'Donoghue (2):\n  include: linux: Import drm.h and drm_mode.h\n  egl: Switch to linux/drm_fourcc.h\n\n include/linux/drm.h            | 1468 ++++++++++++++++++++++++++++++++\n include/linux/drm_mode.h       | 1370 +++++++++++++++++++++++++++++\n src/libcamera/egl.cpp          |    3 +-\n utils/update-kernel-headers.sh |    2 +\n 4 files changed, 2841 insertions(+), 2 deletions(-)\n create mode 100644 include/linux/drm.h\n create mode 100644 include/linux/drm_mode.h"}