From patchwork Tue Sep 13 12:17:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76064 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1331709qgf; Tue, 13 Sep 2016 05:18:18 -0700 (PDT) X-Received: by 10.66.131.111 with SMTP id ol15mr732180pab.105.1473769098227; Tue, 13 Sep 2016 05:18:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si27373813pax.93.2016.09.13.05.18.17; Tue, 13 Sep 2016 05:18:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754866AbcIMMSP (ORCPT + 27 others); Tue, 13 Sep 2016 08:18:15 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33620 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbcIMMSO (ORCPT ); Tue, 13 Sep 2016 08:18:14 -0400 Received: by mail-pa0-f53.google.com with SMTP id cm16so61387470pac.0 for ; Tue, 13 Sep 2016 05:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=aUfH1MulYNVCR6AuSU1pixUt/BlzvxcBOhZuO0c6KJw=; b=HdzES4JwChn44hFDzC2C9yEMSBebQDSWscGVO6FoW24aG/GRt3op5/yNhwcZAhXKju EERkzR4YrGGX034y7YIVdR95AC8skaQs9JYFWlR4x5AafRs+DHQbbYq20+ykeDxgwKeQ SXHWfkVSR3H4hoYHvTmc+htVltX9HDX0nwISk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aUfH1MulYNVCR6AuSU1pixUt/BlzvxcBOhZuO0c6KJw=; b=fzhKxGervg2qn8NoOrI+6E4SsmFVvdNw1yhU3/bwJdW08/E/ephiIhraFBuF1AXT0u tuxqKitZ5NTZbC6znDMa43dRXZH2SIU7X+OVuMtH6WYCKPCIkVYVwIlPFRO33tKfjjxt ePn7JNUZb0dQtDYtBkEyzU5XL+pPpRXPunGotaKezgWGl0G5/9Pc9fuZuuOKQgcr2mKT eyVRtg4CfiVnP+qUHcZ0fNGhW51Q2CuPPNI9j252iYbrg83xJLwN/K52ziCgg/1Fp2Dl g5C0id6SQi0kJMH3mGKCNpUODtBaUIgCAEbNvNEvFi9l+02/EW8eB3nCKfrm+io57zcQ 4h1g== X-Gm-Message-State: AE9vXwPDsQ3NiDYc2rBCEsVDWcY/RWRj5WQQqFqPYnEG47TUHABT5BAqPIVTI7Dd287r64Sl X-Received: by 10.66.183.206 with SMTP id eo14mr783155pac.146.1473769081743; Tue, 13 Sep 2016 05:18:01 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.182]) by smtp.gmail.com with ESMTPSA id t21sm30934242pfa.71.2016.09.13.05.17.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Sep 2016 05:18:00 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/nouveau/disp: remove unused function in sorg94.c Date: Tue, 13 Sep 2016 20:17:32 +0800 Message-Id: <1473769052-9158-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c:49:1: warning: no previous prototype for 'g94_sor_output_new' [-Wmissing-prototypes] In fact, this function is called by no one and not exported, so this patch removes it. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c index 1bb9d66..4510cb6 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c @@ -45,14 +45,6 @@ static const struct nvkm_output_func g94_sor_output_func = { }; -int -g94_sor_output_new(struct nvkm_disp *disp, int index, - struct dcb_output *dcbE, struct nvkm_output **poutp) -{ - return nvkm_output_new_(&g94_sor_output_func, disp, - index, dcbE, poutp); -} - /******************************************************************************* * DisplayPort ******************************************************************************/