Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp264932ybi; Wed, 29 May 2019 20:58:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxAQlxbv7sNV2lKC+BvnYc7flnIC69CoaEE3+UpLuKO+QZxB6sjxaffBWTvT2siXEvdWWR X-Received: by 2002:a63:d816:: with SMTP id b22mr1811083pgh.16.1559188721737; Wed, 29 May 2019 20:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559188721; cv=none; d=google.com; s=arc-20160816; b=tQw0dCrX+G0eMNpE+qan91Q9ey3OiiFvyaqzaCtgeH1RgDRR5cMYHnwm/kzCNsfRVG 29d7X/11+U+soEgQnOeGPkS9ORMCunl0E88Z9KnwNE2a+KatlyYZakuZdWK7Tq2U5E9h BURDBrI+0YDwxkBC0evBSURdBY3CV8XkWNycNqyIsrJSazqpvEuCokUBc926Bm0ANND5 Bv1R8a89goKJopXpwi91ZPsGPu9cIwaqIAJaLHRePXlw9ROBJAiqwPWvRXwsrEFCYPQm nKaW/qb2JgT081xARxKS16Al9wDPth+hTMBDnuD+m/IPIXU4O8rPmTzmAPBFYKX1CM0T iZHQ== 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=inl76WGguViXRKSnH4+AydWq4Y6up3UJy2fHVpowc7Q=; b=FHh77fqT6yB+WgE8O7/PNN9aQLBKIZJ+EHpLsuGAMKxl/pxNBLtuu97s2xSuXTDnAr GVwpOswo6MTaMFqpteGqrfPqHUqh4pKYEu0B/vu1PdGEtoHOEH8D4toxaRvs7oeQfNDs i4gJ2GmbN6Xu7UWtdFeFGkdKMd9lS1pmjkRmOI4pMxeBf5/CNWPP4/H3d5Yzgpy6idET LVU3bJqAhRAgEirWfThkhqvsh8+1zezdYoHEbxew2XOv6nc57BdQOoDBUG5EkDtEhGNW y8P8DCrSorFYz/4nnMYeXSNa5VhGIMpY2MaQ13xakERJjrSlfi1Vmb4+yE46rkBvxoU5 qhhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lkXM8wcD; 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 b40si2235821pla.49.2019.05.29.20.58.26; Wed, 29 May 2019 20:58:41 -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=lkXM8wcD; 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 S1733259AbfE3Dzo (ORCPT + 99 others); Wed, 29 May 2019 23:55:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:53690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbfE3DTH (ORCPT ); Wed, 29 May 2019 23:19:07 -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 62EE324833; Thu, 30 May 2019 03:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186346; bh=4iId1YHXYivKs1rRk46OLXtUoWdAmRb0lWxyFQEx5tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lkXM8wcDVhlC+EA/6Y9ajIzs1VQoVp7j0da/ZikfN0AZG4npNRGL8mnYNPHz+9x/H 8BkCnFsYxQqQsp57zqBqZIrm9PWHdjXKx+KPieKk/o8QT6g1O05onxGp37LhccnpR+ D+V4Nd5jycGVSMk1jf2tWzk4XY68KgB2c3viCdjA= 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.14 080/193] smpboot: Place the __percpu annotation correctly Date: Wed, 29 May 2019 20:05:34 -0700 Message-Id: <20190530030500.020958541@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030446.953835040@linuxfoundation.org> References: <20190530030446.953835040@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 c174844cf663e..585e777a7f6ef 100644 --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -31,7 +31,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