Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1027939yba; Thu, 4 Apr 2019 02:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOsgcbv9L3dow/ElN3MKrsJG5odi2edZdrPBsSVpLHmb4OY38VO6eXMFAZidmew4AClGJl X-Received: by 2002:a62:3583:: with SMTP id c125mr4741990pfa.169.1554371165526; Thu, 04 Apr 2019 02:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554371165; cv=none; d=google.com; s=arc-20160816; b=LCdbOmQlstqg1U/m0hnVT7y69CIHYQXH9Ir02+5+chej200Pi5v4bnN32Ssp1Uzwiw rWuSfCNhRINkuROuZ9uYvKDadqBmP5//vjEqtI7r1rXu/RdVmY7/zznN/ay3osNR5Yhs 6mxe0NBf96EMt2hQ+EebF9gN87EJPpnZGJ0r3T7A1L2jIa2/2dh0AVmzAby6Y7hro8SI PaglG3G6VdS+nuZROP797tvfhiJnin3lRUulDQitnNuu1m8Wj2AXmXaA6BXlat2yEhHA u5V0mWT0gQP/60+MOs1fEBegN8bycWd/CZUvwnqPw3YqIU5deG2KnCLT7DchkaTohXBW YqUg== 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=37qHBWdKFEb1yEs6bCfQnJ0Vj9+Y2jmf+ruui//MJXs=; b=Fsus3DYblh3pnCfIDvwK0tid1XI3LuPAmDo7GPeyrbZUJ/RCkPsPdsDTp5Yv0Pwbwv YuOi6p6tBodEow20issPjl0Q5ZWd7XSbPG0J283Oe9n21/EUuH19tqYK6RnlMghjd/uk dyYLzARZqbDEi2LQwCfRlZQxxBl4cx6BqfXZwrqkPwZFIM/xvTfHV4Jyf9lY/S7Xl6m4 hbf/PTPWsS9f4oG/rcY8qQcV+G/q+F4cVMbxBtukeuzN87ABqTM9TXhSyA0I4mmuymTo qPntuWGyuZb+Fh/Z0xmIlKSKQxbg67OttBbTE/FQxgy1nD62DmE8B4Ylf+bEY5+1FR8w GBNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ochXxN3T; 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 h14si15905539pgg.377.2019.04.04.02.45.50; Thu, 04 Apr 2019 02:46:05 -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=ochXxN3T; 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 S1731052AbfDDJow (ORCPT + 99 others); Thu, 4 Apr 2019 05:44:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730724AbfDDI70 (ORCPT ); Thu, 4 Apr 2019 04:59:26 -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 55D0920652; Thu, 4 Apr 2019 08:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368365; bh=aRQlGvE+vUmaVktcUcH0m4+YZsFDCT0ezh2m8A00NUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ochXxN3TvGov0loCQLVomFP7JVwJzs8HBbfLoC/FSqVsVMMJ+jkNbp5zyaTfrNHlG GJBkBIwha6+qdv/3jN2CEpyrwP+rDlRTGYwVkyNEF1uJKmvhg30umF9yE3ZIX0cVxq 7LdJIhkkF5rH4qWEHyvOrk+zWn5HTh6t26GSwSCo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luc Van Oostenryck , Jens Axboe , Thomas Gleixner , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.19 013/187] include/linux/relay.h: fix percpu annotation in struct rchan Date: Thu, 4 Apr 2019 10:45:50 +0200 Message-Id: <20190404084603.719646890@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 e1bdf01a86e2..c759f96e39c1 100644 --- a/include/linux/relay.h +++ b/include/linux/relay.h @@ -66,7 +66,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