Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3336204rdh; Thu, 28 Sep 2023 08:47:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFad3z+3OcAqNFOJC5ap1Z/15unQhcJ8fe9/PwgG2HAWoeZUjeTHJE9gtWk+0H6y0TUEahm X-Received: by 2002:a17:90b:144:b0:271:80f2:52bd with SMTP id em4-20020a17090b014400b0027180f252bdmr1404489pjb.35.1695916068841; Thu, 28 Sep 2023 08:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695916068; cv=none; d=google.com; s=arc-20160816; b=ot8H81CdZNEBNGP4qaenq6Vma3hSkVhQ2emEms9nxZAcR3fMLFVOx4VMihxv9jDY/c 5pFpGDmfJKPpewOPfXQpGn8+/UoxGrNMBb+X4Z+uBRX38RL4N5pV3/7Dyw7RSvKcGeQx QOG946VZ4spHoD2+eT3KF+GCB1JwDNkubvgbthUbeR54o6o2HtxsvJKH6e2jxwzuUN9Q Qujj76eofwqCCjertPt77mx2AsAAoyQToyNmUL6yfNfEvUrbDtlpy3a9pcJSt5tVEjoI nAYuNTHDAFYa0K3JT/f0YyqgyM2v7a5i8J0ae363xYVIdHTt+CVm8IeO4GyxDwDxBvM4 yrrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=vlVjyuA5Jltdw/SqabubAzoPUveayAjZ6xlaDEiRO8g=; fh=r5qJeyrJhRS4dD1MVNfPDQn0u4Mi2pH+f9yrqVHirLM=; b=NnQzY/p4L177ndeBx3DAVA8JaWRo4h3/X1vrpzzNTK7Ftj5i6bjTdbNpmV2xagyEQl mfsNz5ZKOXxR1jmJDIVsz8KM0ffoMyd/Ptft2bD9e/Wfeqgm+qU9YjBe74C1D2xzDBgv KayX4PDi/pFdE+Qz6aNylVynzdLNgBbxVyI1nUzIPVHFOUk9aUWTSQNcUmo8CuJwETit 6cc3sfovd9t+AH+wCAWRoltUZTtaQ80tPNACgN4n+/XDC+8sIG0buGXYwQ8xAYYdJxl4 Qo7ZAK72fH8minV+w5e9BsIp/IFq/23HviFTpAKja9QktIE3vjpOcHLMKiDF2fr1qAA6 NrzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id m11-20020a17090aab0b00b002749baa2edesi6590626pjq.24.2023.09.28.08.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:47:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EB8418125FEA; Thu, 28 Sep 2023 08:32:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbjI1PcW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Sep 2023 11:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231332AbjI1PcV (ORCPT ); Thu, 28 Sep 2023 11:32:21 -0400 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0B4BB7 for ; Thu, 28 Sep 2023 08:32:19 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-59f82ad1e09so100256457b3.0 for ; Thu, 28 Sep 2023 08:32:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695915138; x=1696519938; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+8psAnvOZtbpDP4SLRmyJgzcjZciiw8nZc/0KRaOzIg=; b=ZHbT6UWoFyLPcLf8Q6gVail7CU+EclyBEGCVkuQNrxHljXHasbFk3boCiKCpxTmD2o i9cVHxBILUdTjHoNlm/S9ebYFtBjCNWTwbT8wCgS33keE/AofM0MlWBs3+pvJQymu61j ZAJd4CYikojmiRTAN5xFDUPtr4APXQ6gNUFfh0D8oTkJWmrC8ZS0hWyRix1XEcbtZL59 cjBi4S+bKBR5PDF/Tjn5qexVsmj1Tjp2vbkbItIchh7vCZiCx+7TIibr9mfTVpLp1WiU CO8tRgiVMNbC0ykbbdrlAe+MC7QiuRDEfyBQ+ncTZc3rsfg1VSXhwh01FJprjmJ+ktUF 2tgQ== X-Gm-Message-State: AOJu0YzdLXZiTRhSN+Hp2CqFZ1T7L5N+q2JZ0uhniqr4q+IJgiLR1OK7 MqEZaPLdznXwkMlgkoqH4ZOZlIBL3RnDoVKe X-Received: by 2002:a0d:df82:0:b0:59a:b7b2:5f02 with SMTP id i124-20020a0ddf82000000b0059ab7b25f02mr1691034ywe.18.1695915138564; Thu, 28 Sep 2023 08:32:18 -0700 (PDT) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id x187-20020a81a0c4000000b0058c55d40765sm4609709ywg.106.2023.09.28.08.32.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Sep 2023 08:32:17 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-59f6e6b206fso111172467b3.3 for ; Thu, 28 Sep 2023 08:32:17 -0700 (PDT) X-Received: by 2002:a0d:d68e:0:b0:59b:f152:8997 with SMTP id y136-20020a0dd68e000000b0059bf1528997mr1733560ywd.0.1695915136921; Thu, 28 Sep 2023 08:32:16 -0700 (PDT) MIME-Version: 1.0 References: <0f0eae276da4f8ed44cd1a15ffa138879d27b148.1695903065.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 28 Sep 2023 17:32:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH/RFC 3/3] drm: Split drm_modeset_helper_vtables.h To: Thomas Zimmermann Cc: Maarten Lankhorst , Maxime Ripard , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:32:34 -0700 (PDT) Hi Thomas, On Thu, Sep 28, 2023 at 3:59 PM Thomas Zimmermann wrote: > Am 28.09.23 um 14:16 schrieb Geert Uytterhoeven: > > is the second largest header file in > > the DRM subsystem, and declares helpers vtables for various DRM > > components. Several vtables contain methods with the same name, and all > > but one vtable do not fit on the screen, making it hard to navigate to > > the actual method one is interested in. > > > > Make it easier for the casual reviewer to keep track by splitting > > in multiple header files, one per DRM > > component. > > I never liked this header either, but do we need new header files? Each > struct could be appended to the end of the regular header: struct > drm_plane_helper_funcs to drm_plane.h, drm_connector_helper_func to > drm_connector.h and so on. That would work for me, too. But perhaps we want to maintain a clear separation between core and helpers? Note that moving the contents to *_helper.h would be another option, drm_crtc_helper.h and drm_plane_helper.h already exist. > > Signed-off-by: Geert Uytterhoeven > > --- > > RFC, a future patch could replace inclusion of > > by inclusion of one or more of the > > new files, and reduce compilation time. > > --- > > include/drm/drm_connector_helper_vtable.h | 364 +++++ > > include/drm/drm_crtc_helper_vtable.h | 483 ++++++ > > include/drm/drm_encoder_helper_vtable.h | 381 +++++ > > include/drm/drm_mode_config_helper_vtable.h | 97 ++ > > include/drm/drm_modeset_helper_vtables.h | 1466 +------------------ > > include/drm/drm_plane_helper_vtable.h | 297 ++++ > > 6 files changed, 1627 insertions(+), 1461 deletions(-) > > create mode 100644 include/drm/drm_connector_helper_vtable.h > > create mode 100644 include/drm/drm_crtc_helper_vtable.h > > create mode 100644 include/drm/drm_encoder_helper_vtable.h > > create mode 100644 include/drm/drm_mode_config_helper_vtable.h > > create mode 100644 include/drm/drm_plane_helper_vtable.h Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds