Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp250277pxb; Wed, 15 Sep 2021 00:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRdY9Iz5Jndl3l7HuR9x/6SlRdUGX6TQCYnO39VRuQQMSU0UcTiD113entidAwHKL2z5Ns X-Received: by 2002:a5e:dc02:: with SMTP id b2mr17426627iok.197.1631692244275; Wed, 15 Sep 2021 00:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631692244; cv=none; d=google.com; s=arc-20160816; b=w9jIYf2vRbAsEI5succJeg6n/DhdqRISCtpOltJgY42XMT/lw1zaACotO8oeIuG2PY 5IL2rRrmV3XUEGxJ/6EG7i1RIBPLtMNfgcEezbgnZ24WOoHOKennm3McgsCpFCzrhYe6 foKCs+SmfQBt/jW+8FKHszt5JooAgI74FQUueF3Eu7y043avGrkHW3Tf8FVfDWwuopsg QG/g0mrraiz/RS9TVPOxazvkZPY0c4QE4FiV/mpQKhgkh36vU2g9nOoijH1gB5ChbXdR Q+VxJ9x4doRpnlGJX3sCAAre0zdzvFnSATWQU+NDWBCSET44PY49iw0QPDhIgaA7LzJo qnMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Y8ZsftnXQY0yr5QVgLvw1STRelfZ7fLDoxanpwIPIh8=; b=uZc4Szwzy18d1wH1T8MA2bLDb+ibPUPVaAZysBBlJyn7hiRGPTBJJZE5/fdlj04g+l rNw+EC4qRw5oINDS8P86xJDtzvJL1f5Q+32eEsWcgUgA4Y7EXRPQJ38UyIzWPaQutT0P sv/uIQuTZGX8izJkcAY9hVPCyVmO4DeQAFba17vQpCcx/lVoWF9Ph9+gXHamDNLSVK0P VO3ef/Q1NUMmNZkPciie/Cq+9nBxH+ZK81qyybNoBMLuodn/djWWpSOiyaaU5mjWNx/f RYy0Hhbuo1g/r3ARQzVRUzTYjBVVhHrLfrW3mMsXERAU9MR9MDQBustSlqKc7GrTa1c5 nyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qh4zLOU9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si13315710ilc.49.2021.09.15.00.50.33; Wed, 15 Sep 2021 00:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qh4zLOU9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236738AbhIOHuj (ORCPT + 99 others); Wed, 15 Sep 2021 03:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231610AbhIOHuh (ORCPT ); Wed, 15 Sep 2021 03:50:37 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38038C061574 for ; Wed, 15 Sep 2021 00:49:19 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631692155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y8ZsftnXQY0yr5QVgLvw1STRelfZ7fLDoxanpwIPIh8=; b=qh4zLOU9gnPI5NHI/OZb7dJhDxulvNioQPVqr8DiElQ/8KejY4xH+MI7VZhKzRj3Iz87Ws lXWA0n+h+haQPRs9+OoAFzWXFUvNFYBTC2UWdW2MW2HruQx+cCMwgJveE85du+I5VMRfnl JvH5Jio+ayuDGBSPaKZ3H/6+CH9jpRSzwBUYm7mmFyTYnq15LXa3lhzlv3tAMZSFZ+xvEQ Y9nJC+wx8P5RNyAqUBKwiO/lhbxn7E7d0m0FvKdMtYxC8vzflkNEEEaHFIEocEf3GETj8z gIuO9iL4rJjDvpDE3nR50UDQo5iD5kScko+fea721Yvo78EUtYi5c2E7T2dYsQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631692155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Y8ZsftnXQY0yr5QVgLvw1STRelfZ7fLDoxanpwIPIh8=; b=mgriXtZQ8i3MFvlDqFr6u9VdZ/Rqgtrx8dqTC3IQM4OW5XXR60fFRH6W7+CiHF7698AAzI 8wD07xImxQfBWYAQ== To: Bixuan Cui , linux-kernel@vger.kernel.org Cc: maz@kernel.org, john.wanghui@huawei.com Subject: Re: [PATCH -next] irqdomain: fix overflow error In-Reply-To: <4f614b66-ad85-7fa3-6e6e-2a672e8148e3@huawei.com> References: <20210908014623.61357-1-cuibixuan@huawei.com> <87o88vcqvh.ffs@tglx> <4f614b66-ad85-7fa3-6e6e-2a672e8148e3@huawei.com> Date: Wed, 15 Sep 2021 09:49:15 +0200 Message-ID: <87pmtab7no.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 15 2021 at 10:03, Bixuan Cui wrote: > On 2021/9/14 19:56, Thomas Gleixner wrote: > > And kernel/irq/irqdomain.c > struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode, > unsigned int size, > unsigned int first_irq, > const struct irq_domain_ops *ops, > void *host_data) > { > struct irq_domain *domain; > > domain = __irq_domain_add(fwnode, size, size, 0, ops, host_data); > > All 'size' passed to __irq_domain_add() are unsigned int. > > So I think it's more appropriate to replace it with unsigned int. Appropriate is not really a technical reason. Making the code consistent is. But that has nothing to do with the completely bogus compiler warning in the changelog you provided. Thanks, tglx