Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp277282ybi; Wed, 29 May 2019 21:13:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOeBkgWZfMd+nuLUld6wqYS9GwEB1lgRyewZJazBiBbuzlZjgZHKpt6kYP1QkhJ5+RDUKy X-Received: by 2002:a62:e90a:: with SMTP id j10mr1665810pfh.147.1559189587366; Wed, 29 May 2019 21:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559189587; cv=none; d=google.com; s=arc-20160816; b=vGJrG7qlcm+dqVkQon1BLPJoJnorSgbbYhA86fKju6l9Alo4hmL1zPxNbco6yEWRvG vWs5BX5Rml+anLY4YwBzJMdBI4uRsNS73TND5Zr5N/ziWKAPfb+jJRv+jjwewgj8v/dt 8DqdVLUdHiQa1US6wgUSyJRzXNSbEuSx2CoG8w50ZnGFN/k5TZ+0mg0v5kBFn4XSlFF7 +6pChx4bj1+umdrzIIX2tAyaXN+BwY37/1cBi7In/vLA7MohQSwHmlofqlNTf3kgPgT5 +Km27cs2t1rIeotYjq6RwkxEbtE6P6ee2xbeNKAqeQYUacyslQbcphtHO0arsVSPIeu+ 6TNg== 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=u+ZV16eQFfDM7NoFX9lr443l4Hej0dBLgbwFYsxN7NI=; b=IhDbatwOR1ACCW7qc8yhCXs4TALuglaM3FSl1/jRJlcdGW954OEGQcRYLC4bhz+PED 4//8t/0zxjjG3Ymn+KxuezC/6pURykj4t9yS+uMe38iGNXz8MCiVvFxwvOzjsVLQ38Eu MAcXq6MG/dAdteCRezF3UVTbb0MbfL97l8f4/ZxWbDSM9KxDdHgz6vKa7MRM7nfZbD56 gOHmQwVYfUmG8fAWWCRGgmgRYVRZJJog5LcnCeDJbpz9ekRsPdx80YmQyxBsKdpm090t oV8GsCMbZg5oGiHOkwQL1MRqOpiJ+rJOyQQo59b5uS3PdoNKJ8gOckrY0Bf9Zh0341jV hs+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IF/A/y7I"; 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 y10si2456919pfp.167.2019.05.29.21.12.51; Wed, 29 May 2019 21:13:07 -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="IF/A/y7I"; 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 S1727359AbfE3EKi (ORCPT + 99 others); Thu, 30 May 2019 00:10:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730885AbfE3DRA (ORCPT ); Wed, 29 May 2019 23:17:00 -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 64EA524654; Thu, 30 May 2019 03:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186220; bh=xtJxQC0Yev/gdAJgBJR+QbV4KFDeR1pDpv2e2eMbnsc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IF/A/y7I8BAlvJlaGjpL09RqoSE9JlSd295xF2qUk8jGDSFn7kiGe/T6iO+CFQEJ4 1QeTQf2lMOpwdYIREpIPCE21xyzWVR7XMKAS6KKwYUYOEe5G+f87NJJRy1lx8bMzKu UB/7Bgsim/HVPmC6pWNx8CemV3NYLXhSHhNpZ1rE= 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.19 111/276] smpboot: Place the __percpu annotation correctly Date: Wed, 29 May 2019 20:04:29 -0700 Message-Id: <20190530030532.921374081@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@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 d0884b5250010..9d1bc65d226cc 100644 --- a/include/linux/smpboot.h +++ b/include/linux/smpboot.h @@ -29,7 +29,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