Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp560845rdb; Thu, 21 Dec 2023 19:34:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKRdPaWJxzeTh8zB+rYg48yqUWNay+zyV2hk+Yr4yKq/0uHWWGiMtjtIx5uxVI5AE63R8Z X-Received: by 2002:ac8:7d56:0:b0:425:8a27:4bf2 with SMTP id h22-20020ac87d56000000b004258a274bf2mr1085026qtb.13.1703216042141; Thu, 21 Dec 2023 19:34:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703216042; cv=none; d=google.com; s=arc-20160816; b=LFtHHxTx+0XhB/3+oikdOtBNQTwdvifHbKcwNE98F1h8ssKom+qINWBVJ2i5VCVHXw N+MwadzqwV0vmr+5nwLveR7NiSLHvb9LdqjMeLgbVZhPLJ13MJEgWkZdFExBI9d162jw EzLcJNSUmu9DnCnAvXJMZ8oDeiwF2HB/WHwHF95Gi5oXdHM6ihr843pAt8/2eA72NcSz JgWA2JBJ1EYtyRsnQ2RZI+/od68aUhAF6Pyr4Y4E8vhSQjAwIlMEwNYU4px29YxVvWLO v4eekIho72O9dyFkiJcFMUy7NW12crygaoUFltm2UpEWCyZdbhZlRILtzvdRS6V722K/ CDqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ajffDDu9spgFfGtID1HXsaBNUU8rYErr6LSrXy6qzuo=; fh=atdjHe3YJmMyw7QJHQjdNBD7Q65t+poHTMV4u3g8YTo=; b=IaONgmDZ6h6v6iVa16EQaDpsPZ5WpcGuHpWZuvXdkeR1I5Y0jyLQLP2t8FOB+EZP4f HIswm01NGCNflyB1b7PortdnMsONG7y57zjCkppyS5JNPcQQx7NpZ77w6YmQk6CvsUAn Rl4qVctznY12iZrPY8j9adBT+za9FaORmSaRkdQShnOpR/qPYMiyiol7Ou7rYkO2R+18 dj+9SSUg8gSMEsfaryYLZMLuTb7KrxugUBlqTj14Xx/r5zx9pbgIvamGMeA+Ao8dW0py H53aHyUJxgBUrugvB5HDnGCMeZUlwJlzh+XGEs1AEK/4bwwOGsYjGdyszvpuvkV84bs1 RMeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-958-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c13-20020a05622a024d00b0042383d2deedsi3566916qtx.614.2023.12.21.19.34.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 19:34:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-958-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DF9EF1C249F0 for ; Fri, 22 Dec 2023 03:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6057C20FB; Fri, 22 Dec 2023 03:33:55 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 463B717D3; Fri, 22 Dec 2023 03:33:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rGWIB-00Dgpy-KJ; Fri, 22 Dec 2023 11:33:44 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 22 Dec 2023 11:33:54 +0800 Date: Fri, 22 Dec 2023 11:33:54 +0800 From: Herbert Xu To: Gonglei Cc: linux-crypto@vger.kernel.org, mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, lixiao91@huawei.com, wangyangxin Subject: Re: [PATCH 2/2] crypto: virtio-crypto: Fix gcc check warnings Message-ID: References: <1702294936-61080-1-git-send-email-arei.gonglei@huawei.com> <1702294936-61080-3-git-send-email-arei.gonglei@huawei.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1702294936-61080-3-git-send-email-arei.gonglei@huawei.com> On Mon, Dec 11, 2023 at 07:42:16PM +0800, Gonglei wrote: > > static inline int virtio_crypto_get_current_node(void) > { > - int cpu, node; > + int node; > > - cpu = get_cpu(); > - node = topology_physical_package_id(cpu); > + node = topology_physical_package_id(get_cpu()); This looks like a bogus warning. I think we should do something like this instead: diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index ae81a7191c1c..0cb43986061b 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -191,7 +191,7 @@ DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info); #define cpu_data(cpu) per_cpu(cpu_info, cpu) #else #define cpu_info boot_cpu_data -#define cpu_data(cpu) boot_cpu_data +#define cpu_data(cpu) ((void)cpu, boot_cpu_data) #endif extern const struct seq_operations cpuinfo_op; Please send this patch to the x86 people. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt