Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp110733lqs; Thu, 13 Jun 2024 05:34:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNNd8V16gBaX6fGmhrTKB3c8S0PO+lpFOmBHcU1Cdgwufe6Yl7NzWGbo0rVo8GrlrWyupPR5QkrGb3/ZXZM50fKd+RYmdaBh1peg7aOA== X-Google-Smtp-Source: AGHT+IGgr46Q1M2d3w1MJquGs7lzxZeXqT1GPJ9HJB7q6fjsVtV2i9nuB6XPA+CferBPGTiCnXpJ X-Received: by 2002:a17:903:2341:b0:1f6:a572:86ab with SMTP id d9443c01a7336-1f84e2cfcecmr42973025ad.15.1718282079246; Thu, 13 Jun 2024 05:34:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718282079; cv=pass; d=google.com; s=arc-20160816; b=Mpau5H5GCzk5QR1N2uT6XuYf1twNMNiWH1xwjRqcCYpJ5X72+paA2mW2CiHvEnnFuA 1dXrAoox0mGvbwn+a9+kzA7rBBs8NvHM90JLSvNokexpjAtbgYNtXSBERRjb2apJJvdY W6BrAiZw1wAM4xLTKquv/2YIAzWv0QemClmbwh69iLRyiyewFSqo/MUVb0LgYHZTweHD BgM8qsusgF350tCNqntbF/Uve34qFaO1nZCtakrrneSu1Ytrg+8hOxvmAXRo7vq0yCPW gvBGI0NKAUC+fjdcEVr2StOIEb3vBZP2Vatt+orPFyXN47UlE1GEg5G9v6vAmxLARtdK oScg== 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=HBFcO3MnDbEgvd9n1zufKisPAvQ+5EkOfA3eyt/cemA=; fh=ntegUr0cpyBVVe/PIvexT8sLugr296zh0WaY7LIoMgk=; b=0oxJz2Tt0tqDvKyQNvqRfTvS/d6UvVO3Dl5Ps5E7lsIEoDG4XofRAYmQ7ZnSqs/HSc YT14tWkNmBpTHF/8DOTNOgPfMGB/adcrFAf2u0uvj1HrKYqFufp/J9Ub6XBLIN+eAALy /yUJSPLcXLgu/nccI5bzfpSARkrZ2HmGPbUJmFYIrtfMJz9XAaZ1hBwXrftIl6T8sIOl X5MIv3GHq/vOMv51Td7S56xuel/uIkEaBmeeC2HcmwwhA79ChvMfwDLM3ksT+Wrz+DSm ICju/5dq3YHSFogbrmFc8Fd69PLfJKeZPZbVuM3jzQCrQlttqkEHIPEHg2deRPNpbMco BAhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=NVPA4wvU; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-213081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213081-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ee55fesi12050525ad.422.2024.06.13.05.34.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 05:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=NVPA4wvU; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-213081-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213081-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3036FB22051 for ; Thu, 13 Jun 2024 11:18:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0149A143735; Thu, 13 Jun 2024 11:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="NVPA4wvU" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 A402C13D28D for ; Thu, 13 Jun 2024 11:18:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718277506; cv=none; b=bqb6PhwFcDiLpDC2525Va+BB5pdMTFICG5OfTDut+6ywfmpqj9PkwSBpIE5s4QVOJDz3nNyH+nISez/MPF2evMq1xpLU96Y2r8Av1pFyZ2Wc/KIU7mWoNsolxU/yLFT6wFICYndVtNtr6k+ilx1G5HuXRBmDAmzNwsDenPlBE1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718277506; c=relaxed/simple; bh=HBFcO3MnDbEgvd9n1zufKisPAvQ+5EkOfA3eyt/cemA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=futBZ/jnR6kC/y8qADuQRB8pnCorPWpCBzQO0dqV+kL8E9mAuh0untooR9Q96q/iwGod/HS9kjlmhIfHgdR2PX+njHe7B1HFI29DoeUTgUxzuaNFn50Tg9IMUBgVw8OttmxdJ7Y/tsTvKnajMFXTbP0nNhVzABN5kbJ7/z9Wkdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=NVPA4wvU; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52c815e8e9eso1028180e87.0 for ; Thu, 13 Jun 2024 04:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1718277503; x=1718882303; 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=HBFcO3MnDbEgvd9n1zufKisPAvQ+5EkOfA3eyt/cemA=; b=NVPA4wvUQ6PZGYycD7ersd3mzlNbhyMnJuiEascfPCY+WdRa+vGieO2XPZITu4iTnA ic+xnl9MqTgGnyAxu70Fnt1UMVo+G98EwhMh5raKtjuHVN9grDRiSFEKiqVmGc+BS6yI EeJkQwZynWdNqFx3JVScoMiPn2ZqkipMRy/wd4CGi1jBr4G9hV27PMNUU15L0Bn4lszK MiwuiDqqHDDlbZWHT4+xG0flTt8DvddWTXaiJTj4/rG2EI/uJz13Hk8mr7xDecZg+gVE BrQqEuVN7daXlkOTSCPrsnMuu/clBxl1e3PcYjtc1cRvcnxPtPqFF7yKRBsbY8Wkny1s gV7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718277503; x=1718882303; 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=HBFcO3MnDbEgvd9n1zufKisPAvQ+5EkOfA3eyt/cemA=; b=HjrtRXh3i6oNlJzdVzlRP4UMEPRTRuCBk67ud5MBVWdBS3eb8xdqoolkvtwPD6IrLO rcD0kGDsdEWLCUWhLkw07w1EyEUylHrTFWRpalFEtO3AH6TfmK+kSxLjOadTNzeNId9n 9DFOpQJbgAxNNa9oBFvKoZ105zY4NGEZHePiNHSmp9m0xHhqaGZs8UlNoztFBbo5ZQeR JSeFhWCIToztXbJNlthndGHH7L+SLXMP+rTXx1rXCAgS+ymCOAtPYDQjv/W2f6K/icvy MHhiCXO9m1NrzHOkyEx7yGniawDReYrKuz7KEG1n9y1lD8TKkFhlm8GgNPCPEeBkB7Wh 3eWA== X-Forwarded-Encrypted: i=1; AJvYcCWxkr8LOAEy+SaOz2N4DNmb+TNcfb6ed7KaigPUB6dzGSeuVgo+OLaX2M4NNSkozbM7OlesrBaZGpWhXFXYZO6K+MfxWro6iF691JCt X-Gm-Message-State: AOJu0YyBZorpdwKspIx4fE/O3N5Pfgk+ifKsXH5qNfY1G2KF4pA7nnLc 7++J/tpJC8zjjVz2HdeYdfBKMLPvBHd37+gb0GmkowenM2PWtAmmdUWodjDe+6AWpI78BEb/iSC Jx5Z/yXoKK/H3+XZWTpNBbLgLJLFE3jWJfLDr6g== X-Received: by 2002:a05:6512:3ca4:b0:52c:a465:c61f with SMTP id 2adb3069b0e04-52ca465c7d1mr482771e87.56.1718277502785; Thu, 13 Jun 2024 04:18:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240613092830.15761-1-brgl@bgdev.pl> <20240613092830.15761-2-brgl@bgdev.pl> <2024061330-clarinet-favorable-02da@gregkh> In-Reply-To: <2024061330-clarinet-favorable-02da@gregkh> From: Bartosz Golaszewski Date: Thu, 13 Jun 2024 13:18:11 +0200 Message-ID: Subject: Re: [PATCH v8 1/2] drivers: export to_ext_attr() To: Greg Kroah-Hartman Cc: Linus Walleij , Jonathan Corbet , "Rafael J . Wysocki" , Arnd Bergmann , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 12:02=E2=80=AFPM Greg Kroah-Hartman wrote: > > On Thu, Jun 13, 2024 at 11:28:29AM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Make to_ext_attr() available to code that wants to reuse struct > > dev_ext_attribute. While at it: make it into a static inline function. > > Please don't use this, why is it needed? > > thanks, > > greg k-h I had a struct in the gpio-virtuser module that consisted of a device_attribute and a void pointer. Andy suggested reusing struct dev_ext_attribute for that but I need this macro to access it when only having the embedded struct device_attribute address. Bart