From patchwork Fri Aug 4 04:52:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 109369 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1676175qge; Thu, 3 Aug 2017 21:52:37 -0700 (PDT) X-Received: by 10.84.224.206 with SMTP id k14mr1228583pln.429.1501822356969; Thu, 03 Aug 2017 21:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501822356; cv=none; d=google.com; s=arc-20160816; b=g7wkrEdnmsCYygviRH1/gec4GTJEyKzBk8QUsO1H9YZ9k+THFhmLTD6T5H0xGRI/bo vM6TmIPBDSt25yQA7x25N7ZxHXLPntvYUK8anqhNCuzHdawSn2qTwZZ2YXknFr6/2vyd lX/zvD1tyJ7Fz1MKCBtUOe2iYommyMCXS+pram9ClvoqRxR5ys+dSzW2NWeJLLrHTler ydVRT0PhEfVzB8Hi4OgL7LvgdNHXrWVPasJl8cpg/SyTh7KrCSelLMK0zptNAVLXSCjo 9jt4XqnISp2O1VvZFIIdNVdGYcyGHXiLfG6+M3SHaSe6fhbdTLlfWfeys+h2SYJvsZFU 8SCw== 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=OIwB9//CO0XnSUjvVTWFAAC8vZasQPS8vL1nuCGjPyo=; b=owaZVULiGFTgg6YWavC9TEc8notKlzqBzP9ZgG+BE8tWEOSusWhgIIJ+F9ywXL1hX5 RInIrsGvRjh4HebpqZbj0nN5NPnqH/ZQT7dN6+xdd7xNIzp3M5Jf4B9FnDpGGorVKd2X LUysw4zCcpLOLrpHzgfljtx1uBv5Kzx2dXq2B8SVzeFyVdqUqtqaBhcuT93zRC4VivAx qccCpFoDRG3Un7a9f7gF38IgyU/SusVJ/rdZ18lK09CCgRGe2cg/QeOsKwYWwJRJkfLL To2J9cXj+NPGiFFBDtK6Y+CAkRtZTtg6kS8viGHHspwEo1QEzFWG86gWp2Izjvxjzn1u vVMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=TeGlx9nZ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 1si420493pgr.173.2017.08.03.21.52.36; Thu, 03 Aug 2017 21:52:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=TeGlx9nZ; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751268AbdHDEwf (ORCPT + 4 others); Fri, 4 Aug 2017 00:52:35 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:25228 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbdHDEwf (ORCPT ); Fri, 4 Aug 2017 00:52:35 -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 v744q7lV031193; Fri, 4 Aug 2017 13:52:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v744q7lV031193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1501822328; bh=gDK3mmvuSN4Z2nXnlH7HLBbdTKIWdzuGXmYsSfUuvBg=; h=From:To:Cc:Subject:Date:From; b=TeGlx9nZR9VjGkKqUqmgVEVUI15pYQ72v9RH6YY95hgGticAsuNwkNkAP6+iS5oqF jVJo5uARPkC2OZ1pZg8ghXj+jCni9r5RXHr73p/zMpZuECpL94ms2r5KRMUYUcNUpu 0l8ZujZ2Vh2QKk8sr20wITnihdhvryo+LEhurtxwm0a/1XSSjykbB9XcC60Qh8RWYV TSYxvKVWO3Oz3NeuZ4EAPUYZGr18rlJcGqe7dv1YVhYJq7KhqQe83y9h0bGYgqvKDz 7TkyBqktgzmQfaOaaUTrnr0jNe8RbCO28g+HhS1xSfCbo9uZoqKttjbpHWpgHYANHk 9THeK3BFxNnig== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-gpio@vger.kernel.org Cc: Masahiro Yamada , Linus Walleij , linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: add __rcu annotations to fix sparse warnings Date: Fri, 4 Aug 2017 13:52:05 +0900 Message-Id: <1501822325-25512-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Sparse reports "warning: incorrect type in assignment (different address spaces)". Signed-off-by: Masahiro Yamada --- drivers/pinctrl/core.c | 2 +- drivers/pinctrl/pinmux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 89b9ca77daea..60f82c67b92d 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -686,7 +686,7 @@ EXPORT_SYMBOL_GPL(pinctrl_generic_remove_group); static void pinctrl_generic_free_groups(struct pinctrl_dev *pctldev) { struct radix_tree_iter iter; - void **slot; + void __rcu **slot; radix_tree_for_each_slot(slot, &pctldev->pin_group_tree, &iter, 0) radix_tree_delete(&pctldev->pin_group_tree, iter.index); diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 36d5da9dc587..55502fc4479c 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -833,7 +833,7 @@ EXPORT_SYMBOL_GPL(pinmux_generic_remove_function); void pinmux_generic_free_functions(struct pinctrl_dev *pctldev) { struct radix_tree_iter iter; - void **slot; + void __rcu **slot; radix_tree_for_each_slot(slot, &pctldev->pin_function_tree, &iter, 0) radix_tree_delete(&pctldev->pin_function_tree, iter.index);