From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970022AbdEYV2X (ORCPT ); Thu, 25 May 2017 17:28:23 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:35460 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966238AbdEYV2W (ORCPT ); Thu, 25 May 2017 17:28:22 -0400 To: Thomas Gleixner , Linux Kernel Mailing List From: Heiner Kallweit Subject: Why does callback irq_startup in struct irq_chip return _unsigned_ int ? Message-ID: Date: Thu, 25 May 2017 23:28:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, just by chance I noticed that callback irq_startup in struct irq_chip returns an unsigned int. This doesn't seem to make sense as the result is a normal retval which is casted to a signed int in function irq_startup() anyway. Is there any specific reason for this or is it simply a bug? Rgds, Heiner