From patchwork Mon Mar 4 12:15:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 209513 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1378677dyc; Mon, 4 Mar 2024 04:15:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWCzoFD//XADlgFB+WoWNNR3eD65L7jZaKcA7cd936DZ0XhjHeTD03ubKWlkO9ttkJ4jBX4CeNrn8m43CYAEqw9DL1lGw== X-Google-Smtp-Source: AGHT+IGR5qpbhYbL7Tnv32NXoeFYCa4jRYONz5s6tzWfhoEHk7Ru6hMA1qM5eF1pdNm9K2l7KNfk X-Received: by 2002:a17:90a:cb18:b0:29a:be10:b829 with SMTP id z24-20020a17090acb1800b0029abe10b829mr5382285pjt.44.1709554530201; Mon, 04 Mar 2024 04:15:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709554530; cv=pass; d=google.com; s=arc-20160816; b=x/CZ9OK68OmZ/ehgKDhbBTwlFQiTx9JgBfsO8baTaOXXuAxW54HfA50+pIxh9hSMT/ Nz8gdWAuAiNakZcsyzMfi61Ai8TwIRePzknQYNAi0EuNVUbcr9oc3MOGUiQuhRD657Rm p6w/BcwEWnJBMW3D5/2GhAmG9RtEaJWSki+mVhGlWfp8oIhvgtWjYk+Vs2+LKe7MhCof ZSnC4btR5mPZLja8ih3oYQAZ8UiRqRwf+KSyzYYT3Wzd2YT736HYEBos+DZg5DszjruM QsfKIk9HSdiSt7vbqFnI1VtRzHQPRagyXgVC88oviba5PXQ7DBWdNzFoJfOTvqzS8iqb EL1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=UYle3p+VrER+wxqmhUkcQ5fFt+9wZ6/WSZK+biz4LJI=; fh=ug+vbjx3hYEyfsB5aHBhxI+u027oSYAUfnsAoBvj5oA=; b=yu6Q3uHOA829ca/ohmSy7CHyL4eIlDXoWhgC7yQ3Y/eTmILGGshXa+yTgZrLOE+kPA OeqyvM6Zkt1R1Cmi+7c6Bl/Q4cNMAkdsq8yx8Z8WIp4cLuxqmz+Vm7pDjciigtI8/foa ojYsM/SJdYFQgTx2UDs4uprnUzu1Dg91b6hl7jv4HS7agQ9U5jPe28AklF+h/hQlsMQ8 0asdvCYCodV4ScAJZs5qFspljI4wyjYABFfynXDifW22cE2qTS3W47l7ShYuOOBYndD/ mjq0qM2knYZaT+jxoqtVi4gd31c0y0shy2TiMLeD6NQG88Dapm5r8Qgw6E3cz00eJa/x Y70g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="qgfrCD1/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-90549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90549-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o8-20020a17090a55c800b00299bceb07e2si10180366pjm.11.2024.03.04.04.15.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 04:15:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="qgfrCD1/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-90549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90549-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 08122283778 for ; Mon, 4 Mar 2024 12:15:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1A5A3CF5D; Mon, 4 Mar 2024 12:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qgfrCD1/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="L3atGOpt" 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 83568224DF; Mon, 4 Mar 2024 12:15:05 +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=1709554507; cv=none; b=Qm6OTQ2uEJNc/0lYfAh22zBfLk4FawZBfPOhO644yoBgdGSWd6hQ4LgDXpe0vYjp7VyzqvM5pITn9JKVVQI6w0ZGQ1GpSbbq5sAYXL2VeyGJHvW/AsUU6taSFkvowVC/hZnxiTGrPGq4lXRATh0YvDi8PKIvz8SzZOHIt8LgVRY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709554507; c=relaxed/simple; bh=xna8Tq+68YK+QFRtmzdEQOSfL64Ez/yudXFqikgl5QM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aBwwOpWzsPcCL55XfyNeOYLDwzHEPDcdZ/kg+duv3dezpHqb77u+ZNDoa2QEksCXzByosXmBL4SFr0DF/peB81H0CeN7yuvFHxwPEmysjGstKJqDy0X02JckRFXSvg22nE2a6Td7x92K60nS1n+crTTBinSn5X33JwvaBjyG6T8= 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=qgfrCD1/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=L3atGOpt; 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 Date: Mon, 04 Mar 2024 12:15:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1709554503; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UYle3p+VrER+wxqmhUkcQ5fFt+9wZ6/WSZK+biz4LJI=; b=qgfrCD1/KZQhytnuDTAxJ5DJf0FIJXjCkWCabAEcKkFvZL+1jYUgpf3AReWhyY/be6gGdh Vhu4qqsYAikCLDTFX5Ro3uW9plHay/Pi+FXq1cuSWq1yp1Qxh6IxIBgKJhKV4BksBYnDxU zSvv1ol42AEU2XyFhe5ZpJe5iTSw5JS3ZkPEVwhpnNbeNPLie0+bbV5fS7ikLeUKAsVfu5 t9XQ68ZR3I98ctK8GkG+B1VLx1s5jABi80vA43xvEyGklzMk9aCrhE4vGDU5ocMkqPsasx 43AvlF9MCsuIFqyz/WcrpuZ275o2/aIyMwJZpF7qkpFKOTFNNSCjJ7Tx5yWGAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1709554503; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UYle3p+VrER+wxqmhUkcQ5fFt+9wZ6/WSZK+biz4LJI=; b=L3atGOptto3b41WxCQDzHuWYJNJHMvisO+dYhIhksg5FxfePT0AnaVwZumccgyBScHUERA BQc4J2VkuzE3jFBA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/callthunks: Use EXPORT_PER_CPU_SYMBOL_GPL() for per CPU variables Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240304005104.841915535@linutronix.de> References: <20240304005104.841915535@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170955450241.398.13909761798230298332.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792590767307870259 X-GMAIL-MSGID: 1792597851137620398 The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: cad860b59531ba4d456b3921d5ced621620d76fc Gitweb: https://git.kernel.org/tip/cad860b59531ba4d456b3921d5ced621620d76fc Author: Thomas Gleixner AuthorDate: Mon, 04 Mar 2024 11:12:29 +01:00 Committer: Ingo Molnar CommitterDate: Mon, 04 Mar 2024 12:09:13 +01:00 x86/callthunks: Use EXPORT_PER_CPU_SYMBOL_GPL() for per CPU variables 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 Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240304005104.841915535@linutronix.de --- arch/x86/kernel/callthunks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/callthunks.c b/arch/x86/kernel/callthunks.c index 64ad2dd..aeccea2 100644 --- a/arch/x86/kernel/callthunks.c +++ b/arch/x86/kernel/callthunks.c @@ -42,8 +42,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[];