From patchwork Sat Jun 22 12:11:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11011291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52D276C5 for ; Sat, 22 Jun 2019 12:12:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42AF728B8E for ; Sat, 22 Jun 2019 12:12:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3703928B9C; Sat, 22 Jun 2019 12:12:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D085528B8E for ; Sat, 22 Jun 2019 12:12:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 407666E975; Sat, 22 Jun 2019 12:12:07 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3995389590; Sat, 22 Jun 2019 12:12:06 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id x25so8344584ljh.2; Sat, 22 Jun 2019 05:12:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=2muccE2IaGSs+OcGOZD7uoYnZzoAmmUCqNodwBIQe/4=; b=omveXKx9YFcL92LoQnYjacvfw5PrDysHn8pWLc2jbW8d93fD5Ss8/Xl/SC+Nw51S26 EHTflmU5rMlmL8ZB5pMynaFYUakhk3WcTVp49w1Epm0MqUesx9oT1/Z42PU2eUQzBKdC eFel/uEQ8NLAFfUQKSZ8P7FPjYUe1jtCIQlGOAgzGyN/frV6vO7O2MBTma0WKgjGQDra 8nP6zQCqMKNdKUCb1K7dU218PzXVhTOnsPMcE/eoDOkGRh7ov8A1XOwIILCp82QJgqID mUVWn7cTs71b59tFfQl8pF98Skk6x0WAfypIg37LBITm+IiR8pJE4aYZdrppZAIEBIP+ oZWA== X-Gm-Message-State: APjAAAW/EW9Q/SiB/pKFd1PbQaSMYFK5U/EBn+ivj1hd/dqYFUOS5Fbj pWeamLIKMlV/rU275GXrJm0JNOK8WDO54Q== X-Google-Smtp-Source: APXvYqxE00sGSu9W0fuFsPTc38PAEf4h6ueWRuCXS9TmZ0ctwMIg2R5gYC9saDV2gR4zaXbxzPKqfQ== X-Received: by 2002:a2e:8613:: with SMTP id a19mr14423342lji.163.1561205524386; Sat, 22 Jun 2019 05:12:04 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id k4sm816910ljg.59.2019.06.22.05.12.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 22 Jun 2019 05:12:03 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Date: Sat, 22 Jun 2019 14:11:55 +0200 Message-Id: <20190622121156.17217-2-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190622121156.17217-1-sam@ravnborg.org> References: <20190622121156.17217-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2muccE2IaGSs+OcGOZD7uoYnZzoAmmUCqNodwBIQe/4=; b=Z3tCShYVg6/DThvw8zbzqKqcmvw/jnn+anCZDjOtjONGaXX6tvNATgD7K5dYEchJAk 3mzsIOHB9QkWxW3zUyiWlefLBKLXAyVVT04npMtCwb7gr/zMW+epNdbW5jh40wzoKGBI ilTQQkL6rGVf7mZKQ75hNiNj9ZtuopGqlS39ZIj25ptstIh48qPPy6pCdDBTtoCAASzq 1DAwc1uY+AnZsR4nHlonLkhD5X0pSh3eK6S2XKm/EoKpEf52oG8Mzpxpca1NK5bAa526 t2+l9TnJ3t8oJiXDegHuhkUP9yMusNEaD8w/T6HvewrEFt1Z+aVyuga5gIGj0q+nzzSP KHeg== Subject: [Intel-gfx] [PATCH v1 1/2] drm: drop uapi dependency from drm_print.h X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , intel-gfx@lists.freedesktop.org, David Airlie Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP drm_print.h used DRM_NAME - thus adding a dependency from include/drm/drm_print.h => uapi/drm/drm.h Hardcode the name "drm" to break this dependency. The idea is that there shall be a minimal dependency between include/drm/* and uapi/* Signed-off-by: Sam Ravnborg Suggested-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_print.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index a5d6f2f3e430..760d1bd0eaf1 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -32,8 +32,6 @@ #include #include -#include - /** * DOC: print * @@ -287,7 +285,7 @@ void drm_err(const char *format, ...); /* Macros to make printk easier */ #define _DRM_PRINTK(once, level, fmt, ...) \ - printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__) + printk##once(KERN_##level "[drm] " fmt, ##__VA_ARGS__) #define DRM_INFO(fmt, ...) \ _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__) From patchwork Sat Jun 22 12:11:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 11011297 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E3FB6C5 for ; Sat, 22 Jun 2019 12:12:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D6EC28B8E for ; Sat, 22 Jun 2019 12:12:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01C5628B9C; Sat, 22 Jun 2019 12:12:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BCECA28B8E for ; Sat, 22 Jun 2019 12:12:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C1D136E97A; Sat, 22 Jun 2019 12:12:12 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D0546E976; Sat, 22 Jun 2019 12:12:07 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id z15so6825761lfh.13; Sat, 22 Jun 2019 05:12:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hy/RCcVn7OgplBAaYGm9nMY04TO7rRA6fuPGx0/scCg=; b=Gx7k60ODEgr+5C+rLqjR4fGpuBz2JoFhYyRe3dJhi6fhJtDHREn13KdCb3AVoIcc6h ktW1MmouRVtH9wdOo+Z9kM5TOJsTjsnB5G1KltgWx/7wQGdE419j1rd7OW5nahs273p/ TzxHh98CRXZesTBKWM3zUGhjq6aTi/Kb8L+WKn5HC4EEPc9EIExocYsQVBhU6OmBKh1I aV1XPqcHXwmi4lqRjaiQ+nvUnuTAqI3rl0t6lDmTJaZuZtr19zbvNDifSpd7ITmtiufv SVRSUDhmJkXNb1urXZV+R3b9joEQh9v99eACQ1TMRuJlwyatYXa9SX3dAqKYt0EOu0Rp 6lTQ== X-Gm-Message-State: APjAAAU1jAjHj4V/HM5csLgoTJO0KIq8YtMe/Wz/yPRzuVU1ZWXq0Ktk CZiT8z3Jy+kbrWatguSXOyKDt9+zklkj1w== X-Google-Smtp-Source: APXvYqz0fBG9cKgzCcJG79syFZuVUcncD6uksSp8UUxQ+aRE27eaKLGDL2c+4vKSpfg5LJVKS6QxPw== X-Received: by 2002:a19:e619:: with SMTP id d25mr27486449lfh.34.1561205525468; Sat, 22 Jun 2019 05:12:05 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id k4sm816910ljg.59.2019.06.22.05.12.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 22 Jun 2019 05:12:05 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Date: Sat, 22 Jun 2019 14:11:56 +0200 Message-Id: <20190622121156.17217-3-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190622121156.17217-1-sam@ravnborg.org> References: <20190622121156.17217-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hy/RCcVn7OgplBAaYGm9nMY04TO7rRA6fuPGx0/scCg=; b=bs+iXcruPckX3t0jwk61NZlQD29C2b91SoeXECBmS+byO31nkBVuS3/X+t3dh2jVj+ EuPzYMuRKM+mCutVI4PtCa1Arg0+QDOpgujDJGcbD/b+n7RoZGYwTBtAwkcadTpDIffV GrUcGStCv0pg6n9ZsKEuE+sitdSIKS/P9ySwwX96ay6o1AJ9bYny+4OlTLf+avAIrKAT 4k1pwxpIodVgtnRm/+z7sTWK/4yCeyzYr/a3DsRSXZX4g7jOlfItoT79mytTDlH19OQ1 zIiKObLjBLC+/XHw4fDkBbK9uBR/fv1wWX4A43iG5PMP64H2OGo9tKPhzEtGFoqeKn/Q aSyw== Subject: [Intel-gfx] [PATCH v1 2/2] drm: drop uapi dependency from drm_vblank.h X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Sam Ravnborg , intel-gfx@lists.freedesktop.org, David Airlie Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP drm_vblank.h included uapi/drm/drm.h. It turns out this include was not required - delete it. Note: uapi/drm/drm.h is included indirect via drm_file.h, but there are no dependencies in drm_vblank.h so the removal is legit. Signed-off-by: Sam Ravnborg Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter --- include/drm/drm_vblank.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/drm_vblank.h b/include/drm/drm_vblank.h index e528bb2f659d..9fe4ba8bc622 100644 --- a/include/drm/drm_vblank.h +++ b/include/drm/drm_vblank.h @@ -30,7 +30,6 @@ #include #include -#include struct drm_device; struct drm_crtc;