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: 10178955 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 0F760602B7 for ; Mon, 22 Jan 2018 17:43:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFEA526E54 for ; Mon, 22 Jan 2018 17:43:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E47A127FA3; Mon, 22 Jan 2018 17:43:25 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7356626E54 for ; Mon, 22 Jan 2018 17:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ADN2TxrmChoKFuD+yEJkUl0hybyXziaSam34Wzw4bNg=; b=AF9k6sYkVEwMG3 s/6OGlirEEQoHN6C1sUZ0RJtuWe82AMziQDpET6VaHyqMeHsGwimjY8FWisMJMN27vOzEmF5qR3kF 8wevIrtV4dlzDexhQ5abFKZqTay8lBMR7mLf/tJITacUumprZUhMJ7BQJSovIIxcTLO1yozfRUIrb JplTj9QAA3Bv9t3KHrSv9aBfP0EVMGZLtC6Ge+bbqgv/jbCqNRS1Vsz+ZSdze9NE2M0YhRk5YkSHA xOY58VgKLU+ixUZOfJvpfQ2NSN0XvVu2kP/6+w8Qs+ju44mThOtHMxTzGzMtDuMi+cb73mhX0KwCk BICw+pKVsC0rZGKbQxcQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1edg7u-0008VI-Ji; Mon, 22 Jan 2018 17:43:22 +0000 Received: from mail-yb0-x241.google.com ([2607:f8b0:4002:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1edg7r-0008Uc-HA for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2018 17:43:21 +0000 Received: by mail-yb0-x241.google.com with SMTP id u35so3542990ybi.1 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=Jp7/nSilyryDUxP5BcVAmgmMj62gHXHVcPJtMg7daeuMvYCQrERohNcBvsWn+wd3Dd /0k4lkILK+gbV+b1ISBHrtFLvGz8dbx9ObYOVdDdlzy7BJpld8Nwzx4tFBSxG6WLCDR9 jjm9mUtPSnijYh9IIBQPZE87afpvqvVg/6dlTI3hK2+WwPH69g6dpaq84s/Sefp2z9Oj layYIdZhjQE3QJbwh7137FRqmY6fI6LKIs14taCIAAkseCC5xD6MAW+GFUANbHjeXNQW g7IS0YL/H5q4HVTvcRdyKKzZZmvMequtI0pExT8dpliLpKvVndXN+FcmaprSFxAEF2Yt JKCg== X-Gm-Message-State: AKwxytcv2l6sRbQi9t9mgLzbvrBOixCIDbyUvkH/8xGh4F2S149OK4xY CBRQvwsGWTkjZjEWroVnSTxXtw== 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chen-Yu Tsai , Sean Paul , Maxime Ripard , linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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;