Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1346936rdb; Wed, 20 Sep 2023 06:53:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsozcPVeETGc9kCkxqDFMaA7n3cFmNlvmO10XYxvEq3sdLYDvh2xs5fecRt5lMJfMiY74N X-Received: by 2002:a05:6a20:244e:b0:14d:5580:8ff0 with SMTP id t14-20020a056a20244e00b0014d55808ff0mr2865157pzc.25.1695218018173; Wed, 20 Sep 2023 06:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695218018; cv=none; d=google.com; s=arc-20160816; b=wpBurfkgD+yrr/KxdVgu91q0Rft9ZjtFvpd3CZeqxo/mPIg2iSWCpcLJ38WMrcF3cG nQGIzsSdPKa28ljRc817DeuRpS4d3hP2JRLYtCJzZjEMiGgrtMFxQRm96BGDgv3buhX2 LhFG0PoaTOLdED/g97qKvAuKD256g3VBxIbl42EjRdF7/OFD0Vq3YcYErS1t0ZjfYDxt GnRVXPfQwWcJrcRRamjiwXe8jXjRG9BCYoqstB8Nv7oWubYzyAkfqIC77OXjNZHGgYto LzqB3Q5E/Je9zcqX8NQ6L/cvCPU29dqMboFpJENbxx2TCTzdZyTpdsQwgqtJQPiPSXvr KvRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wYvirtTEHfvn8mKnPG5A91Sh0MgTtcoSl/PA6YHPo2E=; fh=Rcx47E6PCSF8kkSNjZ8owKFg+O35ABneg9C2ryLA7vI=; b=BUfvkPCnmgqurDjicJ6jaTrAs11XHKCHfyJqqZ8V2z5iJz1VMpUgPinejJ4EOEqhrj dEWzwE1ASt7oULLbc2pQmDJc4Wg4Fd7dqclSs/mlj8OPOvRdz5SpQoJ/1eupoKDMtOZT nvzZ2gxk8OCNw2hMCAM0yjZ29uh29HqF8LHTkzJEIHT/I2ieRN6IGX3brDsHIO+wTFXH sEJKVDI7OWeJrXgIYady+uvgHbik+uWJpVAQ1eE/D/jTQrTqVcuK+4M7elRBYwWCxvR0 TfXKvM3gBMLOoeESQYDcjErByCfDox12MxMKmxU9OCRRvEZ4lxY8OJIHCacGfgKN+XP8 U4Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e67SKoZX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id w20-20020a63fb54000000b00573f786103dsi11358998pgj.754.2023.09.20.06.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e67SKoZX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8933E82B5141; Wed, 20 Sep 2023 02:03:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234132AbjITJDV (ORCPT + 99 others); Wed, 20 Sep 2023 05:03:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbjITJDB (ORCPT ); Wed, 20 Sep 2023 05:03:01 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42BA018A for ; Wed, 20 Sep 2023 02:01:36 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-59be6605e1dso71269867b3.3 for ; Wed, 20 Sep 2023 02:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695200495; x=1695805295; 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=wYvirtTEHfvn8mKnPG5A91Sh0MgTtcoSl/PA6YHPo2E=; b=e67SKoZXfFeMQUmerjh6yyRcmC80eeCa1feNmPVuynm/J+GCmXkW/9Ev8w9zQYYxl1 gIk0CMgsA1WjPdiYZi9caw6Syt3B6C12lfapGutfdqz+NTr8tbZYLH5042aJiYxzhl43 W5cK+ZvBfjdfKGDGpBLHzXDDX6qi2hf61iWRkiD2hVDHurmlHFJUtgHL9sJceBruqBHp JdlQTV4Y86r4+yCGp40UVUifJmKDQMKzhNBnG4aPjiZO9QKpkhcfXvFgEKsyYSnqttbL 5xbDMK0s5w77gprYbgoq+lSRGNNksqNbUa8DFOI81yLUD7caa1NFWSBDTPAW5wifgdzF GJYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695200495; x=1695805295; 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=wYvirtTEHfvn8mKnPG5A91Sh0MgTtcoSl/PA6YHPo2E=; b=ngeOIGBuBDgWZOtmQS8GCutsgdPvHjvdHBQGpGAR5B+BCtlY3GPW+lEc1IUOhJ+HlT l2inWDD/UGg1B0FMyLCWN2i5AbMMxGpFdhHC0qf1Pf40DK8gntq1wdfvN4xSSkc/nkDj MCrvIZwE0aI1Y4kNBSBllbT7QoyZcFDgTrKd6+DRbXRkgXkX1V731RVWJ+sqvRtF1a6W XLo1GQ2HD9enTVeoHYlsKzMRMJF3j+G5OzPLPvdG/ay4KBBllL4DLQFRydiU7JFcYoJg Pwp7tIw3Hh2Z/95VTzeazVVb1HW9AK93pwfD6bwMNlCekdhYkoF6TMmN4PHoiGolKXQo CXOA== X-Gm-Message-State: AOJu0YzDSNi73530lzNQFi3YxDhwCWz2Rbd/txHr625caIRNNOwVr2Af oOyMe7NVk3m/60mtNS+6wYzM4imLAw9sxz5Yxp8OyA== X-Received: by 2002:a81:a111:0:b0:59b:49a0:eec0 with SMTP id y17-20020a81a111000000b0059b49a0eec0mr1942407ywg.12.1695200495386; Wed, 20 Sep 2023 02:01:35 -0700 (PDT) MIME-Version: 1.0 References: <20230915150327.81918-1-brgl@bgdev.pl> <20230915150327.81918-8-brgl@bgdev.pl> In-Reply-To: From: Linus Walleij Date: Wed, 20 Sep 2023 11:01:23 +0200 Message-ID: Subject: Re: [PATCH v3 07/11] gpiolib: replace find_chip_by_name() with gpio_device_find_by_label() To: Bartosz Golaszewski Cc: Andy Shevchenko , Mika Westerberg , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:03:22 -0700 (PDT) On Mon, Sep 18, 2023 at 10:03=E2=80=AFAM Bartosz Golaszewski wrote: > On Mon, Sep 18, 2023 at 9:23=E2=80=AFAM Andy Shevchenko > wrote: > > > for (p =3D &table->table[0]; p->key; p++) { > > > + struct gpio_device *gdev __free(gpio_device_put) =3D NU= LL; > > > > > + gdev =3D gpio_device_find_by_label(p->key); > > > + if (!gdev) { > > > > I haven't got the fix for gpio-sim, shouldn't we have the same here, i.= e. > > definition being done together with the assignment when __free() is in = use? > > It should but I only got yelled at by Linus under the gpio-sim patch > after I sent this one. That happens, it's all new. I guess ideally we should patch checkpatch to just moan about this, I wonder how hard that could be (I've only patched it once in my life...) Yours, Linus Walleij