Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp186100rdh; Tue, 13 Feb 2024 13:34:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6icvKvx/ZgcHhr7eI74cQQwTQ+ZE4iE3yh+PnTiKeJLxtV5EaEO6vNNdAIRuD5k/ftQUku7yJawmYGMihBBNtgOxYWPx2ILmukAVc4w== X-Google-Smtp-Source: AGHT+IGFqHeDeutYKhX63qHu8ZVOnnl2uDBmXpAPXz+hdtw6kH6YscjIpMygRQqaWhgrWbAsxFeN X-Received: by 2002:a05:6a20:a8a2:b0:19e:3c4e:d0c6 with SMTP id ca34-20020a056a20a8a200b0019e3c4ed0c6mr664737pzb.59.1707860047017; Tue, 13 Feb 2024 13:34:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707860047; cv=pass; d=google.com; s=arc-20160816; b=fasvNzaxhEnyIQUfpPzdPa7Ghvrudz/4b81r0/eABR+xG8E9lbbEYLUM/7/P+zwriS RRlsuGC7CW5dOUXLVLubkgzfLSbkGMnt0wYBfPkXy/4qQ6/DC3LhsoMFuMdb4R8TX+tl aTTI1VtXsl1bn8i3rqyMh8AB198epl08WXIfcgOfU8INKEQMWYdBczDF5pUoHVMcdsqq fyJKUFT4Qe1SPE5cycv2n2KtJGP9zlP6kvLon7FoTDvU7QkBsEe7aVtAyEawGmUuml+g Ad8x8ij1HKkAFGLjlNWawySlhiw47usGe16RVY21U9WZuna+MPMeccMnyV4TLJtw52sy 77kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dPrrXtUFDA/aPNkcV7uPwb86n8qu+g5IfAXRcr4JbEY=; fh=OEEX1dcir/iiIA1yGr1pSfyyrPMIz1Bozhi03Mm/SpY=; b=kevsT5Wh/q9r37jG/Hcjo4Jt29PC70ieYB3ueaGjo/dHZK3JMzfryWIZr+VGyMf2TJ Qju3sgKxf6e2YCmmzX9KJRsMPMHO9EETG3Sz+VWZqF3n9q8Jf1Nw7sqgc808w7DdmyId vPFOL6mF3QlwkmW6n48WN4UFIF9CZ332bPjEjwYt/HKRo8g9k3E5QrCC3/P8P1Jjlwsv n+BfR3Ap7lbLibVuTETpddXwLlhstRrEdy8yymqnCCDwq7HFIw/cLtd9boTr1V89+Kko 5wv0yfxzAH3QvzKo9QOZmjcHIbuU03cR+0VO3novYCi6y/Gkv6Pjb+j4WanZb0T923Pg LQ/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mk3HhX1S; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWNCntB5vJ+16GOSFRnSmhFw3qArMCMm7dcXV9B/iN+1QfqgTO9WcLjN4f7w4/c9YaH8eyosfYAncqTNpDBJKeMq5OjlNVQwfwAPMaExw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t10-20020a62d14a000000b006de378fb498si7126706pfl.249.2024.02.13.13.34.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:34:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mk3HhX1S; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-64335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AA37B28DFFF for ; Tue, 13 Feb 2024 21:34:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8813B61680; Tue, 13 Feb 2024 21:34:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Mk3HhX1S" Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25F0A61673 for ; Tue, 13 Feb 2024 21:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860040; cv=none; b=Dceoaowkly7R65Ci2eh1Ipbec4eYpuLfX3YGUf4J5MttXAY9H4SX4ArYbp7+PsGDvt6Ehmr8OL+l5V2cLbRaCLo6hVrqfWSwEUcaf/QwY3MjHTZH30zLU2OsKV68TX5zHZ9MlkkjDctc2/IADuabwF/ROdRWt0/8VUiAcmobpKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860040; c=relaxed/simple; bh=dPrrXtUFDA/aPNkcV7uPwb86n8qu+g5IfAXRcr4JbEY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pO+W1QRr6WK/FePSTfbDa1PRrWRyd3lH1w2JV400NM4ftefXxaJ3AcrP1n52lXUQtbN/K7zYq5FF0vIyuBF6EeslLwbPsEQZbU84wzRXaPot4NiYjUB+xxCyEUz5j25rEkL6fkleDNAEIZejISd62sCo7f3UIWgkfmTnzGcfKrE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Mk3HhX1S; arc=none smtp.client-ip=209.85.219.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-db3a09e96daso4065259276.3 for ; Tue, 13 Feb 2024 13:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707860037; x=1708464837; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dPrrXtUFDA/aPNkcV7uPwb86n8qu+g5IfAXRcr4JbEY=; b=Mk3HhX1SOIpYSZbMjz1+YZYfLdoW07ghN51SGBx4RMJDurH4iigF9edLE+S7ltqWPD 0TWwXR7+110wWVCMHIZzvYP6v7LmcIWlmpiIfuLAZ2qc8TihejnEJAVeG/NBnH7ji1So 8Ws/LIxcYJfqa/XbUdX2DqrXcLZ2C8ahSyU9rWMNj0tDaRd3g8vFv1c4yv+PkYKq+i+x qUsSZopIFSf9Kxw++m/ncioMHBEuuVVGvOhCfFsWcOwArGaQTm2YHrsNOxMxvdejZXx4 wROjoWiB27j1bdiLV9cufTTZsxG+WPgcIjO9Ylpx75ERmxYNb+Ma1qWwrC7Z25rDrIMA v/ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707860037; x=1708464837; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dPrrXtUFDA/aPNkcV7uPwb86n8qu+g5IfAXRcr4JbEY=; b=wgrAhOrdoK92DBiQ8YLmWS/kxVMJWy+AR2szgNFXAC1vjEWo23Gkk4ypfu2cGWm0cB RmXhTi7YKEAwPM3hrzeSv3P14jCTDgW0Uh1cEH7/30MY+6jnvkHI8xoo1QtXLJHAxK61 BllQiiWItuhNmCxHSWeUj73Vyw/Rvp4Kmtb56Dz/HBYujzwcVVOWM2QttK3GV4imgmub DWbIfqh5M8RfI5V9a4wP1aa9yApatAO1AFKq8WkK0ECmb488BtWuoiT4g4cNq0V8aLur dEGa8TPgfhpR9JzOE7Cg6Lgpp3u20DxSpm1uxbrybpnsfkDFM/gO+UDixuDGbpJTp+zW jUKA== X-Forwarded-Encrypted: i=1; AJvYcCVfRHG/k8QDQ1ZKBRAMct+wUPaGeOcoRz6t2Lnw8o+hQZ0va/VMlRtwoLogZ3afOYc++ivm+hrS5FL1qVWI82nmKkWdyUO51+yQBlLe X-Gm-Message-State: AOJu0YwMf44xzq/4aSAOXKjNuUMBy+JjwhP99RRCgsv0G3WLy/p/bM5D uTU8ZTVXemtHa1kRC07ptmmJxkLtW4/Cps+7DYfJX88GFelaLLCcoR554WM79wph4uRMAsC0rrg bG+X3DKZei2lrOzzn5ovxH3260tGmqgs4c8WLzg== X-Received: by 2002:a25:838f:0:b0:dc2:1f53:3a4f with SMTP id t15-20020a25838f000000b00dc21f533a4fmr390290ybk.5.1707860037159; Tue, 13 Feb 2024 13:33:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240213093108.13922-1-brgl@bgdev.pl> <20240213093108.13922-3-brgl@bgdev.pl> In-Reply-To: <20240213093108.13922-3-brgl@bgdev.pl> From: Linus Walleij Date: Tue, 13 Feb 2024 22:33:46 +0100 Message-ID: Subject: Re: [PATCH 2/3] gpio: cdev: use correct pointer accessors with SRCU To: Bartosz Golaszewski Cc: Kent Gibson , Alex Elder , Geert Uytterhoeven , "Paul E . McKenney" , Andy Shevchenko , Wolfram Sang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 10:31=E2=80=AFAM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We never dereference the chip pointer in character device code so we can > use the lighter rcu_access_pointer() helper. This also makes lockep > happier as it no longer complains about suspicious rcu_dereference() > usage. > > Fixes: d83cee3d2bb1 ("gpio: protect the pointer to gpio_chip in gpio_devi= ce with SRCU") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-lkp/202402122234.d85cca9b-lkp@intel.co= m > Signed-off-by: Bartosz Golaszewski I had to check what rcu_access_pointer() does and it's clearly the right thing to do so: Reviewed-by: Linus Walleij Yours, Linus Walleij