From patchwork Mon Nov 9 21:18:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320979 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000238ejb; Mon, 9 Nov 2020 13:19:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrg/PO3EKJKfadENLqJwyVVltmuw3JcxPeWSLLrcZgU/A4KduPAWN5tt+F7Py6dcQYWDa1 X-Received: by 2002:a17:90b:3648:: with SMTP id nh8mr1108276pjb.27.1604956755849; Mon, 09 Nov 2020 13:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956755; cv=none; d=google.com; s=arc-20160816; b=aKysqdStYlrw8oRZIb0s8AKgERXlTb1tnUIJnv5XbE5OYmnp83pBZPSA9myFCCmdW8 /Tatrm+/FIoDieGc2CuOHZPITKId7zLpsbrlIrA0Mx0Sg3DvnnXmNvmsurXzH5mnVyfM NONVVlvRVBv3RTZ2Ve5tIn8Ge9/pCwd87aNZ82Xg6cE8Q8bOQpdIqp6t/NEc+85lWCQe BMyDzV2ZaJF8JIJiZaNmWpRG8rWIy3JPeuWPkpVXK4jXDsErAcA9V7pTYvAdziLVQFK8 b1wdBTLz9+BrABKEUGq7i7TZuwcwTuewE84zuTGXvTLkBYdh6QJag4svh+WSOnFdKQ2B p1Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=0V6W509i0PPnr+wRwvV6bdqjggnMZD+xOoOaPUjBqjU=; b=YFF296dQSTGn0LFIuigHD/V/pOsfFmqpCKHlPCKB+XdMbkky5y1K3vIH4Ci7P2SGF4 GMHnXY33iJIAsOHb/Pkkw9x5XSYJ13VcIH0oDMOaEd47pPXMjOsulsdEAej72aB8nkC+ lgcojHr+izWXvQ3fDCx8UQ6BYCmyY1eKnA0FupZ4z4pV1gtWof1yGDV/L6GEp9+b452o wfcECTWehV6cu1vmmn63MdzCN845PMQZdlKY6lmxW1N7KfP9UqKd9eWyfkha32Glsu6u ziE/MTjOh6Ykx11uNuW2F62YYaK83J/GiCazQCQmYWXoCgsJyZpiaMROlxpy6mk1p5Gl uAGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rnIwaAtc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id g11si9907245plj.53.2020.11.09.13.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rnIwaAtc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 436D18958E; Mon, 9 Nov 2020 21:19:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id A051C89598 for ; Mon, 9 Nov 2020 21:19:12 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id o15so2542190wru.6 for ; Mon, 09 Nov 2020 13:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A+pA8ZHZ/BWRZ/+5idjB7jAn1iVLFLVHhzg6ecfAKK0=; b=rnIwaAtcMH8I2ZxIUoGWsSl6kKjHPDJJrShyAVuGGXNBBDSIsump85D8GU4POVebMN E1L8xTS69PO2A8bD7eNCLX1g2XSl+7BuiBQOD/qhy+xQod6/Q8/Ef7akcS/Jtzzrm61R 9c2sGZxrqEZ1+XxS7jIAj6abpTvKU9oCNdXo4u6GnbxzmQkOQFukaOTpLHoBacS7XwuP GQvsqcIDdgOqdqoj4ibSXlHmHb3CgUGENsNWH845TfYVrbh1zjrnx39FoMVR7dC0FQS+ L3SNZRoVvGLdM5finrmbU6TJiCv4M9wW5PsZ2yDhmovVUU9POtXHWjZWnrXwCkw+MhSp 16Zg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=A+pA8ZHZ/BWRZ/+5idjB7jAn1iVLFLVHhzg6ecfAKK0=; b=IwmY7tZeMZMLmvKQ4+TWb3WwQ1BRm9VOAj14gHEyzTByHNvPcJIZqGcZT/ZpbqU+in LBR3TWI3HEnq3F+omuE1ofVVK1mkzlMIpxBID6gT+tBuW/RyPKT8bpD0lgEwxr2QjgO0 /67Yl/IzvJffJ2seln2O1hkehl/kUBJQ+mvG6NY20qUhtjj//cRYkmvuIypwct5X5pCQ U9O5JCLAf39Nv2QCC4ra29AwFITjpjEN/YrajvtttIhwCVbEgGyEpRrpJUZNhzxoL2fH htMVJGmldEUtw+VHybGLxya3uUiU1WyeokfcB2h7ZtE023g0PkhSJt5ygRENt5Oeumj/ gN1w== X-Gm-Message-State: AOAM533uEc/cLo+6U9GkaeP1hCAcXtkTagoRpSIg3ZoGA/EWdfGLfzmF ClKIxOVXDqJSIQmFsAh7T7+f/g== X-Received: by 2002:adf:93e5:: with SMTP id 92mr20405072wrp.421.1604956751344; Mon, 09 Nov 2020 13:19:11 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:10 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/20] drm/radeon: Move 'radeon_add_legacy_encoder' prototype to shared header Date: Mon, 9 Nov 2020 21:18:39 +0000 Message-Id: <20201109211855.3340030-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_legacy_encoders.c:1745:1: warning: no previous prototype for ‘radeon_add_legacy_encoder’ [-Wmissing-prototypes] 1745 | radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, uint32_t supported_device) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon.h | 2 ++ drivers/gpu/drm/radeon/radeon_encoders.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index a0c2497cd4cf4..0cc8f081e113a 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -2817,6 +2817,8 @@ extern void radeon_wb_disable(struct radeon_device *rdev); extern void radeon_surface_init(struct radeon_device *rdev); extern int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data); extern void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable); +extern void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder, + struct drm_connector *drm_connector); extern void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); extern void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain); extern bool radeon_ttm_bo_is_radeon_bo(struct ttm_buffer_object *bo); diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index ced022fae19d7..3e342fd812ff4 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c @@ -33,9 +33,6 @@ #include "radeon.h" #include "atom.h" -extern void -radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder, - struct drm_connector *drm_connector); extern void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, struct drm_connector *drm_connector);