From patchwork Fri Sep 22 12:20:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 114020 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3225575qgf; Fri, 22 Sep 2017 05:21:30 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAheoBS7GX2mupXD/NsfrFzpNPIpbXXH+rrtUjkjivlE3t5wJih/v12XNohrBYJIXsmZzOA X-Received: by 10.84.238.194 with SMTP id l2mr9013715pln.319.1506082890579; Fri, 22 Sep 2017 05:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506082890; cv=none; d=google.com; s=arc-20160816; b=xxfxCa3p+KyYwJ4gW0aAGQ0bsaTdTvGZEO7evw9qeUgwIMZ/mCNeCowbuE1Za4xgig sZLCSgokTqSiSAVlp/C/Sqwa2gYoxBHcXQWjIWLG2O/1vJUnRUagPBzVl0sN42pHob5m i5AmjtKc1DTkhp9PV+teXyB/qKuAA/cBMBEK0jn1/5dWnfBotn3s54I9+aI7Q6rXpAMg dckoVV0HynQ2ccp5kdWRb/kp/YDaq91feL5xKwAIE3ncNhg4MALZHVH3HTBBdd8xZc5H zpIU9jIGZp1PdGGX24+Degw5y1hc7ddPMy0oDeoZ/vL6g16+yH5Fc8hvnRic0wf/PhyB CNFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=X0TIhDStDqWVt043O1cWmo55yBvL+gB3uz6sUozfa3Q=; b=u99AQWevi+SmhHLToKvNu2VMWSF+uk/db702zFQxz/c2l53Oq6mZ9BZTd9gJtm8dHa 1dyk+qBO5HEyQPHocCIj4g8k6cFnRWxV/ohS+sRraysRUGTCtCzQp1KWpQ5k600NtxWC 6O832TwsFLdkRg7gpSQ/FF/xUKzN86jywGoT2FlTIxMZuiK5KWQGeFZd0K7Gq1/NW28X I8jYx2D99Tk8zLrQSqE4O17iNRFvwYrb23AnsW0yxANplidrG86mShTw4hWkBxUij3MM DxX7/UnWNv3or+lvbwOGwK+j2D8H9RoSC5t6JSK+RptFnqX33fsicruocFd1tEl3F1E/ pxTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=eEpCPvk8; 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 j3si2651523pld.208.2017.09.22.05.21.30; Fri, 22 Sep 2017 05:21:30 -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=@nifty.com header.s=dec2015msa header.b=eEpCPvk8; 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 S1752283AbdIVMV2 (ORCPT + 26 others); Fri, 22 Sep 2017 08:21:28 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:48766 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbdIVMV1 (ORCPT ); Fri, 22 Sep 2017 08:21:27 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id v8MCKlL9026369; Fri, 22 Sep 2017 21:20:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v8MCKlL9026369 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1506082847; bh=X0TIhDStDqWVt043O1cWmo55yBvL+gB3uz6sUozfa3Q=; h=From:To:Cc:Subject:Date:From; b=eEpCPvk8XmRhHnufHtwe4I/sf8QSqS7L0rWx8C8CFwFEhNa3rdcGGWRXiBEabOKQK vCvnLinyh9j561I0EcBVqD/0Q7CWj4KZjBIO+vTttb+rueYT1VpEB8pjsdTugE6kYK lp3T478CsKVHcAeDykQ+Wz8j5N7KP21NUckrFDZlpesHJ3LRIoJoS7AddadRFolYUX FHGAkh/mo5pc9OcQYfF0ScODYySFpb6I8vaV8aT+kor65oDnDZh9PtuXAO0xvZEMKs X3jYXERfHjoyOqAqnoHXb7X5sAOiWtCTPn1SH7bePbQi2M1h80UGeZBFQPFl9reb2n H9AInOB76rhZQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH] irqdomain: add __rcu annotations to radix tree slot Date: Fri, 22 Sep 2017 21:20:41 +0900 Message-Id: <1506082841-11530-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix different address spaces warning of sparse. kernel/irq/irqdomain.c:1463:14: warning: incorrect type in assignment (different address spaces) kernel/irq/irqdomain.c:1463:14: expected void **slot kernel/irq/irqdomain.c:1463:14: got void [noderef] ** kernel/irq/irqdomain.c:1465:66: warning: incorrect type in argument 2 (different address spaces) kernel/irq/irqdomain.c:1465:66: expected void [noderef] **slot kernel/irq/irqdomain.c:1465:66: got void **slot Signed-off-by: Masahiro Yamada --- kernel/irq/irqdomain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 3a01c27..44a9908 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -946,7 +946,7 @@ static int virq_debug_show(struct seq_file *m, void *private) struct irq_desc *desc; struct irq_domain *domain; struct radix_tree_iter iter; - void **slot; + void __rcu **slot; int i; seq_printf(m, " %-16s %-6s %-10s %-10s %s\n", @@ -1454,7 +1454,7 @@ int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, /* The irq_data was moved, fix the revmap to refer to the new location */ static void irq_domain_fix_revmap(struct irq_data *d) { - void **slot; + void __rcu **slot; if (d->hwirq < d->domain->revmap_size) return; /* Not using radix tree. */