From patchwork Mon Jan 22 17:42:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10178953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3413D602B7 for ; Mon, 22 Jan 2018 17:43:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20C5E26E54 for ; Mon, 22 Jan 2018 17:43:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1577327FA3; Mon, 22 Jan 2018 17:43:12 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 887E126E54 for ; Mon, 22 Jan 2018 17:43:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 088416E26B; Mon, 22 Jan 2018 17:43:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yb0-x242.google.com (mail-yb0-x242.google.com [IPv6:2607:f8b0:4002:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id C0D066E26B for ; Mon, 22 Jan 2018 17:43:08 +0000 (UTC) Received: by mail-yb0-x242.google.com with SMTP id w3so1036138ybg.0 for ; Mon, 22 Jan 2018 09:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t7+DQAif5K08wchKtrBFT++OMcyVZpa9gPLpzfs2jc8=; b=hAwV0LCoCzIFWWZXNqD+y4dTFskYqBTYOlb6fKMyQU5MFA33GEVVhIJvMXDZfwi5Ph ahYZqxyGuk6YwfFRQpZv9WwzmbLAZGN4RCT2htM94cYlR0bQnX6sbpLS8OY1DOVlh+W/ 2rDwv+1TIMLsupDkm377mWf1B/dmLOA8N5Jb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=t7+DQAif5K08wchKtrBFT++OMcyVZpa9gPLpzfs2jc8=; b=f62p2QKFQXgwnflPmS68vn5gDne0TpxYv9ZTw+vNuozXki3gREnGJIsmblUQ6JY4l9 UraN1wgNrGpexqXu1Jg4ubUCKFxvVf5+VsJQ/tXQKDKBC5Uykpt6IKjUEvI43aBRKtYH 7nW3omrxAV9HOkUKQRTJRXJ5rfvJ7+ynyC0OhOy0QWHSq9dar9fiFDututp1GrCMy4LU gJ4puzLVQVWkorQHv0NO2T3KjCHdkV5+o/9bbia+TUOpmKRYpRKUTVrUBnb8TXXOJNGs Xj9F+D84m7UqGxT4TrtclWxQ8RCnALy/pDSNHF1j3AX4oGVGRfxr6bE/0PmLCFzud5tR z69A== X-Gm-Message-State: AKwxyte33BdOjN82hfki75BgrabWnoB8FBhzBk6GKOZcwE6z1nfB/3W7 Xfcw3dfos8vgIK7EfifZYDCcNzKphGs= X-Google-Smtp-Source: AH8x227iipFihgOxgJrOR/NlALGdkST8br10d84bMb553j9GyFdmYSS2y6xijl8qf8aE63SuObcOtg== X-Received: by 10.37.107.78 with SMTP id o14mr8337663ybm.257.1516642987922; Mon, 22 Jan 2018 09:43:07 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:d3af:69ac:1964:28e8]) by smtp.gmail.com with ESMTPSA id l142sm1538621ywb.42.2018.01.22.09.43.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 09:43:07 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/sun4i: Fix build warnings in sunxi_engine.h Date: Mon, 22 Jan 2018 12:42:59 -0500 Message-Id: <20180122174306.231609-1-seanpaul@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog MIME-Version: 1.0 Cc: Chen-Yu Tsai , Maxime Ripard , linux-arm-kernel@lists.infradead.org, Neil Armstrong X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following build warnings: In file included from ../drivers/gpu/drm/sun4i/sun8i_mixer.h:18:0, from ../drivers/gpu/drm/sun4i/sun8i_vi_scaler.h:13, from ../drivers/gpu/drm/sun4i/sun8i_vi_scaler.c:12: ../drivers/gpu/drm/sun4i/sunxi_engine.h:36:16: warning: ‘struct drm_crtc_state’ declared inside parameter list will not be visible outside of this definition or declaration struct drm_crtc_state *old_state); ^~~~~~~~~~~~~~ ../drivers/gpu/drm/sun4i/sunxi_engine.h:53:15: warning: ‘struct drm_crtc_state’ declared inside parameter list will not be visible outside of this definition or declaration struct drm_crtc_state *state); ^~~~~~~~~~~~~~ In file included from ../drivers/gpu/drm/sun4i/sun8i_mixer.h:18:0, from ../drivers/gpu/drm/sun4i/sun8i_ui_scaler.h:12, from ../drivers/gpu/drm/sun4i/sun8i_ui_scaler.c:12: ../drivers/gpu/drm/sun4i/sunxi_engine.h:36:16: warning: ‘struct drm_crtc_state’ declared inside parameter list will not be visible outside of this definition or declaration struct drm_crtc_state *old_state); ^~~~~~~~~~~~~~ ../drivers/gpu/drm/sun4i/sunxi_engine.h:53:15: warning: ‘struct drm_crtc_state’ declared inside parameter list will not be visible outside of this definition or declaration struct drm_crtc_state *state); ^~~~~~~~~~~~~~ Fixes: 6b8562c86e24 ("drm/sun4i: engine: Create an atomic_begin callback") Fixes: 656e5f654903 ("drm/sun4i: engine: Add a custom crtc atomic_check") Cc: Chen-Yu Tsai Cc: Neil Armstrong Cc: Maxime Ripard Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Sean Paul --- drivers/gpu/drm/sun4i/sunxi_engine.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sunxi_engine.h b/drivers/gpu/drm/sun4i/sunxi_engine.h index baa7a1f95300..d317ea04b8aa 100644 --- a/drivers/gpu/drm/sun4i/sunxi_engine.h +++ b/drivers/gpu/drm/sun4i/sunxi_engine.h @@ -12,6 +12,7 @@ struct drm_plane; struct drm_device; +struct drm_crtc_state; struct sunxi_engine;