From patchwork Mon Mar 4 10:12:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 209491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1329718dyc; Mon, 4 Mar 2024 02:22:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUUD4U1lp1jdfuxsPoEkc+UrhDTnOMAeVm/cNROa9FNKcYm6uYbOroV+YWlBEE+uRZGm6FyMqiqv96mGVcMYrwlgczlBw== X-Google-Smtp-Source: AGHT+IEhncNj78m/esh36k0Id/7miGCxCrXMZELR60SPM/aOQ+3Asj/2BC4oKhzRGCd/C51ijXiK X-Received: by 2002:a17:903:230a:b0:1dc:68b6:9243 with SMTP id d10-20020a170903230a00b001dc68b69243mr11321755plh.58.1709547774779; Mon, 04 Mar 2024 02:22:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709547774; cv=pass; d=google.com; s=arc-20160816; b=pnXwumG2w0BOKzmAZmTYA2iDOl9/Rj5GzqF6fWdbtRvuEDYqzQvQX28Eb0QitlqKW4 BTYiww0QlVyDguRXEcFAmrH2AtvfCt/tRK/XiXaQnrIL6Ia3GD/mazUyba2M5mJiM3JJ NKnW4qrP820FUuHQJvJqna+ChVJak12/GlMibWVCTtHnFJ/vcNQzwmn9myLolEEjwHaI hm1iwZ4teZYpGjUjcqHzuIFoBlAd/z/2slc6OA4VdmUdowu+cagSH/b0YxP9+bZz3LSR RogQb5MESEAIdi6D5Mso5tDwLrJnH8CFqsIIeUg18UE2jl15P2/JAcL//2I96cOyOLeh inKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=CNfpfUdf+bJ/WXlKRuxwbcf+mJAjRsom7OLtmfNUsUs=; fh=XPJs5ZGCvlB7w9yfpC1hED1EJsKLDZjsVhRhMNCPkns=; b=k2LVJk9QrarJLXh9MSMZ3oIeF5+aQfIPB1MxnGDahFNe85Khx3jSK03eYtzvAvemMH cAxZpg8jkaB4h2L7sMfPdEwrnoRubDoxROF9/gNvTeeZHvOJ1rxJoC2u9zBz4Rvrt5fR ewFeAG0Ra8IUyVITGZkMbuP62ecEVx04bS5i9aQgskTjfO/b00oUujRz2GugQBrEdmuA sTXy8Pn355ow65GEoQX2qfPis1v7brBIm+LkZ8W/WOQWGWg3fFL1SIEpyzT/OfncJ/Ex SV9MlzjdXkjXrqVG9tSzUNPM4vhIUk6nvcaVy88lfU0bjmpgSmsbREptu6yQ49UCpLHc GgEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oF47lkb4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="bC/zpfQn"; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-90398-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90398-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ma6-20020a170903094600b001dcb654d197si3100543plb.303.2024.03.04.02.22.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:22:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90398-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oF47lkb4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="bC/zpfQn"; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-90398-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90398-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4B773B22617 for ; Mon, 4 Mar 2024 10:16:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2448D3D3BB; Mon, 4 Mar 2024 10:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="oF47lkb4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bC/zpfQn" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2553C2556F; Mon, 4 Mar 2024 10:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547152; cv=none; b=riAruhF2j75jW8Bn9NrMr4DmZNFTWtkc6WDfmlnODHZBGIVnQXAmtW69ZoYPPMK1OsgyQBNoCVfzmD6yxe6jzh8u4ysc3ro/dw01Y5EC3gaUAahiAMg9oSzwGcIc9/QwClsQwAnv3LFBYOFelqKAIogNuF/i+ozgBRzhCd6PynA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547152; c=relaxed/simple; bh=8Pg2EFDXUYjtz+tkcv/kg/YFmeskhKXf43DpJ0nXHlg=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=KZy83YTahKPQZbeY7QDs05v98+uCQpA0OeK/Hya2bN1F5OwLh9OprjDZ3YO1zQlP+K0c1Dujv9Wtt21wy4GwlXsFSS0Ib76zcPWvZR40OulxUubVM3kGPcJePKx2JuHLkmeYw8p4O8nbeWI+zrCFdoF/OfpLjgTBNvXsshMm6+Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=oF47lkb4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bC/zpfQn; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Message-ID: <20240304005104.841915535@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709547149; 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: references:references; bh=CNfpfUdf+bJ/WXlKRuxwbcf+mJAjRsom7OLtmfNUsUs=; b=oF47lkb4Rk/qvj8Db0DRNJP1DueeQS9kXvhHnhNzDRR8etK9qNQysmWn7gl1vnhJGoyRVU G3nly8CjbNeLALkuKp6qhtOlQd+IXybJsPeFN902wLcz/8bciN4T9Ts55RgXlE5yXECQ4P r0ndTbug4smvpyy4oBE5xvh0KjUTBclNR58/LW3vsJX66Po7iz+XKA54haE3NDtexiWtfE j/YvojK59blwLY6kn3bHJN7VVH/HW8RXyhm4kDQtDYTYj6yf8zCphUO2GgAQU5u39vfP7p BH3jv35bwdDorlupW8PDfesjvd9M9ky6L2OXWfJz+TUUtjJFZ1GURBq9K8kkRA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709547149; 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: references:references; bh=CNfpfUdf+bJ/WXlKRuxwbcf+mJAjRsom7OLtmfNUsUs=; b=bC/zpfQngeugmwtDkBFAMAJ1oOblN8I8e29J1a4Gq0IsYlUkp4Ep8z7A48ioHN+x2JjHE3 QcneLlx7+eISCTAQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Linus Torvalds , Uros Bizjak , linux-sparse@vger.kernel.org, lkp@intel.com, oe-kbuild-all@lists.linux.dev Subject: [patch 9/9] x86/callthunks: Use EXPORT_PER_CPU_SYMBOL_GPL() for per CPU variables References: <20240303235029.555787150@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 4 Mar 2024 11:12:29 +0100 (CET) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792590767307870259 X-GMAIL-MSGID: 1792590767307870259 sparse complains rightfully about the usage of EXPORT_SYMBOL_GPL() for per CPU variables: callthunks.c:346:20: sparse: warning: incorrect type in initializer (different address spaces) callthunks.c:346:20: sparse: expected void const [noderef] __percpu *__vpp_verify callthunks.c:346:20: sparse: got unsigned long long * Use EXPORT_PER_CPU_SYMBOL_GPL instead. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/callthunks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/callthunks.c +++ b/arch/x86/kernel/callthunks.c @@ -44,8 +44,8 @@ DEFINE_PER_CPU(u64, __x86_call_count); DEFINE_PER_CPU(u64, __x86_ret_count); DEFINE_PER_CPU(u64, __x86_stuffs_count); DEFINE_PER_CPU(u64, __x86_ctxsw_count); -EXPORT_SYMBOL_GPL(__x86_ctxsw_count); -EXPORT_SYMBOL_GPL(__x86_call_count); +EXPORT_PER_CPU_SYMBOL_GPL(__x86_ctxsw_count); +EXPORT_PER_CPU_SYMBOL_GPL(__x86_call_count); #endif extern s32 __call_sites[], __call_sites_end[];