Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6262030rdb; Thu, 14 Dec 2023 12:57:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoi2+f3E44obesBPZb2/12DeHABbFf60MgBZje4Xyw2ng7G5aE2uYssgKsZoG5OKHXk7Qo X-Received: by 2002:a05:6359:2c43:b0:170:2c52:2b4d with SMTP id qv3-20020a0563592c4300b001702c522b4dmr5696031rwb.19.1702587467436; Thu, 14 Dec 2023 12:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702587467; cv=none; d=google.com; s=arc-20160816; b=OIwfYmQGE8IDfHSnp7NtPNOUtyYN3BidI5gkIofhJP6SFAD1Td7fAZet5QDIGVvQ9v 9BjvFJbeDu549Pd+lQyQAzDFA5IhUGZzJZCD/DskZ7go5jJGob4eCp40xrp8X+ZJiyQt lk5LY/wlh0FSdHheLvnz3gcXufZdxgd1OZi1LXC1QQWmqXL/wiYFyxJB9n/4JnnGvtxu KW8bDdwEVJ9EdiE2eWcywDWU5SsYmq92Morp4TmNCB3eqvfV4M89jkGAmP9TUUbLdgld Zgt9Yp/XeGhAJVFLfs2bCgP6KFq8b7szgtDEpxpvqVfKeXzuzGC6QXxD3dMSDIN6fxXz 30iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=TmJ2EkA5b2Ie92om73Fjs7VxNUILpDnlthZoiY7r/uk=; fh=WsgOohTnnkqGbFlRnPszlY9fgxA/IWFbOqloGQOgBxI=; b=tpfMRnjlsDloQa5yxCTaSmaO9L+UkYoVMq4ss2xmBNv9gycsCY//3Tk31nz3LBd/HW He2TLA/agoKRJHvUZePmjIS6BfGfslDV5zODx/TuVFQcZXyrbVJyK6mvbK6WHB5jCyGe uumR/YgwWKwsN6/5XXYZthAmTqlZUQ6IlKwK5FbxJ5kjpOODTdNymf9RVqwHvm1OkdJz shZvPilwvSbHyoJUaMhjUh0tpKdqj/8yX+GG5zxihXVrb4kpCUDhOqCCMAnr/PpvRqQj 1mnPujqCgmjTr2bgWn6puhlWGzn4YDVmrWGlKXKLLe+SXjSYy6A4ikKhgGGNCAdWcft/ hZzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ciwv4FcI; spf=pass (google.com: domain of linux-kernel+bounces-98-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gx10-20020a056a001e0a00b006ce82bd93e4si11689788pfb.139.2023.12.14.12.57.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ciwv4FcI; spf=pass (google.com: domain of linux-kernel+bounces-98-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 C2397B21C96 for ; Thu, 14 Dec 2023 20:57:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48A40282E7; Thu, 14 Dec 2023 20:57:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ciwv4FcI" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 7B1F66A359 for ; Thu, 14 Dec 2023 20:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-d9caf5cc948so8059871276.0 for ; Thu, 14 Dec 2023 12:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702587426; x=1703192226; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TmJ2EkA5b2Ie92om73Fjs7VxNUILpDnlthZoiY7r/uk=; b=ciwv4FcIi6VElud4i9m1U2zfN9XilX3Bjj1eL9DUmN5aNUINZgWlcK2551PyEctTj8 XH+jyJBy/6HDp1Gq+sYtgfX5MvB6pYZ5dJHDEemlKf0XG9FW2dto3dZtXrXLLLX/1cjY 8dmWzUzmjQ78UyNI4GSDxVqnFI0X76eylJ3fo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702587426; x=1703192226; h=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=TmJ2EkA5b2Ie92om73Fjs7VxNUILpDnlthZoiY7r/uk=; b=mL2Qn71r2slk1yiEYguy1f4vfyQ0Gn7GuuS6nHbuZNFYOY+RA2qFvRmb1rOlxblwwD Th/3mUMTW+bgZiAG+6mMmoboP6uiZ/STtwWwylHFmxwjCpIQoC0J4Qee7mM3zekbcJgi TPvsyEB90pIPBSPWs6ft1NNgq2OA4cLGTjEzs2T6vvHUUGoxirpxLJiCLRbEUIGmQqPd fZxUQlKcz3chz7YBJucXuRR/PVFcId6nkn4PZs3bla1t4H4b0M+pISIhj2+glGqw9qEX La3aDzk/tZVYoRxoDzhxv9fGjIF3fTc/v3rxZ3uXj6m1O9VOu7FQPPLqvkUrkTbGiZS9 phSw== X-Gm-Message-State: AOJu0YxksVEcZG3FemrdPlkb3UxSWnEAipicoEGv7ZKnO4PtkoNi4fnJ EfrYcMN95g3uROzk/ri6bhmujCF6pH65KeKsd8GJeg== X-Received: by 2002:a25:cb4e:0:b0:dbc:d37f:4434 with SMTP id b75-20020a25cb4e000000b00dbcd37f4434mr2198318ybg.7.1702587426332; Thu, 14 Dec 2023 12:57:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> In-Reply-To: From: Mark Hasemeyer Date: Thu, 14 Dec 2023 13:56:55 -0700 Message-ID: Subject: Re: [PATCH v1 1/6] gpiolib: acpi: Modify acpi_dev_irq_wake_get_by to use resource To: Andy Shevchenko Cc: LKML , Raul Rangel , Bartosz Golaszewski , Len Brown , Linus Walleij , Mika Westerberg , "Rafael J. Wysocki" , Wolfram Sang , linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > > + *r = (struct resource)DEFINE_RES_IRQ(irq); > > Why do you need "(struct resource)" annotation? I don't. I originally started working on this patch on a kernel version that didn't have 52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal"). > > + struct resource irqres; > > struct i2c_acpi_irq_context irq_ctx = { > > .irq = -ENOENT, > > }; > > Hmm... I'm wondering if we can reuse irqres as a context to the respective > lookup calls. I'll see if I can safely remove it.