Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15337085rwb; Mon, 28 Nov 2022 10:21:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uei++9xj3dtPvIQIX2qDfugD4bi4lOv6dTdNKW6qFVPZsmisg3ZYArkXWdoGAGwdCPhUQ X-Received: by 2002:a17:902:e8c3:b0:186:5de2:e17e with SMTP id v3-20020a170902e8c300b001865de2e17emr35855181plg.35.1669659683090; Mon, 28 Nov 2022 10:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669659683; cv=none; d=google.com; s=arc-20160816; b=OoLfHXsyd6fVrUsTpS0SzvbjdEnqJblVPM3FTNJwmyf6QofEeDV9G0ytHAfTro/KsC qjlUhaZLM3doTvZTd/2UiA+vHUATEbg5XVQBgNUL05b9W00Q/c86kAn6RjQLLrBRkEHV Ay9tKaqboFDJhlNZXJP8CMOCKl6Uag7ZBy/VFYexWLgXYNpmk5WvH4n8MiS0St4R4Fwt Ws2f7mfba+yhE2iBngvax7fztgZAVufi18OeIruJovy+m7lN+rJmnGuVRrICDoH9uotI PirZo9SPRPZM/3L0Q1VY4kbJGSu6vTDOTvARo9/C548CWk00mg/ZAOI8EIWShyiSdFba Q2iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=k835onYIZmsMuurlywEhGfRyXKYROEnVcvL+bYuMNFg=; b=vJDMmrt+FcGA0HVXMDaSIZEIionG4wnMvlXa7lOQ/7GqVsUFEKytyFf1g561hQXQHD hDVI/mCWk3tpv+6gcr+ahdoOegUYQZ9cuU9Hb8HgK4FbHVY37PHAK8wTWTV32LgcjHdN DZUSuQ9k+wEWgHFWC5SgPsKuI+kcACbOdl0HYeNeSAVnLNAzPTHV0C1dv9BMJIsXSmWV 0rTtKuMBXH7vmXhWtkLAI1jjsSNRBn13Ek/BwCMoHovkoedtfJMYyCyyx7TOO34bL+O8 P7FLOxUADIownTEhjFPz8UugpR8XOHmKeR1KGTU4hbgR+sMGWxTeETPI4gGPSNvvGZhg j7hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=qeAlsrxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a17090300cd00b00188d47fa5d3si10547329plc.21.2022.11.28.10.21.09; Mon, 28 Nov 2022 10:21:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=qeAlsrxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234203AbiK1SQF (ORCPT + 84 others); Mon, 28 Nov 2022 13:16:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbiK1SP3 (ORCPT ); Mon, 28 Nov 2022 13:15:29 -0500 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E77D2DABA for ; Mon, 28 Nov 2022 09:58:28 -0800 (PST) Received: by mail-vs1-xe2e.google.com with SMTP id i2so11410070vsc.1 for ; Mon, 28 Nov 2022 09:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=k835onYIZmsMuurlywEhGfRyXKYROEnVcvL+bYuMNFg=; b=qeAlsrxSTYrFNmaODPT2/lB5DxDq+uU+fCNqqy+mRXc+Af9X3azUb12ENwHsOoDqed 63QFTN4UFnImZsWpuhwXZmmk0pJVWe0EjZalYULvfIuAPSv6+67/LL8CMmLoRgVeo104 gGXXlVp7xDfgQGaDZDzAH6/hbVMQE5Rt7/PTgFVVcQKoJNfxNA3vCIOXA9W4vReoUFXW Kya4ASz99JXKdpdfpOMAP5bXB+RuPRiGqCNONFyJMNYNPQFSCQLqYnm9DKo24lHOzZr1 eF0BLnHG+Vq2MNRUaCcSvgaMd7Dw89BMO1MjOVoRRK0Dd1AqwufbwATpNdU5kPVkOMGG P59A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=k835onYIZmsMuurlywEhGfRyXKYROEnVcvL+bYuMNFg=; b=bMwpvBSg/31kp9MchfjOQ7kF2tzZ3Jdzgq0Z56BQT9/qmc1QiDHzkJbzpaYYjwsvRV gS3wD062wezz4AGruBtEzhf0pseBer4ctxXdcai4VHWBvqHOopsm2eQ+coqNEtE/X7Ih N14E2HjRGGy+TShb93Aa1pzLyScljEaq4fmKxvUAJhv/aOn1xsNIL1YT3fsUheMg3m2D GSGrNgFeuZHH/hpo1qQvsti8epz4tHrqADiqKaUoeZOQjaXaxzWG7la0f0oob5nUkn6T RLDzp3LzE3hrfX1cMUe2LZr2RAUupwTLKU/nVZqmlka4L2N85jZ/fnWLQvxZ0rVJyKgM ILSQ== X-Gm-Message-State: ANoB5pm8oZK3gfDAoBjBz7YnWf/yIB/dwwvpR6kxtbDuakNECP7ih+hq F8LMPeDp92LuFIIyJAhJHr/X7OQ7ciS3xv9zU7wa4DOGtSI= X-Received: by 2002:a67:1c85:0:b0:3b0:92e2:37b0 with SMTP id c127-20020a671c85000000b003b092e237b0mr5455727vsc.9.1669658307802; Mon, 28 Nov 2022 09:58:27 -0800 (PST) MIME-Version: 1.0 References: <3f75784c57dc0682b5e1758daddd93fee6bb4b27.1669585920.git.christophe.jaillet@wanadoo.fr> In-Reply-To: <3f75784c57dc0682b5e1758daddd93fee6bb4b27.1669585920.git.christophe.jaillet@wanadoo.fr> From: Bartosz Golaszewski Date: Mon, 28 Nov 2022 18:58:16 +0100 Message-ID: Subject: Re: [PATCH] gpio: Do not include when not really needed. To: Christophe JAILLET Cc: Rob Herring , Frank Rowand , Linus Walleij , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 27, 2022 at 10:52 PM Christophe JAILLET wrote: > > is included only for using container_of(). > Include instead, it is much lighter. > > Signed-off-by: Christophe JAILLET > --- > Not sure if the prefix should be gpio or gpiolib. > > Let see if build-bots spot something which is inherit via kernel.h > --- > include/linux/of_gpio.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h > index a5166eb93437..6db627257a7b 100644 > --- a/include/linux/of_gpio.h > +++ b/include/linux/of_gpio.h > @@ -34,7 +34,7 @@ enum of_gpio_flags { > > #ifdef CONFIG_OF_GPIO > > -#include > +#include > > /* > * OF GPIO chip for memory mapped banks > -- > 2.34.1 > Applied, thanks! Bartosz