Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp517477imb; Fri, 1 Mar 2019 06:54:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzt4PyfJsr+daOCZNz5ndDcBtjKFA4o8J7g1eywWGbAuaX17SI2jRVKAAkSKNtQ8eElDSQT X-Received: by 2002:a63:2c8a:: with SMTP id s132mr5245800pgs.440.1551452057118; Fri, 01 Mar 2019 06:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551452057; cv=none; d=google.com; s=arc-20160816; b=VSFPN2vDg3+AqRyJMGLPeKMBp/Nr3DJJzaknnPWh2qOkATyyODDs1xYIwzcdqooPso B4RnNAk+cU8BtZb6g3Jr6Csera0SzTVUOSFEy+5iC4i5LoiE6AZZocfZwd6GSDjQ4v8S Neb/bSiTTfFY55Da0KRd1LVZFbXqfpk7aZvMbzUuH4zwdmgWDd99t0TB+38aAZ9mVpDb FVPdvHQli9C6ryOMM25OjOCXdFzXv+Qcd9j8bXeokifnzbgSxSRS5KD8QNx0Y45THMyX W9Wt48uI+Y3dncoVCu/uFlAXcX2Ajmpz2IFdboQ8gSv8buFrckyIDauzr437491wrK73 cJJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=xUKGahBStRpVDvuKCNi90H4mrzoc2f5GUFxLNjnLP3I=; b=vLnA5cjM0S9+Y7H7yEYzFKQ06ff3sFw6besmE9aSIKDgHtyrYwNxQghsH84nH0IdWk qYcp7SszEttSLvUBlQurTEuhTZshwG3x5GJCa8HLU6PsIidP0l++yGbcf4vklqWyCJbc lycW6zBv2oPhwnAJpR+qT5Xk64qFFuhl4LQvtvbwYcyzWKTAcVRn+rVA+M0h/qLkgY3d zLNNYbPAq4CisNyJk3RtoOJPSybffI9FNbPL4M8Gt9NuyXUvv5X5RdKFyC4MeXLDKIjQ Is6rjTjAmOsr/+UV8wnxsW8WFGBBRqwWM+gTqACnyFK2hZVQwuNNDRrYHaga6UomqVzM 9yDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Opr5/aCo"; 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 sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si21318295plo.410.2019.03.01.06.54.01; Fri, 01 Mar 2019 06:54:17 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b="Opr5/aCo"; 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 sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388769AbfCAOp5 (ORCPT + 99 others); Fri, 1 Mar 2019 09:45:57 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56517 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388299AbfCAOp4 (ORCPT ); Fri, 1 Mar 2019 09:45:56 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190301144555euoutp01d4f6e079975c286b3c23e788ffa86376~H3Pg61tls2769327693euoutp01i for ; Fri, 1 Mar 2019 14:45:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190301144555euoutp01d4f6e079975c286b3c23e788ffa86376~H3Pg61tls2769327693euoutp01i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1551451555; bh=xUKGahBStRpVDvuKCNi90H4mrzoc2f5GUFxLNjnLP3I=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Opr5/aCosuni2pTDOIIsoWoylyN8DMSo286V2omkLfN4VB4PFI6zY3pKakCAo3WII Phzio9CHg6sd9w1MoDA2XzhYynKInfKMJ7eefkr5Oplr4Qt21TZT0uHj+1VFBheq1+ nmHu3yJ4bjL/qtQK8GW0NrBOnAOzgMLP26tRMti4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190301144554eucas1p29d5bfe928ec7e48c7483e73b505067bd~H3PgjZg2n0954409544eucas1p2T; Fri, 1 Mar 2019 14:45:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 31.A1.04441.2A5497C5; Fri, 1 Mar 2019 14:45:54 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190301144553eucas1p18099a26127761a8c1d13bb5ec7a0390b~H3Pfh03mv1598015980eucas1p1m; Fri, 1 Mar 2019 14:45:53 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190301144553eusmtrp1ce9a6d1bd686d1fe578e3b68a0011e74~H3PfTqq6-2538925389eusmtrp1o; Fri, 1 Mar 2019 14:45:53 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-87-5c7945a2a272 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 92.45.04284.1A5497C5; Fri, 1 Mar 2019 14:45:53 +0000 (GMT) Received: from [106.120.53.102] (unknown [106.120.53.102]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190301144553eusmtip2dd1fb1ee6fd88fa7704d1c8a32bf24df~H3PfCmSIh2127821278eusmtip2N; Fri, 1 Mar 2019 14:45:53 +0000 (GMT) Subject: Re: [PATCH] fbdev: omap2: fix warnings in dss core To: Anders Roxell Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <5ceb8653-055d-e4eb-a705-0bfd243e132c@samsung.com> Date: Fri, 1 Mar 2019 15:45:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190213084721.29624-1-anders.roxell@linaro.org> Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42LZduznOd1FrpUxBjMmq1vcmvKbyeLK1/ds Fif6PrBaXN41h81i9pJ+FgdWjzvX9rB53O8+zuTxeZNcAHMUl01Kak5mWWqRvl0CV8bb7Y1s BSc4Kl4+aWJuYOxn72Lk5JAQMJHYuG0faxcjF4eQwApGif/TtjNCOF8YJbbsWMwO4XxmlJg0 eQorTMuKU5egEssZJR7928oG4bxnlLj6+ypTFyMHh7CAtcSqHzUgDSICOhJzX59nBrGZBWok jr7eBbabTcBKYmL7KkaQcl4BO4m2R+YgYRYBFYm1Hy+zgoRFBSIk+s+og4R5BQQlTs58wgJi cwJVb9+xiw1iorxE89bZzCAXSAg0s0vM+3SVBaRXQsBFYluLK8TJwhKvjm+B+lhG4vTkHhaI +umMEm9+LYVy1jNKrDlzjAmiylri8PGLYEcwC2hKrN+lDxF2lHg36xITxHw+iRtvBSFu4JOY tG06M0SYV6KjTQiiWk1iw7INbDBru3auhCrxkNj/K3ACo+IsJI/NQvLMLIS1CxiZVzGKp5YW 56anFhvmpZbrFSfmFpfmpesl5+duYg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yy4RfbNn6YeHRk/rM+d/+HJzTvU2Ca7pSk3mUTfefErm3LY3P +HMv75/EdvzGdPH8LeY8/ueVWIozEg21mIuKEwHVBOuRogIAAA== X-CMS-MailID: 20190301144553eucas1p18099a26127761a8c1d13bb5ec7a0390b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190213084828epcas3p2d7f70d63c5e267197de5513ae96b4fc2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190213084828epcas3p2d7f70d63c5e267197de5513ae96b4fc2 References: <20190213084721.29624-1-anders.roxell@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2019 09:47 AM, Anders Roxell wrote: > 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 Patch queued for v5.1, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics