Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp45730rdb; Wed, 20 Dec 2023 03:37:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/sSxVckMI/lkT8XHp+gOd3jZN6/IX0cys2ez6WADzJQ40FKD1pwN5QiT829S9OTVwHCdt X-Received: by 2002:a05:6359:1b99:b0:170:17eb:7c64 with SMTP id ur25-20020a0563591b9900b0017017eb7c64mr16059158rwb.55.1703072238775; Wed, 20 Dec 2023 03:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703072238; cv=none; d=google.com; s=arc-20160816; b=taXv8LiqHZP31Ajpj//qauurcHwLeK2f52knPhi4AM0lIczXCslc5tpEm4Qf2DMZU/ NhQKB8wwArEz4M5eYfBTGB7SfDJ2j1YTLZuiSEwEYIaa1LDPuB+r/qoHzEkqSdvl/I0W 5eyAZuT8S/GIqM97pWBcc/xldbIu/7bkso/uGyzN8EZ1JufWsKdNRmw4LvCZhmH5dtIp rQdsgGjCzzsTBA/w9lSBl/HCH0Peb27wUzlJ0jbJPt8grV0c7+Jwm3Fva+o+FjdxJSM/ K3P8lmfobzx5/RDNWMwoAK+y66vGUM5JMjPr3ieBH4A1d6dh70WdkOC8E2E0MjwoPtBY f9WA== ARC-Message-Signature: i=1; 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=NamHnT73jUJNImDK5rKe/+cirCI0RyTQ89t6M3BsshU=; fh=io6VJuNrc9fIDhLXdVzSvtdNVOhxmUrv8yUeXx2PatA=; b=F6h6KUf9I239lCDpfMM98KHHdKiepeLhdrVABH1lWeb31I/CyVjPBXtc67bkAYr7GU VlN3lHv0/z5RVOBI/BMB9dX6PIFjpP0ql1/n776UM+6UY4OzzCy2Su1VlI6g2szbxmyu 9zkfMDBagxNdjvpQ1eINyMoFZOchY1h2YD3uNdeDk21gDru/zgBvnuYsq+EDbHvKbDIE VQh+eNtJjrOmMxpSthBcp/uRGq9PLpjtrp5y8Qew6Vz9ZBWstPoV8ylVxk+9AzdgPBlo xw3xa65tA7p178HiWPiJ5KzFEQbLoLhtV6hu8boREr07xCSv86YN2DYxrUBGtrepbDE6 riaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uJdZiz2Z; spf=pass (google.com: domain of linux-kernel+bounces-6831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 e14-20020a65678e000000b005b96af23fe6si7261841pgr.284.2023.12.20.03.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6831-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=@linaro.org header.s=google header.b=uJdZiz2Z; spf=pass (google.com: domain of linux-kernel+bounces-6831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6831-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B2309B25B9D for ; Wed, 20 Dec 2023 11:35:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49643219E5; Wed, 20 Dec 2023 11:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uJdZiz2Z" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (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 14DF02137D for ; Wed, 20 Dec 2023 11:35:42 +0000 (UTC) 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-f179.google.com with SMTP id 3f1490d57ef6-db3fa47c2f7so3860754276.0 for ; Wed, 20 Dec 2023 03:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703072142; x=1703676942; 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=NamHnT73jUJNImDK5rKe/+cirCI0RyTQ89t6M3BsshU=; b=uJdZiz2Z3cBrfdAR78dzaz/pmMmgFkky6ljRBqB5HCOyiE7t3nGMNPAPZnA9sFtvKe qXcDvoUv1EwMeXKRbklGKMW2Kg2feTFUIdAzRZjxs7LI5G1P5m72NjvJ9hoLfjTxGUS2 HHk9CVQGUwqH1HC5HT1GdI8eEebf731KvpUScqdrJv1kcIGZ20VLg+v+NWtWXEBW3mt9 usGU47SmEAqJp/jeeBoH+InimP1/CrmKNk6cfFBteHtvM5vvXgVG1u+Be4IEUTb7w/uO S741CCsk78IYGrvtaja0ijv7h5fC2Z5ESs1jdtD3ahi7jqNPMZudtE3shBbJ1HdekUBC HMDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703072142; x=1703676942; 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=NamHnT73jUJNImDK5rKe/+cirCI0RyTQ89t6M3BsshU=; b=tOFSJRG+8814eK5UyO9+7z4nN3PsePvDPJr8IHStXkp2ujNdPT9D6chutxR5CYTKE2 aksitiLObWu6Yde0e01lJWaEic3DDQ9v4cz8qPV/pyxf+xnnKrQSmWHcK1pp7M7RGfnm v0VkNmt1X9pVssHbEVj6xhCtfd03CJIFx5HRl52wLjiq0VicQ1BPnO0gW1wdjwj7CHBk bljYd1+3JFDFCsfSxvtqN6kwGz7MdDOEsa9u+4yHjXgetXaaM0gk3oK1xadMN/O0q9fE p8rMsfWLBxx5PsDt5tTkZ0uHfdYbIgo6IEEYcBQYAR3xAYDf5moerloICImOYWeSZpMc 2gDA== X-Gm-Message-State: AOJu0YyuphUrSZ5eQJiy+Hdr9YhKDGPp03pmBu/xMTToOllmQUac0sxu sKFZREAzL7Azwtzt8rOzLMAxRa0Ydo8NQD21CEQCOg== X-Received: by 2002:a5b:712:0:b0:dbd:5536:33f3 with SMTP id g18-20020a5b0712000000b00dbd553633f3mr1538189ybq.39.1703072141977; Wed, 20 Dec 2023 03:35:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219201102.41639-1-brgl@bgdev.pl> In-Reply-To: <20231219201102.41639-1-brgl@bgdev.pl> From: Linus Walleij Date: Wed, 20 Dec 2023 12:35:30 +0100 Message-ID: Subject: Re: [RFC PATCH] gpiolib: remove extra_checks To: Bartosz Golaszewski Cc: Andy Shevchenko , Kent Gibson , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2023 at 9:11=E2=80=AFPM Bartosz Golaszewski = wrote: > From: Bartosz Golaszewski > > extra_checks is only used in a few places. It also depends on > a non-standard DEBUG define one needs to add to the source file. The > overhead of removing it should be minimal (we already use pure > might_sleep() in the code anyway) so drop it. > > Signed-off-by: Bartosz Golaszewski I see you pinged me to fix this and I didn't get around to look into it even, but you fixed it just as fine yourself :D Reviewed-by: Linus Walleij Yours, Linus Walleij