Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5596878img; Wed, 27 Mar 2019 11:23:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEIX1s3Rx5Oqq+pULk8gNbTeLutsc0nHUL5+RZlT366YNpIsvWNtFFM/DO0bHvfu/dvqV+ X-Received: by 2002:a17:902:8c8b:: with SMTP id t11mr37723188plo.148.1553710980902; Wed, 27 Mar 2019 11:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553710980; cv=none; d=google.com; s=arc-20160816; b=aDpZcEO++SaIpe+u6pJhxrIlZ5/Pcv9//eztOo6pDMezhJ826URliJQqbMQPZJ/k72 HpO7YW0eZY8h7qsH9ExWx/tyUeGhlWW5/ozVzOvnm/eCmAdxh5ATKSuig83vk+BMceEs Ffiu7nae9cSg0aUj7p5sh3nlROCN+RN1CzzUCh/9/BR8DYfACvF2y5fXou6a7GKrINv+ FfTSgjiTg1UW+Yso6uAargvYzGOkvpZWAlGqBunuxwMNyyv5T6sAG8MQCQXAuYRSmZXQ Y0V0CTtWNsldJXqtZ5cNpDWRGKp4q3hJZhTy2GlvEwZwzwOXB1aNOPBMTLUkgq853IjW KE1Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9ZBdTr4ZxM/QW7yXJ+yZ5mCpZqd6SEnhQEQdMuzBh/I=; b=Lj+j5bw5qGarTPwip+LWgHLs0okGKG3X+Qj/U4tuueVc0L9SPEuPhic28J5M0ieopa XFbKlFpglurnXU0yLrVwpmnbUWX+bvWCGSGwSyxRyVumNDHuZdHpwAogymMlqmzSrDMq mm+9ojR5yflTWjcRpUPQVvJlrP1f4a/X9RcFdBuTxILMQkSPQzvI4syYC5MQbM3hf82Z h0Fu7UeAxO31DOxF1ecbUNXo48bncNGS8o6M8iBC/LMc587XbH415dCV2o7nhimSVzCm 7me6OTVXzRBt5AeShKfmEvJ17oy6c/h0kbFaJkf5u3JjyYC4bWIq3JTgqlnDWA+w3sNG Loyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FlnNWzZq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f73si19004416pff.184.2019.03.27.11.22.45; Wed, 27 Mar 2019 11:23:00 -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=FlnNWzZq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391075AbfC0SVA (ORCPT + 99 others); Wed, 27 Mar 2019 14:21:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:38552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390700AbfC0SUw (ORCPT ); Wed, 27 Mar 2019 14:20:52 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C77EB2082F; Wed, 27 Mar 2019 18:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710851; bh=6GVQbf2lt4o4cJkr8iHWK16691svUJpHtzL7mxaGbtA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FlnNWzZqv+mH50N2umszljbEPJuoky42aKuqZ9qW1+li2276hqAbjLafqhU44B/Av s4or7/EE3muwnkt2/503cOnWScMTw6T6a2ZMdhLGmjhlSj6LzcUi5EvP1LiTpA5ju3 b/62P8GQy1tkq5EDiqEmvZpLVxS0UbJynXZYa1dw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Luc Van Oostenryck , Jens Axboe , Thomas Gleixner , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH AUTOSEL 4.9 06/87] include/linux/relay.h: fix percpu annotation in struct rchan Date: Wed, 27 Mar 2019 14:19:19 -0400 Message-Id: <20190327182040.17444-6-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luc Van Oostenryck [ Upstream commit 62461ac2e5b6520b6d65fc6d7d7b4b8df4b848d8 ] The percpu member of this structure is declared as: struct ... ** __percpu member; So its type is: __percpu pointer to pointer to struct ... But looking at how it's used, its type should be: pointer to __percpu pointer to struct ... and it should thus be declared as: struct ... * __percpu *member; So fix the placement of '__percpu' in the definition of this structures. This silents a few Sparse's warnings like: warning: incorrect type in initializer (different address spaces) expected void const [noderef] *__vpp_verify got struct sched_domain ** Link: http://lkml.kernel.org/r/20190118144902.79065-1-luc.vanoostenryck@gmail.com Fixes: 017c59c042d01 ("relay: Use per CPU constructs for the relay channel buffer pointers") Signed-off-by: Luc Van Oostenryck Cc: Jens Axboe Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- include/linux/relay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/relay.h b/include/linux/relay.h index 68c1448e56bb..2560f8706408 100644 --- a/include/linux/relay.h +++ b/include/linux/relay.h @@ -65,7 +65,7 @@ struct rchan struct kref kref; /* channel refcount */ void *private_data; /* for user-defined data */ size_t last_toobig; /* tried to log event > subbuf size */ - struct rchan_buf ** __percpu buf; /* per-cpu channel buffers */ + struct rchan_buf * __percpu *buf; /* per-cpu channel buffers */ int is_global; /* One global buffer ? */ struct list_head list; /* for channel list */ struct dentry *parent; /* parent dentry passed to open */ -- 2.19.1