Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp897768imu; Tue, 11 Dec 2018 09:14:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VDLWkoA3bp1mTv6R1tNdDdtnTF/yeBqC+gypQRu+ih+ftpTxZAk+3h2W62PHX25sQKmVUN X-Received: by 2002:a63:4e15:: with SMTP id c21mr15333569pgb.50.1544548450239; Tue, 11 Dec 2018 09:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544548450; cv=none; d=google.com; s=arc-20160816; b=hakz+yr/hjz9R1sbtX3co68vU1qXImWzNVbMhIen/y3qIuV5MpD7VOCch68pn4WTHQ QrT0+2/aJKze6W/+gDT2/NTI2JgdLo4Erbx5QA8r4975CHGVKnRD3/9Gb4VKmQsyin2y Ypni5izi9IZPWZd9U2fp7zAmsqfW/YkHIFPO0foejzrSkDX7X4UUXFrRM+Pa3jWh64DC jEuuJqQzN/O+gkxgc42Za1MrGP63XTZ3ziFARpmmIAfeLq8V7fZJhXfEK0jp14Z5fYqS KTqARA1a+Ka7R+uyujaHS5r4iA8pVbXJudENjzf/zvqVV+lfwkWl54CIhLWbamDiZVIr 6CyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=r9BHctqlxVzheWQGLhzSdtmMul8YzF7fQQIPF0SJg0Q=; b=AEH7Ta/eu6IR3zwgqCvJR5jjQgy/AsGCdcbQLYIU09dnysJgsHuvR0gOcsPzVNho+y W48sD/Z7xvu+N27xoYRR+UznQ9tHDIL90msjV1haBnyI6qzamiFpI4bRnDqM21iv1CFu QEdNU6GM5cy2GmF58Zf4B5pXu8RVsm54QYydNzUPERZaas52n7OuOM36MlCcNsc8kyKu 0RRgEWReil7VmN6tcrLiBfSW3Sbf5d2cH7N6Yn73HAEQIx6ASm0Src73Di2Gpbb6PfPq rrJqqqah3fu0VxQURTocWMD+I9CQCHCxSO7kDmHlI/A+sUMIXCJ1fZ29sP8XogZaou0u YXww== ARC-Authentication-Results: i=1; mx.google.com; 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 d32si13143381pla.136.2018.12.11.09.13.55; Tue, 11 Dec 2018 09:14:10 -0800 (PST) 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; 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 S1727015AbeLKPbL (ORCPT + 99 others); Tue, 11 Dec 2018 10:31:11 -0500 Received: from terminus.zytor.com ([198.137.202.136]:38103 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbeLKPbL (ORCPT ); Tue, 11 Dec 2018 10:31:11 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wBBFUovx4041951 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Dec 2018 07:30:50 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wBBFUnYX4041948; Tue, 11 Dec 2018 07:30:49 -0800 Date: Tue, 11 Dec 2018 07:30:49 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mukesh Ojha Message-ID: Cc: mojha@codeaurora.org, jolsa@redhat.com, torvalds@linux-foundation.org, acme@kernel.org, hpa@zytor.com, namhyung@kernel.org, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org Reply-To: hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, namhyung@kernel.org, mojha@codeaurora.org, acme@kernel.org, torvalds@linux-foundation.org, jolsa@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org In-Reply-To: <1543310012-7967-1-git-send-email-mojha@codeaurora.org> References: <1543310012-7967-1-git-send-email-mojha@codeaurora.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/core: Declare the __percpu attribute on non-deref types Git-Commit-ID: 43b9e4febc66b98d83cc1560196d56ac7fef3c32 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 43b9e4febc66b98d83cc1560196d56ac7fef3c32 Gitweb: https://git.kernel.org/tip/43b9e4febc66b98d83cc1560196d56ac7fef3c32 Author: Mukesh Ojha AuthorDate: Tue, 27 Nov 2018 14:43:32 +0530 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 15:01:48 +0100 perf/core: Declare the __percpu attribute on non-deref types Sparse reports the current declaration of two perf percpu variables with this warning: warning: incorrect type in initializer (different address spaces) expected void const [noderef] *__vpp_verify got struct perf_cpu_context * While it's normally perfectly fine to place GCC attributes anywhere in the definition, this particular attribute is for a checking compiler's such as Sparse's benefit, which doesn't want __percpu on pointers. So reorder the attribute to come after the structure type, not after the pointer type. [ mingo: Rewrote the changelog. ] Signed-off-by: Mukesh Ojha Signed-off-by: Peter Zijlstra (Intel) Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Thomas Gleixner Link: https://lkml.kernel.org/r/1543310012-7967-1-git-send-email-mojha@codeaurora.org Signed-off-by: Ingo Molnar --- include/linux/perf_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 53c500f0ca79..1d5c551a5add 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -262,8 +262,8 @@ struct pmu { */ int capabilities; - int * __percpu pmu_disable_count; - struct perf_cpu_context * __percpu pmu_cpu_context; + int __percpu *pmu_disable_count; + struct perf_cpu_context __percpu *pmu_cpu_context; atomic_t exclusive_cnt; /* < 0: cpu; > 0: tsk */ int task_ctx_nr; int hrtimer_interval_ms;