Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6590879imu; Wed, 30 Jan 2019 18:23:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN5AW7B85Lf0pt3jdFKRtBSL4GUyKfT8bvkqm2UXS9O0hfVwnlypuQmgQk0WseueEW7cDV8N X-Received: by 2002:a63:680a:: with SMTP id d10mr29988328pgc.396.1548901418780; Wed, 30 Jan 2019 18:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548901418; cv=none; d=google.com; s=arc-20160816; b=NdzYU+8BPB5D6jWOiTkSTxVhYXbefSwAvRfeU0Ip0t/xIhldKB58G9jZpl2B4nEna2 Im4sNRpc9sgqlR3LqmzotZX7FIecH01zOvAcq8croTaf0BMoLx8zE3ZAWsduFTTeF5AP xgloIV8ZFy+lgkAByat15SXP6QzEF66QRt60NbriUdn430QapKRdBv0xRYQ2gTGw+u7h isDsuoIM1PdPDJhGGYKsqdVgi1lJFNgBBxxzUOLccKRVADtCNdz9AEZ5RIcliboNHa/M c1JYuEo16JUKQfW3AAIcZBo6wPy4/sn6gf8cZVo1guSD1HLCUy8qrKm7NdUOZARJ2u9p 2eBA== 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=+QPiyMAcDRri+dceZy9yvCJRDHdeJZPlPkfakOicKfc=; b=fMz7HHBju5Envr6WbHbOmWTly06exOHzoJBs6EmuzsdzLEUrDDPab/MeXyhmz8Sj5D rt8vXblvuD/bJ0k5hJ00oXxCm0c6CtN7RrYGDmvfWa+Ej+MXvOi8zfyjYU5gK0o0m3Na +H2pNSkVGEivIRltL9WjLK5JPy8rik7WlZx8ulwjrrGhHLHyPccR1eMUm5q18Nhzlke4 rOqusFxqbGb+H3QGOPpqhP2eKyatf22Z4LZ32w/ay1wtlRi8jW2qjR3PhyjgZIOJJHxv I3TsmBTkfO9XHaH+Qg1o9VqVw/T+pqhoieScVnGshTzn2mld6Gn3zisbDqscF+MeD2SH pFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=enDt6rEX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si3052555pgm.250.2019.01.30.18.23.22; Wed, 30 Jan 2019 18:23:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=enDt6rEX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbfAaCXP (ORCPT + 99 others); Wed, 30 Jan 2019 21:23:15 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34122 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfAaCXP (ORCPT ); Wed, 30 Jan 2019 21:23:15 -0500 Received: by mail-ed1-f66.google.com with SMTP id b3so1357098ede.1 for ; Wed, 30 Jan 2019 18:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+QPiyMAcDRri+dceZy9yvCJRDHdeJZPlPkfakOicKfc=; b=enDt6rEX40mOTT0w+aiT8XOU+slGoFcEBr01eY4Xp/JJuuXkHG25PYZUu5+UPaVgAc 2xr42ZvxnkWT2V4IF3VHXOkSHRO2L/5proMX2+WUH7c7asR70ZSumenGW24dBUkBcVX3 S2tPn+nskdsa1eIFo8hLN6eaaqjKR7RVO9cOHxwpNFFzuAZo1IZi98RYmpmz3ZoGgsQx rXxUT/23+tADTv6Zg5yQAH3Y1jJV6/QOkpiPkbOZoXLBLK6QfjkIfDGYIuIF8sGwnBS5 XD3J5KZUddPvwYaayl8p8xSeMBL7qi/Bt9nyMRGaP4VNobmZVGCiweHAavkcDQPe/nXb E52w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+QPiyMAcDRri+dceZy9yvCJRDHdeJZPlPkfakOicKfc=; b=PdDdRS6UtKel1hwEA0tcwel4k2iSSpFdK8IbOEcqqyVezEdqyVwrhfTj4+DunvXWzU f0O7tKweYlOweQU5GjRuvZspVquydZp45EBzPYea1MyV+1OBKnADN5oeBX0tGym7RYaO VwyQ+sevP9nfiGvq7qal3TP8qEQCxC7rztwDryAeQKDIyzHuHjW7WieaBewmDFcDcKu7 gr9BeNo/yHb9fWXEStDDzydb2PpzN6cDuK3jCh2PpKVNbHKPYDT4bibGTeN9839iQaI6 OAdYw4r4QCLyZEkJ7U7FgqOFfz5GONOoXbi1ByhN+71/+tG3bnLl2uBFEkiCkNyArd9d Yy3Q== X-Gm-Message-State: AJcUukfGGAp3bacy+5XfhDmgSucZKIRW3mF8Fn2sLuRJtl/OaI8F2QTf qqbT6jEhAdYZeQRZ411rQZX4dnFe X-Received: by 2002:a50:b964:: with SMTP id m91mr32412258ede.184.1548901393308; Wed, 30 Jan 2019 18:23:13 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:40eb:400:e:1ffe:8722:6695]) by smtp.gmail.com with ESMTPSA id 97sm923114edq.45.2019.01.30.18.23.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 18:23:12 -0800 (PST) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Stephen Rothwell , Luc Van Oostenryck , Jens Axboe , Andrew Morton , Thomas Gleixner Subject: [PATCH v2] relay: fix percpu annotation in struct rchan Date: Thu, 31 Jan 2019 03:23:04 +0100 Message-Id: <20190131022304.48365-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190131105937.62023ef1@canb.auug.org.au> References: <20190131105937.62023ef1@canb.auug.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ** CC: Jens Axboe CC: Andrew Morton CC: Thomas Gleixner CC: linux-kernel@vger.kernel.org Fixes: 017c59c042d0 ("relay: Use per CPU constructs for the relay channel buffer pointers") Signed-off-by: Luc Van Oostenryck --- Changes since v1: * use core.abbrev = auto for 'Fixes: 017c59c04...' * remove bouncing email address --- 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.20.0