Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp257850ybi; Wed, 29 May 2019 20:48:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh0+A+MxXTR2RvVVSandHjWg5n061bo+jm6sGCIRMGOB5Je2hgNNYUhbflhlg9mIZsUqg2 X-Received: by 2002:a17:902:15c5:: with SMTP id a5mr1758793plh.39.1559188135965; Wed, 29 May 2019 20:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559188135; cv=none; d=google.com; s=arc-20160816; b=mFf2gJrAg1n2kp5d7fkQxzhtA5nB/BFPt3B2WlGMY2rsedP5EgwXxOqIVI64YXv3D/ PYrDwby9FCPnxpNhBGLuiutH3GYCq/TdsmlmlecsxD/YnOY0g1J+2E7I0vXFKFPgXlxg jOQp8yZY9PUX80lib0yFElbGZZJDtJJ4zWKm3k/RPGTO2aqFIy+qtd6vmkkaiHxiiJc+ GdUfiWhhnZJkQ5DzWeDGUL65XbKivxj1meiX3coFBNov2P0j1edCjTTxaSQ10H6YW/Bg hJHJtneMOJpSaEwrkv3xe80I4cEiKZfMd7LdST4m1J8DyhIPHT3B1lQ1tbtsOEAzpL7b 2u6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4+HE+oLimrIpmeYvETX+mXcAJWWYSe1ItygBDRQru7A=; b=kxcB+exh8ccU5VYUzxYjh457Lb+5lSYC+wUacd1crbqYab4fuuOdpLFkAj9cwkkd4j grmqwQLuaOnxKfIGkwToGZII5FLhOJbJXrRlDLaHqjKeWLqMWhtfBveYfSiT/fZLDecW R0jv1jI2G7Vj1+CzqutSHeAcntI/6dg/e3b/VO8KtLNueXDTq1/BcGQkLaHXsIw1BNJQ bsF4tNgk1BUf2i0siM6/Mqgk3iKxSYdUg7NZtrYe+1zxdG/iVX0CY7soPLe6jCZr57zF LXlEXRPp0+zYtRP8oNJUTPdCyuvEv5rftT1aK24CdUtZIbhWLI5VcBCcJ/Afs7p6IbwH Q2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jari+wIB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si1858516pgm.568.2019.05.29.20.48.39; Wed, 29 May 2019 20:48:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jari+wIB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732798AbfE3Dpx (ORCPT + 99 others); Wed, 29 May 2019 23:45:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:59372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732318AbfE3DUp (ORCPT ); Wed, 29 May 2019 23:20:45 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC01724966; Thu, 30 May 2019 03:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186445; bh=Bw3SHpj2ecdzkWtEukyPKNA55yL5HmRX/b8iyGO5ICk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jari+wIBzPD8Xj6nTbuyTNr16rk92RuReam/mcta0jyIVg0WrfjGScz9+kdaky8pS kaKXf8YaJ0Rgy6KQBQTEbGONYS9ik3k25E50GlxA27BMjqc4aJulGvTPUDap8ZuxIw fsoihJazNfI0bHWn9ZUZOH7gXRAa+YCQelK/Tucs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Sebastian Andrzej Siewior , Linus Torvalds , "Paul E. McKenney" , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.9 051/128] smpboot: Place the __percpu annotation correctly Date: Wed, 29 May 2019 20:06:23 -0700 Message-Id: <20190530030443.912737717@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030432.977908967@linuxfoundation.org> References: <20190530030432.977908967@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit d4645d30b50d1691c26ff0f8fa4e718b08f8d3bb ] The test robot reported a wrong assignment of a per-CPU variable which it detected by using sparse and sent a report. The assignment itself is correct. The annotation for sparse was wrong and hence the report. The first pointer is a "normal" pointer and points to the per-CPU memory area. That means that the __percpu annotation has to be moved. Move the __percpu annotation to pointer which points to the per-CPU area. This change affects only the sparse tool (and is ignored by the compiler). Reported-by: kbuild test robot Signed-off-by: Sebastian Andrzej Siewior Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: f97f8f06a49fe ("smpboot: Provide infrastructure for percpu hotplug threads") Link: http://lkml.kernel.org/r/20190424085253.12178-1-bigeasy@linutronix.de Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- include/linux/smpboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/smpboot.h b/include/linux/smpboot.h index 12910cf19869c..12a4b09f4d08b 100644 --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -30,7 +30,7 @@ struct smpboot_thread_data; * @thread_comm: The base name of the thread */ struct smp_hotplug_thread { - struct task_struct __percpu **store; + struct task_struct * __percpu *store; struct list_head list; int (*thread_should_run)(unsigned int cpu); void (*thread_fn)(unsigned int cpu); -- 2.20.1