Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2418125ybi; Sun, 9 Jun 2019 11:15:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1syBpawb8nUyWgjhuKb4dOSC4YZ5dBcBTahBX+2HK2x1GrBUPY5zczCZM7MOI2CqvIw9f X-Received: by 2002:a17:90a:8a10:: with SMTP id w16mr17216432pjn.133.1560104120133; Sun, 09 Jun 2019 11:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560104120; cv=none; d=google.com; s=arc-20160816; b=enkRbPX+iagH7WG2DYZKqDebjdNeXpaVng9miSy/lZehu3SXJqo8JfZtWzCUe06gIz /8REBCohy2GIIW86e6K0KasykcAov1B8YVVbPBBt6IETp4jpavEbyAy9YsFh82oiPEqT LZFuc/O7murQT+pNIMeMmQQyYm0csyUSMt/glz9NvUDvNlSlk5X+HShbqjAva1fadSJa 3VUSqJwOzdRJn5wamofrBZh2YSzLKaOiCl77BIhel7daPXYHvd0Z2yhjQ3sg1pcl8d7g CADzBkX49ovQj2+1wzNESr7/AefodMRayur9qlnQkbVNouSbAMzmroYuJ04SROnSaBK5 aUkg== 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=F/V6LAYo9zor3iSFdfzBV1OC8hNwQaDDuoAdAoxcLFN6qIUjAqidDEdTT6caNmXICY j/MHeP16KV2kSfgwp0KRsWza+Xq3VvBLD7yXMvt7/KtRllgwR9b8kStDoCjPu41ZeKWN R2d6JVvgj88uxxCxPTIrkP4t4Jr3hoCp82cTNkOi+ozU+74OV3M4N1NxK8oUZmqAskss j98PuMS6umTjjBwYWa9etIwj4i4cvXWKpmGdLsqYgesv5Pv6QqAvH4D1aRV0PFkCo5o7 +BGeCGZN5uyK8xSh10S0lsnoQRTBZNOcRc4g1Hvn7WD1QCVaI7oT/PxSDzgJ6euF5i1C F0nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0hkUwxGT; 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 9si7831155pfh.175.2019.06.09.11.15.04; Sun, 09 Jun 2019 11:15:20 -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=0hkUwxGT; 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 S2387512AbfFIRAm (ORCPT + 99 others); Sun, 9 Jun 2019 13:00:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:37298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387904AbfFIRAk (ORCPT ); Sun, 9 Jun 2019 13:00:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 E5B6A206DF; Sun, 9 Jun 2019 17:00:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560099639; bh=Bw3SHpj2ecdzkWtEukyPKNA55yL5HmRX/b8iyGO5ICk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0hkUwxGTsIq03wyVCyJLHrAzUopvh11P/fw9QlHokXZdYkKAHa3aCIG6g4ZFcv9Ql sFdHyzSah3jhd8Er+2W1JN2h9ciA0gGj4SEr+y3fXuD9gxdZ4UNlp5AWaZByfplT++ TS2D+TWxlz+FSwFAp0W0TFJ8N17QeklEGx/VFYxM= 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.4 112/241] smpboot: Place the __percpu annotation correctly Date: Sun, 9 Jun 2019 18:40:54 +0200 Message-Id: <20190609164151.027300184@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164147.729157653@linuxfoundation.org> References: <20190609164147.729157653@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