Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbbHGFWa (ORCPT ); Fri, 7 Aug 2015 01:22:30 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35504 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbbHGFW2 (ORCPT ); Fri, 7 Aug 2015 01:22:28 -0400 Date: Fri, 7 Aug 2015 10:52:21 +0530 From: Sudip Mukherjee To: Rob Herring Cc: Tomi Valkeinen , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Nicolas Ferre , Jean-Christophe Plagniol-Villard Subject: Re: [PATCH] video: fbdev: atmel: fix warning for const return value Message-ID: <20150807052221.GC3537@sudip-pc> References: <1438011701-18423-1-git-send-email-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438011701-18423-1-git-send-email-robh@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 574 Lines: 14 On Mon, Jul 27, 2015 at 10:41:41AM -0500, Rob Herring wrote: > A const on a return value is meaningless and generates a warning on some > versions of gcc: > > drivers/video/fbdev/atmel_lcdfb.c:1003: warning: type qualifiers ignored on function return type maybe this one should have been static instead of const. regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/