From patchwork Wed Feb 13 08:47:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 158198 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4802884jaa; Wed, 13 Feb 2019 00:47:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IY/CZF27c7rFwVmH+azsZF0An5uMjd3sPhBFvdJGxOZHVgPUeRZ+F5PfLXb/Z9L4m8dWxbx X-Received: by 2002:a62:3603:: with SMTP id d3mr8782127pfa.146.1550047650078; Wed, 13 Feb 2019 00:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550047650; cv=none; d=google.com; s=arc-20160816; b=uLTf0mxOIXpJjmaW3XSB2lNUQx9NQ5FGrAs3i53JLIjTiyTXdQcFRleoWUp09eSC8a 0lwtVMgZkFBk1tvHYvlZIV8hFeDddigkqNXSEvkhZQdzCTrgsFUycxzr680Q7gpZ8Jpr z6EtZ2Pm5l3RG2WsKPPfOAMgEYO5yUKn1vhBb+yexMCCMuj+QmXlicWpFGLUmSLYeqMi d1VFT8/k3iDfuZ9vvFDDCEmjJpKiAQh/xaXFY/tFI33qAiZ9YUnckpWQRPCSXkdhmt3A Ars04LBf8KqJvPTHdRKAOY4n6Lh5TjPWgwlmyBEg0oNrqp0PRLQelCFvw6Wxe3k3Lerp 0O7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bQKwEsId6JLgTtjw3Rjr7HrL/WSfNzzQCt6QFtE+6CE=; b=YdhSBDoqbi7CRaETLR7lZkBqWVPX8wzUqDKsXahDMcrMrCl8yZMc+wZJHuxSvQJps7 nzkzpRUf+YgrQcPTBqGkb4YYX9CwWZp0GE3f2tLfzq5dT2VqmCabsm9U6hAHTHeIUFcX E8Z0XqOQP185uyOxvvNB/qLxqBg4FYTsztS32+q6+hdC+/WdPfZ7w5iUHqoRysp4OOag uq+dcZP1OLh6PT4d1T2yCe+1x2e7eFJbuONbBlmPwCpghqm6m0JeyscE6EU9rfsU88dN FNSMJsivDIR8hwEIsA5KOPaFID6UclABj98gfJMzFeFyVKjCpLB0P/66OX3GKyCfMA80 +eog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=huPTkm7Y; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si9028262pll.126.2019.02.13.00.47.29; Wed, 13 Feb 2019 00:47:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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 header.s=google header.b=huPTkm7Y; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390812AbfBMIr2 (ORCPT + 5 others); Wed, 13 Feb 2019 03:47:28 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37616 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389794AbfBMIr2 (ORCPT ); Wed, 13 Feb 2019 03:47:28 -0500 Received: by mail-lj1-f195.google.com with SMTP id r10-v6so1287704ljj.4 for ; Wed, 13 Feb 2019 00:47:27 -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:mime-version :content-transfer-encoding; bh=bQKwEsId6JLgTtjw3Rjr7HrL/WSfNzzQCt6QFtE+6CE=; b=huPTkm7YuTfgMiO3pS+jCGn8NhUCcSn8F3KQWlpn+sfAWdE03+0xZExbkXBqTQQ4Ms wSC5XGBYQ7n/wYVCJZxHRgNxIs0hdbjkEbiIaoincu8wJFzdVEshpaJd84a9VZnaoASY Wa6ExZJisdmciQHpsAk7/zKJeXa2gjhMLdH+QUhaJbDwDTUyBIj0opR/VRuerdRwNGyj N9X+1nLZ5zI6Zxcmf7tfsnG2iWQ7k4zFcRbQzQek1to6poNy/Pr3We/zzhbBAGbYO6Ro oA0YEz8XGmiBrSNZMRNtvdxS/XYybCvhCWzfnOj3l2QKu4NtZYQ5GbMXRXw8JVXFYSWv NaXw== 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=bQKwEsId6JLgTtjw3Rjr7HrL/WSfNzzQCt6QFtE+6CE=; b=rkZ27YjdeCmMlhvrRrDB6Ertzf67UYRnoyw/6dvoygDoo9g9DYfgqGEWZYtZ+ACAmL xtEZDHMusCfv7hYIrpPIhaQE6ijPLOTeYmEKihlOYRa+pbFLNcrO7YI7zu7oukm/9bjH g6xdDRQtjE0KKewjCywE+T8BKK/rarioSgpjMCtHiTVIXnTwX1VKI7cBWGBb+80/G/AV aTh/OhktMTUmUiqy/qNRJbLoap7eLxpP7kWggUQNF5F6ianBn8Sohd0Ogi0r9wC+gEen ROX54DgV/rOA76RM/onKhsafs3zJLXZIc6r6NXqlq7z7osJIKFxA8opcXuVwwBfjWdRg q8QQ== X-Gm-Message-State: AHQUAuYh1Pti1kGOcrNngKpvtqfYXVgO+u/P+/MZYxEoIZeV+g34WIoN WvBgX+hUJybzj4cyjx5RHA0aEg== X-Received: by 2002:a2e:81c1:: with SMTP id s1mr202136ljg.29.1550047646117; Wed, 13 Feb 2019 00:47:26 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id g85-v6sm3325972lji.17.2019.02.13.00.47.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Feb 2019 00:47:25 -0800 (PST) From: Anders Roxell To: b.zolnierkie@samsung.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] fbdev: omap2: fix warnings in dss core Date: Wed, 13 Feb 2019 09:47:21 +0100 Message-Id: <20190213084721.29624-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Commit 60d2fa0dad06 ("fbdev: omap2: no need to check return value of debugfs_create functions") changed the declaration of the return value of function dss_debugfs_create_file() and the following two warnings appeared: drivers/video/fbdev/omap2/omapfb/dss/core.c: In function ‘dss_debugfs_create_file’: drivers/video/fbdev/omap2/omapfb/dss/core.c:139:9: warning: ‘return’ with a value, in function returning void return 0; ^ drivers/video/fbdev/omap2/omapfb/dss/core.c: In function ‘omap_dss_probe’: drivers/video/fbdev/omap2/omapfb/dss/core.c:172:6: warning: unused variable ‘r’ [-Wunused-variable] int r; ^ Rework so function dss_debugfs_create_file() that is declared to return void don't 'return 0' and remove the declaration of the unused variable 'r'. Signed-off-by: Anders Roxell --- drivers/video/fbdev/omap2/omapfb/dss/core.c | 3 --- 1 file changed, 3 deletions(-) -- 2.19.2 diff --git a/drivers/video/fbdev/omap2/omapfb/dss/core.c b/drivers/video/fbdev/omap2/omapfb/dss/core.c index 7e6a3eb266d0..b5956a1a30d4 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/core.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/core.c @@ -136,7 +136,6 @@ static inline void dss_uninitialize_debugfs(void) } void dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *)) { - return 0; } #endif /* CONFIG_FB_OMAP2_DSS_DEBUGFS */ @@ -169,8 +168,6 @@ static struct notifier_block omap_dss_pm_notif_block = { static int __init omap_dss_probe(struct platform_device *pdev) { - int r; - core.pdev = pdev; dss_features_init(omapdss_get_version());