Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1016510pxb; Wed, 15 Sep 2021 19:57:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbN0gYv+QHaQPwXv3Co73+FH2NlmeWGIo/tJ0O9WJtkSvzjqdgR3pyjY2ZHGaAc8smQKna X-Received: by 2002:a92:8743:: with SMTP id d3mr2322023ilm.237.1631761046426; Wed, 15 Sep 2021 19:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631761046; cv=none; d=google.com; s=arc-20160816; b=nwjrAoTA07ga+qhH5kzEdLAEKwgmQfJCWK8GFL2lbKIPQw4HIlUiXcnhPlqj8xJ4FQ 1xmkGu9lCpJHFkwauWKRjN1tMqYvgoRljLUudrGpCupb4tIwpKE3wXj42+QuOoaDVADC iRVFcy0Zi8SJLebv7Yg6omfvl8/l8QAieVIHdBmTPvvoKgzuecPga2YdRqQ7mSK/PPDZ 8D27DkeoSb/y5j0pyF0TkLdO2tY+5F0CXtVm467ZR9U1ncboxaB1iOZkSkSum8+0/k2F EhcziD8r+OQ9mjiibKqezQSbnlNSyldZTh8sk8w1Zm5tSquPa4nSD5df3bBkITGVwknA 8PGw== 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:subject:cc:to:from; bh=FpReyyPSxHnEdpqZJwAzRpZE/dZjhTrW+VtkkxfvIMU=; b=npfqOrXWxgSUUXLbtJQQ2BRqe4431NC02yL/wvLJdYslhvXjEaR5T0o1bEFI/i2ie8 eWt5W7Ojk0Eg1XuofFh+hOOaNheMIjfiD6Ow1Fa3S5fP0HSvTaEhaxDuRI8IyQHHucZ/ 61tg35kaA9qaD7UsAnsSjhSxZz6BAlCSbWdQ/YDkTrfwy2jIvMmyr9/cQyj0s8loMZO4 abVmzBxu51jzp7b0SSPpsC1XgX5oHJpOVxZVWdZRzQoT+RF4zz4kWpLCVrC00gv3QDII LLKd4hHDePhypZs6JOWzN+VHZ3JRhd6l6Zi2475N7wDyQRF/Ywj6RCji3JnWtULksPQy 0rTA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si1463581jan.84.2021.09.15.19.57.14; Wed, 15 Sep 2021 19:57:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234010AbhIPC5l (ORCPT + 99 others); Wed, 15 Sep 2021 22:57:41 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9883 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbhIPC5j (ORCPT ); Wed, 15 Sep 2021 22:57:39 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4H91ng3MG8z8yZK; Thu, 16 Sep 2021 10:51:51 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 16 Sep 2021 10:56:13 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 16 Sep 2021 10:56:06 +0800 From: Bixuan Cui To: CC: , Subject: [PATCH -next v2] irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent Date: Thu, 16 Sep 2021 10:52:03 +0800 Message-ID: <20210916025203.44841-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'size' is used in struct_size(domain, revmap, size) and its input parameter type is 'size_t'(unsigned int). Changing the size to 'unsigned int' to make the type consistent. Signed-off-by: Bixuan Cui --- Change in v2: * Modifying the changelog. include/linux/irqdomain.h | 2 +- kernel/irq/irqdomain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 23e4ee523576..9ee238ad29ce 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -251,7 +251,7 @@ static inline struct fwnode_handle *irq_domain_alloc_fwnode(phys_addr_t *pa) } void irq_domain_free_fwnode(struct fwnode_handle *fwnode); -struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size, +struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, irq_hw_number_t hwirq_max, int direct_max, const struct irq_domain_ops *ops, void *host_data); diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 19e83e9b723c..4d8fc65cf38f 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -136,7 +136,7 @@ EXPORT_SYMBOL_GPL(irq_domain_free_fwnode); * Allocates and initializes an irq_domain structure. * Returns pointer to IRQ domain, or NULL on failure. */ -struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size, +struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, irq_hw_number_t hwirq_max, int direct_max, const struct irq_domain_ops *ops, void *host_data) -- 2.17.1