Message ID | 20220222160121.54272-1-linus.walleij@linaro.org (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Hans Verkuil |
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1nMXdS-00CeBY-Mz; Tue, 22 Feb 2022 16:03:31 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232441AbiBVQDx (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Tue, 22 Feb 2022 11:03:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiBVQDw (ORCPT <rfc822;linux-media@vger.kernel.org>); Tue, 22 Feb 2022 11:03:52 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D8210C500 for <linux-media@vger.kernel.org>; Tue, 22 Feb 2022 08:03:26 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id bu29so25876278lfb.0 for <linux-media@vger.kernel.org>; Tue, 22 Feb 2022 08:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3k0jS2/x3i8Wmkomw+LPIWLbqx+hB/MPooCxs2/j14Y=; b=GZ979gXEHSU9EAVNVEOg59anBxJSB4PMurQeqbCNuzV0UFDHVqCPzJyP+M2x7G72Tn flP6yvxu2YFyCWtC37Bq8x3bbA3KhQvi8l+oIrgkyjnFmAt826DoxIYwVbhLhIHTiswa 71a9P6WvCOlpUBs++eSOIMlrV+uPmX5OizXIOiozFwBgO47klG+fU8ewkIgjtucGkd/g glBQHsDN7y5OQ2WUj3jyGwNYgVehQb9lnSRzuP251bFl0I+RRoBgWKGDW2TwFI7oTMfB hCdrhqevSy9gJdqio7TjS63OwxCYgU0ezxImPyMhWjv03XkmnTNcnoor9JY31WePkzCI d2jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3k0jS2/x3i8Wmkomw+LPIWLbqx+hB/MPooCxs2/j14Y=; b=OnIboBUbmp3tEIRoKw5QYRW+bhBCNM27oW6RH95L9MxpwL9SHEUN3OMeXiXpsVln4U BBnBVoKnbxdwJd0KFlVGijxHbaCiHvQusIbxmsQfHACJaA8orTtHcpP61THVeYwUygwz i7/iFIrhLI7FbIJpS6E6HjQW1jy+y8qTjuXDaXw9X0Lma5MhYr1bxwSg4BoAQZxQLeNO q8/ByFFRDt//HaS+dRrwKgZbCVIY9TyXAans6lgX6iidLKggwXPSJz73Vig7zpCggWCr r8HN62vA8GTi/htgojeNOIjwTmLNYcbmojkNAu512sQWEAcWRmIgyNsm699uFelu+VPs XVYQ== X-Gm-Message-State: AOAM531KDw68viw5VY/zAK2iDqg+bnP+DuRc4k/upCLCkzm/Wz4iR59H yUNpm10cnIT409borF5EUD2qdw== X-Google-Smtp-Source: ABdhPJzLyBn1y6y7ayfJCx6iuhQDqTQeAtAu9S1XUvXDnEiab/7RhMXcrL5/cjXtKBssCFT6PN2zVg== X-Received: by 2002:ac2:42c2:0:b0:443:7f05:b8ad with SMTP id n2-20020ac242c2000000b004437f05b8admr17237442lfl.40.1645545805040; Tue, 22 Feb 2022 08:03:25 -0800 (PST) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id x25sm1416214lfu.80.2022.02.22.08.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 08:03:24 -0800 (PST) From: Linus Walleij <linus.walleij@linaro.org> To: Hans Verkuil <hverkuil-cisco@xs4all.nl>, linux-media@vger.kernel.org Cc: Linus Walleij <linus.walleij@linaro.org>, Ettore Chimenti <ek5.chimenti@gmail.com> Subject: [PATCH] media: cec: seco: Drop pointless include Date: Tue, 22 Feb 2022 17:01:21 +0100 Message-Id: <20220222160121.54272-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -3.2 (---) X-LSpam-Report: No, score=-3.2 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_LOW=-0.7 autolearn=ham autolearn_force=no |
Series |
media: cec: seco: Drop pointless include
|
|
Commit Message
Linus Walleij
Feb. 22, 2022, 4:01 p.m. UTC
This driver uses GPIO descriptors not the old legacy GPIO
API so stop including <linux/gpio.h>.
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Ettore Chimenti <ek5.chimenti@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/media/cec/platform/seco/seco-cec.c | 1 -
1 file changed, 1 deletion(-)
Comments
Hi Linus,
I love your patch! Yet something to improve:
[auto build test ERROR on media-tree/master]
[also build test ERROR on v5.17-rc5 next-20220217]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Linus-Walleij/media-cec-seco-Drop-pointless-include/20220223-000503
base: git://linuxtv.org/media_tree.git master
config: ia64-randconfig-r004-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230327.ikz5OXY1-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3b2630b860ba004410fd27ad657355bcc0b9bd72
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Linus-Walleij/media-cec-seco-Drop-pointless-include/20220223-000503
git checkout 3b2630b860ba004410fd27ad657355bcc0b9bd72
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/media/cec/platform/seco/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:153,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from arch/ia64/include/asm/sections.h:11,
from include/linux/interrupt.h:21,
from drivers/media/cec/platform/seco/seco-cec.c:15:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/media/cec/platform/seco/seco-cec.c: In function 'secocec_acpi_probe':
>> drivers/media/cec/platform/seco/seco-cec.c:553:42: error: 'GPIOF_IN' undeclared (first use in this function); did you mean 'GPIOD_IN'?
553 | gpio = devm_gpiod_get(dev, NULL, GPIOF_IN);
| ^~~~~~~~
| GPIOD_IN
drivers/media/cec/platform/seco/seco-cec.c:553:42: note: each undeclared identifier is reported only once for each function it appears in
vim +553 drivers/media/cec/platform/seco/seco-cec.c
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 546
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 547 static int secocec_acpi_probe(struct secocec_data *sdev)
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 548 {
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 549 struct device *dev = sdev->dev;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 550 struct gpio_desc *gpio;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 551 int irq = 0;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 552
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 @553 gpio = devm_gpiod_get(dev, NULL, GPIOF_IN);
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 554 if (IS_ERR(gpio)) {
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 555 dev_err(dev, "Cannot request interrupt gpio");
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 556 return PTR_ERR(gpio);
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 557 }
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 558
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 559 irq = gpiod_to_irq(gpio);
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 560 if (irq < 0) {
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 561 dev_err(dev, "Cannot find valid irq");
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 562 return -ENODEV;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 563 }
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 564 dev_dbg(dev, "irq-gpio is bound to IRQ %d", irq);
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 565
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 566 sdev->irq = irq;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 567
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 568 return 0;
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 569 }
b03c2fb97adcc6 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 570
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Hi Linus,
I love your patch! Yet something to improve:
[auto build test ERROR on media-tree/master]
[also build test ERROR on v5.17-rc5 next-20220217]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Linus-Walleij/media-cec-seco-Drop-pointless-include/20220223-000503
base: git://linuxtv.org/media_tree.git master
config: i386-randconfig-a014-20220221 (https://download.01.org/0day-ci/archive/20220223/202202230527.2mRa4oUA-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/3b2630b860ba004410fd27ad657355bcc0b9bd72
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Linus-Walleij/media-cec-seco-Drop-pointless-include/20220223-000503
git checkout 3b2630b860ba004410fd27ad657355bcc0b9bd72
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/media/cec/platform/seco/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/media/cec/platform/seco/seco-cec.c:553:35: error: use of undeclared identifier 'GPIOF_IN'; did you mean 'GPIOD_IN'?
gpio = devm_gpiod_get(dev, NULL, GPIOF_IN);
^~~~~~~~
GPIOD_IN
include/linux/gpio/consumer.h:51:2: note: 'GPIOD_IN' declared here
GPIOD_IN = GPIOD_FLAGS_BIT_DIR_SET,
^
1 error generated.
vim +553 drivers/media/cec/platform/seco/seco-cec.c
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 546
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 547 static int secocec_acpi_probe(struct secocec_data *sdev)
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 548 {
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 549 struct device *dev = sdev->dev;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 550 struct gpio_desc *gpio;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 551 int irq = 0;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 552
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 @553 gpio = devm_gpiod_get(dev, NULL, GPIOF_IN);
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 554 if (IS_ERR(gpio)) {
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 555 dev_err(dev, "Cannot request interrupt gpio");
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 556 return PTR_ERR(gpio);
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 557 }
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 558
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 559 irq = gpiod_to_irq(gpio);
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 560 if (irq < 0) {
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 561 dev_err(dev, "Cannot find valid irq");
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 562 return -ENODEV;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 563 }
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 564 dev_dbg(dev, "irq-gpio is bound to IRQ %d", irq);
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 565
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 566 sdev->irq = irq;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 567
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 568 return 0;
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 569 }
b03c2fb97adcc65 drivers/media/platform/seco-cec/seco-cec.c Ettore Chimenti 2018-10-21 570
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
diff --git a/drivers/media/cec/platform/seco/seco-cec.c b/drivers/media/cec/platform/seco/seco-cec.c index ae138cc253fd..e6541c195499 100644 --- a/drivers/media/cec/platform/seco/seco-cec.c +++ b/drivers/media/cec/platform/seco/seco-cec.c @@ -12,7 +12,6 @@ #include <linux/delay.h> #include <linux/dmi.h> #include <linux/gpio/consumer.h> -#include <linux/gpio.h> #include <linux/interrupt.h> #include <linux/pci.h> #include <linux/platform_device.h>