Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5881869rwb; Tue, 9 Aug 2022 05:49:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7EuwA/mrkiofGXUQb9f8zcoV4/oYeysLN0LwyHn2gsULKni/ckM5WEz8ulJitIZ9M+5x8I X-Received: by 2002:a17:906:fe0b:b0:730:3646:d177 with SMTP id wy11-20020a170906fe0b00b007303646d177mr16359826ejb.688.1660049373732; Tue, 09 Aug 2022 05:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660049373; cv=none; d=google.com; s=arc-20160816; b=SpKSQayloehPgPqXqAwSOKwopLqKbcAUxw6f++Chch5RVrL6oAVl0Ngqx4eP46Bgnq bDsjEtwpIx13fQFZCbazM8B/VBHVYXvFNIHfVeQhUibL2WGJzS9fJh6iKCoAg5fkSycZ QUGwGowAYOYY6BfUjG9V5uhgAJsh03q2+XwskxVdwcXxCg8mhsAuTWDztsI0fo31b+2s WLev+/f/hMuSzBO8uDzFKlxxvpu1X+aO39kI6sXI21071KO1NBV6bkY5hECr1/yafnxi My3GRunSJuGlruy33P2ZCpISN5X3goB4JtbM7kN5ZafAq+592hQ0L5RbupzYUHaOIMpF FqMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=lT36PDGqmc7hUT3q9boFNGrUGl1FKbnWThqhzls3BlE=; b=y0BB0ANlPhSu1HiPSYD2ancYMG+Qo4VGjSO0jPCxeWJktnILHREGxEnLGuNkUUoa3o w/ZnfziPLJtNVAR2cUkSxl9qCwZgYUiPOj0/Uz/jg9rWjJKlzNSDGDcvCoTeP3r8/Wip Wk7RVjVJ3escRq49O/lylIAlkrEUeYZ2RGmS0tw8owqcKCjjrQ18EsNI95hZwfFa16nl RquT8uvXHyn1He7u+XpRF69lphsSYXcVTAtFXTBAnXREAgDL8ZUyFjbys6cZK3dOOFcO yD111Q2doZ0p3Axnv7tVaEPY2tS8m2Rx51MbCwd5y3mLz7FVSaP2V8kTJiJJIqAB/GSW J21g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a1709064fcb00b0072b3b4f016bsi2447832ejw.628.2022.08.09.05.49.00; Tue, 09 Aug 2022 05:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242732AbiHIMnL (ORCPT + 99 others); Tue, 9 Aug 2022 08:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239296AbiHIMnJ (ORCPT ); Tue, 9 Aug 2022 08:43:09 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0454D18384 for ; Tue, 9 Aug 2022 05:43:08 -0700 (PDT) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M2CMF6kxlzjXfQ; Tue, 9 Aug 2022 20:39:53 +0800 (CST) Received: from huawei.com (10.67.174.96) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 9 Aug 2022 20:43:04 +0800 From: Zhang Jianhua To: , , , , , , , , CC: Subject: [PATCH -next] genirq: Change irq_can_set_affinity() return value type to bool Date: Tue, 9 Aug 2022 20:40:09 +0800 Message-ID: <20220809124009.543646-1-chris.zjh@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.96] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function irq_can_set_affinity() return from __irq_can_set_affinity() directly, whose return value type is bool, so make irq_can_set_affinity() return bool too. Signed-off-by: Zhang Jianhua --- include/linux/interrupt.h | 2 +- kernel/irq/manage.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index a92bce40b04b..29de49af6dea 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -308,7 +308,7 @@ extern cpumask_var_t irq_default_affinity; extern int irq_set_affinity(unsigned int irq, const struct cpumask *cpumask); extern int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask); -extern int irq_can_set_affinity(unsigned int irq); +extern bool irq_can_set_affinity(unsigned int irq); extern int irq_select_affinity(unsigned int irq); extern int __irq_apply_affinity_hint(unsigned int irq, const struct cpumask *m, diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 40fe7806cc8c..dd9aeef68834 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -156,7 +156,7 @@ static bool __irq_can_set_affinity(struct irq_desc *desc) * @irq: Interrupt to check * */ -int irq_can_set_affinity(unsigned int irq) +bool irq_can_set_affinity(unsigned int irq) { return __irq_can_set_affinity(irq_to_desc(irq)); } -- 2.31.0