Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp50630rdb; Wed, 20 Dec 2023 06:08:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPxDQRi6MY9xcR4HT693SUePlSPA1512SqP+B5f6bM8ZdoSvhlRDC+WI0YleBSJGL8p2Yw X-Received: by 2002:a5b:50b:0:b0:dbc:b0f2:94f8 with SMTP id o11-20020a5b050b000000b00dbcb0f294f8mr9902443ybp.108.1703081323964; Wed, 20 Dec 2023 06:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703081323; cv=none; d=google.com; s=arc-20160816; b=tEF/knUwr5yBRjpdFcBH0H8PMiiWC+DbV4IUkqpj3h5pw3XUWYM99s5z/Y9jwhW7qA Ftz26nLxaFWnMAFpEBxIv04Dkp7DvCrCeqBwlzDFj3ZqbT7P1MZktVr/5BW7gqobGEz/ nohFtoCXNSXmhyr6FUtmIWS82FrTdh7z6pHbEvmY8pmDEoTNq5JxhFUASs/PqKfEqdD/ OFH8/FuzFBvqQZrEoKTW7yztKP+Xh3qBry9SKftvVk0Bm5CxNKntiSWxfMi+7hL2nKV3 MB1lunM3eLq97iHvV4sYC/db9V9ys3f1kPvUlbN3DtYneXapU+ML6+5fCHKDDlA2ScH6 VjPA== 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=WnoZsHZnEYcQ46Kd4Lu9crr2sSJLKt3dsvDOoA3QbMw=; fh=NA2IZTsBFwjREUcds8Nt2e3faPWWUm3ShfnoxYpp9Xc=; b=0EqrGUdPPrdDlZK738DhQr1KTQD7C1thGKZd5voSCu93snLHaxPW/9wJ51jFZ3vyVM yixuAJ/ECHE6ULqQhCZBfGtH3g2UJJCxvhwHU2a3h/AmDZkCfXdiOEmuHLHb2NP7SRis i4vvD8XStfSR3UcNT3HUJs1Ew4wqdQGWAfqg5JZLsnr8rlH62IJsYSsujjoaYmLof2N7 Q7IT3VM22pVeskZ5F4Wkj59ESjQcbgPLod79GrNcunzQ9Sbl/BcDtxxGA++ePdSXRp7s NrB6AL/I8hH5x1lQoME3Phbn/SHo94jsgzL2KYd7NImyl0dflWNGPZcojnJBK6gOYDWv YsHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=EI4iGy7y; spf=pass (google.com: domain of linux-kernel+bounces-7033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7033-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x4-20020a25e004000000b00dbd57cf5411si1550274ybg.612.2023.12.20.06.08.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:08:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=EI4iGy7y; spf=pass (google.com: domain of linux-kernel+bounces-7033-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7033-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id ADDDD1C20752 for ; Wed, 20 Dec 2023 14:08:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBB9238DE2; Wed, 20 Dec 2023 14:08:36 +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="EI4iGy7y" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (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 CA0BF36AFC for ; Wed, 20 Dec 2023 14:08:34 +0000 (UTC) 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-oi1-f174.google.com with SMTP id 5614622812f47-3ba00fe4e98so4359592b6e.2 for ; Wed, 20 Dec 2023 06:08:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1703081314; x=1703686114; 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=WnoZsHZnEYcQ46Kd4Lu9crr2sSJLKt3dsvDOoA3QbMw=; b=EI4iGy7y0HcpweynZ3G4nxlD2neIneIReyrx3U+ZhQQ2Ws+Rw+tjlNLy20iOn9Abid 69RgmF6d74ET7QmV6hH9nRd9vd3P8PKQrpyiu7fBRZiRI/adHgheKhmbcC4hS576Ft0N SaN5qRQFPYSi1qmkDudUe/fhWZnM/1d5d0n9GSg0tI/weBstQZ9b/23DYDpMvw2V+E55 +IPMfYecd6PdFPHRbJzrbVW14yIFd/ZaoH/1AhHo/CGvn9p2Jj0HLSpOXg8lRkr497N4 XU92j1sRlkXWQKw3chrAzIFAg3prTWNDP10izwLz1pwJxpblANkprvJc1XCO0f3Wuqfm bLcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703081314; x=1703686114; 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=WnoZsHZnEYcQ46Kd4Lu9crr2sSJLKt3dsvDOoA3QbMw=; b=DI6S/x5oivHR8H6RV6ndOgeG4qf+pLlWiNOrfAPK24FcNaS4WHtf6vSYZfzf7BzcZh 62g6MJq2NaY38/oTOo+8fgth++ZVxdnnUFUKudUbSQWnVD6QImwSPMa6TYV6TmOINjDw ub6v1usLMmlGK/dv5fpJFhUuDjWREAYhuQjcAvAtmMeMbIULk6hbeAnIQUVbQZlQf/8m aa86lvZO6XHrQjZn6lDesXXjmdKo9DcTNwXqV05JvvgrMnaKQD9sIi3cMDe8NgaHzzwA S9z/dJkp3wL3WRtz3KMpqk30OeKMCq/yMg2WGnUIslTJ2Xm4bhiQqNSnq2MXMzCqyziV zqrg== X-Gm-Message-State: AOJu0Yy36I75dfwaDrXH7E5P9v6+6unSrXINTo3Y9W1jOlag2saWxeag EdYRz/TwzjHHtOnL/jud+ep0WixcDKb1I8wocHAcDQ== X-Received: by 2002:a05:6359:4c22:b0:172:ab3b:cc1e with SMTP id kj34-20020a0563594c2200b00172ab3bcc1emr8595804rwc.4.1703081313727; Wed, 20 Dec 2023 06:08:33 -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: From: Bartosz Golaszewski Date: Wed, 20 Dec 2023 15:08:22 +0100 Message-ID: Subject: Re: [RFC PATCH] gpiolib: remove extra_checks To: Andy Shevchenko Cc: Linus Walleij , 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 Wed, Dec 20, 2023 at 3:03=E2=80=AFPM Andy Shevchenko wrote: > > On Tue, Dec 19, 2023 at 09:11:02PM +0100, 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. > > Huh?! > > What then CONFIG_DEBUG_GPIO is about? Ah, right, it's set in Makefile. I didn't notice before. > > > The > > overhead of removing it should be minimal (we already use pure > > might_sleep() in the code anyway) so drop it. > > ... > > I agree on might_sleep() changes, but WARN_ON(), see above why. > See above where? Bart > -- > With Best Regards, > Andy Shevchenko > >