Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1271238iol; Fri, 10 Jun 2022 04:10:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxKvwTha1QvXuaVs/wGemvls+jeJjpyRmj7dVIO+qvilPlD6uAdfaiOafQVMx1wE9fXxOj X-Received: by 2002:a17:906:fcd1:b0:70a:a374:905c with SMTP id qx17-20020a170906fcd100b0070aa374905cmr40214553ejb.583.1654859439480; Fri, 10 Jun 2022 04:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654859439; cv=none; d=google.com; s=arc-20160816; b=U3EmoTZp7WCrxDUp2iYBexUP7tGuDBDneGU/3cO8nkH2cUW8eBabnBqTUl4t/XQuGt jtA5XbhVPbK2zC0XJagH3a78TX2jpnGAWNKHzVTLVglsAWGI+nUkco9OI7eGJnMe1qCP yaxBlL2wf4vlV/ljBZ8Av8QOwB8KnV6xW5d8MV74gpPsPQgkbu03WVZEwMjGrT5EgI9x +O0COnQXO82SEwXDumVqds5aJ/7G1uQKLbOY1DCmCuVmqfbJ4saanZjqma0T+k02jxZK RuIsEbG8nBWfbDJ1b6kKwsp/zYv+/ezOqC8Oh2ukBalCjUokXE09XLL2cjgiasALzG6c xYCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=EVAX4Fozh3vLj1lc1UBjWzoYx1leYBLvCm92vu5DAng=; b=X7Fdu0u58IdnCks/sp9q0FfPZKrRFyMH4HY6b66/oCqe5dY0UHGHCzMu1ITUY3jLtZ Kxgj5pZeUSK/9zeW2Z8UQ3PJ0Xz81QGEM45esDIxWN5dgjfAt22vPZPkyzGRjU3W4Ct9 /uZDR9naxbUrTSU8mAR0HrIxVhUOXGURjXvF6Uhx0PbmpADKI6ETkG7/+d8ch8C1RR7Q 75irERTMi7hZZbSPSn83sOkM8fa0NDbvQTXYS3AgTKYHOzsoiNHivJMz+ui0nFtqbJYi wgENLJQvcvWECDa/3RnYOCaCTfDHvQiij+nOBvUL0LiJDgacr0n0wxeVlBm7eGSIbJX3 K+pw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg40-20020a170907a42800b006e8625949efsi1980585ejc.923.2022.06.10.04.10.14; Fri, 10 Jun 2022 04:10:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348775AbiFJKrZ (ORCPT + 99 others); Fri, 10 Jun 2022 06:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346796AbiFJKrG (ORCPT ); Fri, 10 Jun 2022 06:47:06 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0D78205F99; Fri, 10 Jun 2022 03:43:12 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 05E351E80D6E; Fri, 10 Jun 2022 18:42:27 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JGR-NiiVUZu0; Fri, 10 Jun 2022 18:42:24 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 313A51E80D24; Fri, 10 Jun 2022 18:42:24 +0800 (CST) From: Li kunyu To: chenhuacai@kernel.org, rafael@kernel.org, len.brown@intel.com, pavel@ucw.cz, mingo@redhat.com, bp@alien8.de Cc: kernel@xen0n.name, tglx@linutronix.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Li kunyu Subject: [PATCH] x86: Change the return type of acpi_map_cpu2node to void Date: Fri, 10 Jun 2022 18:43:05 +0800 Message-Id: <20220610104305.201688-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Reduce eax register calls by removing unused return values. Signed-off-by: Li kunyu --- arch/ia64/kernel/acpi.c | 3 +-- arch/loongarch/kernel/acpi.c | 3 +-- arch/x86/kernel/acpi/boot.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 96d13cb7c19f..2665cc873f0a 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c @@ -712,7 +712,7 @@ int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi) * ACPI based hotplug CPU support */ #ifdef CONFIG_ACPI_HOTPLUG_CPU -int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) +void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) { #ifdef CONFIG_ACPI_NUMA /* @@ -725,7 +725,6 @@ int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) node_cpuid[cpu].phys_id = physid; node_cpuid[cpu].nid = acpi_get_node(handle); #endif - return 0; } int additional_cpus __initdata = -1; diff --git a/arch/loongarch/kernel/acpi.c b/arch/loongarch/kernel/acpi.c index b16c3dea5eeb..369b49343563 100644 --- a/arch/loongarch/kernel/acpi.c +++ b/arch/loongarch/kernel/acpi.c @@ -282,7 +282,7 @@ void __init arch_reserve_mem_area(acpi_physical_address addr, size_t size) #include -static int __ref acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) +static void __ref acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) { #ifdef CONFIG_ACPI_NUMA int nid; @@ -295,7 +295,6 @@ static int __ref acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) cpumask_set_cpu(cpu, cpumask_of_node(nid)); } #endif - return 0; } int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id, int *pcpu) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 907cc98b1938..d63ec3ea3be3 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -799,7 +799,7 @@ static void __init acpi_set_irq_model_ioapic(void) #ifdef CONFIG_ACPI_HOTPLUG_CPU #include -static int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) +static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) { #ifdef CONFIG_ACPI_NUMA int nid; @@ -810,7 +810,6 @@ static int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) numa_set_node(cpu, nid); } #endif - return 0; } int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id, -- 2.18.2