Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13970479rwb; Sun, 27 Nov 2022 15:05:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ai6wT8swhYM6pdq1fvVacDD0W7R77PRf5dqy3EtweDhjuMlESZSKH6FDLmvIjGVTbDTR+ X-Received: by 2002:a17:907:a705:b0:78d:3e6b:d402 with SMTP id vw5-20020a170907a70500b0078d3e6bd402mr25102989ejc.563.1669590335877; Sun, 27 Nov 2022 15:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669590335; cv=none; d=google.com; s=arc-20160816; b=ewwlFRES1qlzs6oaBIUDfdcLn/lGRi2ok+BqlyEDPznMaXFvUWA9E0rMTAL+CdTnyz TDSjp6aAhQBTKOtJu5uofpl19/H028RgmdDDqBy+7nvKyiEoLRmoziab0QF8Vz91ni4d ewnH1Eh3NBROk6mtN0iYzueQL2c+gHUMyfVBSbe8ii3dl65uuXmxN3cPEtlZvna2aj6t /lRUAlNzhYV9AiNW+lyx1YXbmnMc4kkHm2OmSxDOV2wrPjZ8fL2HcP+nsZZgYsV21cST 3qTy/x6UYnbVKCVSozTSetc64rTsApS1DTXkU59XavZp1BD7PXGp9KH5qV2CG9L9KBaG 7XAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N0HbT3wNyQh8ZRwgGWZRu1cZYeMy3E2Tzk++9KIcnG8=; b=rkyCbpPppdbK7q16ey9a0zkAbKne65GoSzq41tZoejFcnpX6t7GNLSzM0l/hswjrUC vZdLjS/UNwExEejo2jQ82sokrssZ2iemYeEuJYE5/D2hH11ihL/nydpbA7f25MdmwXD3 xeTOSRiiDtxPtjlVEuVQgumUvbpXZKK5j6AXtFCWQqsJXxuPSr+dK1TchaHH3LjWf+gJ 3+Xs4K8FyNx5P1b5pNkrBL92reOAHivdLEO6ncS+oQMTJwa1tLbSQBKKS2G08QnhS56l cIAMbTcmxsnP8ogIiFKzKlWeUdeVlhE0qH4sYDJarJMj/2jNpGwrYXvnRnx0a6JdtCR0 xFPg== ARC-Authentication-Results: i=1; mx.google.com; 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 dd22-20020a1709069b9600b007ae52a5707bsi9619974ejc.95.2022.11.27.15.05.15; Sun, 27 Nov 2022 15:05:35 -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; 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 S229732AbiK0VwR (ORCPT + 84 others); Sun, 27 Nov 2022 16:52:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiK0VwQ (ORCPT ); Sun, 27 Nov 2022 16:52:16 -0500 Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD692B7F0 for ; Sun, 27 Nov 2022 13:52:14 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id zPZLoGIZNzQOKzPZLocc9q; Sun, 27 Nov 2022 22:52:12 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 27 Nov 2022 22:52:12 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Rob Herring , Frank Rowand , Linus Walleij , Bartosz Golaszewski Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] gpio: Do not include when not really needed. Date: Sun, 27 Nov 2022 22:52:10 +0100 Message-Id: <3f75784c57dc0682b5e1758daddd93fee6bb4b27.1669585920.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 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