Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp663610ybg; Wed, 10 Jun 2020 10:19:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAeuZuCvNHwrvgraukQxpKaerZMScsYk74StmF4piI8Ltf36uRYO+/7XQ9il4Eqncksxg+ X-Received: by 2002:a50:fb01:: with SMTP id d1mr3386084edq.94.1591809555605; Wed, 10 Jun 2020 10:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591809555; cv=none; d=google.com; s=arc-20160816; b=0YfVp7hWZdIGbNm++atJju6IL1rE7FMnxwIR0/Dl8yZV9yQV4BqrEIpONlYMi8Oq5x o80xK7UpI+ui3jK1H5em5jPliG6/7itm5nB6VGBIwXf3OnvqqLFoR2kRorun7DKsOM/1 txBmjev45UJRNhi1x4hvNKbZml0SH88YvkV5paATRWDc3eZ33cMHDXpDYQdve8D6C6Nq xgK0zsNafcIQaz+OaP2z3vIS4O4tCYWJ+UgyzOk6PAhXI9yShUcdSjt6i2IDMFsKYdeO 0SXMmwoQFuqf7eQLOD1sEgmkIQP53PMM+LVv1fCMjw4cw0lIUT18QEKTNA1YWsWABem6 /uHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kHTC5ynMjdYXbR8GWvcYvNg5klsAd9eXqBm+XxUO58o=; b=PmX2OTbLe5oKujVlkk9OZfp+Omzv5j/G9xr/umWYWgYOG8N+VfS/uneiIq2Y+BgP7i ny+xnM2lSJnAgoMpz0B4o273tXegBQbveOm5xXZYFfajDkMvpv5svVA5IlwBmv4JjBjb ySyqh+PvM44D2qVfJE4stJT8Dw/EZV5ipV9++F0DoJ6cCMj/beC7V1M8KDAJyag9krdM 7igG/POs1W2BkDqsSjzMCkSVY55yOBjnocYv5dZNFqvKcSEh4zxj6UCsOK5L4x0WxK69 RkAHex3PHpgBp7jnIDCbswP1ukxnt1k2x+iVR07locLS+m2qwldWAm6qhXs51nwDIFkm H2Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si137494edx.192.2020.06.10.10.18.52; Wed, 10 Jun 2020 10:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbgFJPxg (ORCPT + 99 others); Wed, 10 Jun 2020 11:53:36 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41320 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728217AbgFJPxg (ORCPT ); Wed, 10 Jun 2020 11:53:36 -0400 Received: by mail-lf1-f68.google.com with SMTP id u16so1740964lfl.8; Wed, 10 Jun 2020 08:53:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kHTC5ynMjdYXbR8GWvcYvNg5klsAd9eXqBm+XxUO58o=; b=TmPN7DC1dCNBT1Bx5vRreyA17eIi7H1dvaVlUpiC/9zVv/d6rGjr4PhfOkxQl85oYi CzhDBw/qNqL+PvkC7rEinHOFiCTX64tkR7ef+H/DI/JKkiPKJXRzzKGDUTKYjyedMm6+ gemLvezQpZ7GEG0ciTV7glTZPOW6XEUm+YIgCwID0tt4vHRWebfeoDFxaODXQg2513GL LlqrqBrpi6ylbWijF4Qz+buTEjDXiuI+NaJNWQl0UYUm7H50lG2hnQxYuwjDXPQEKkO3 hKN6UbUSe+VaE9VOeAi5LswHxBNAHVFPTlV8IzodZqUKk0IiEajVm1ZoTpecBEV0Yr2V cGdQ== X-Gm-Message-State: AOAM532VZMA+epqeAocprmptsy9g7CFy4R+kMshDLOSu/Uj8jZNCgT/+ SS/oYlvN+qRYaYEcjqi5zWE= X-Received: by 2002:a05:6512:d1:: with SMTP id c17mr2068358lfp.80.1591804413811; Wed, 10 Jun 2020 08:53:33 -0700 (PDT) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id x69sm20823lff.19.2020.06.10.08.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 08:53:33 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1jj32f-0003fz-W3; Wed, 10 Jun 2020 17:53:30 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Jiri Slaby , Lukas Wunner , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] serial: core: drop unnecessary gpio include Date: Wed, 10 Jun 2020 17:51:21 +0200 Message-Id: <20200610155121.14014-1-johan@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the recently added gpio include from the serial-core header in favour of a forward declaration and instead include the gpio header only where needed. Signed-off-by: Johan Hovold --- drivers/tty/serial/8250/8250_port.c | 1 + drivers/tty/serial/serial_core.c | 1 + include/linux/serial_core.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 1632f7d25acc..d64ca77d9cfa 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 3706f31b0c37..cba19f7d9ea3 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 791f4844efeb..01fc4d9c9c54 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -30,6 +29,7 @@ struct uart_port; struct serial_struct; struct device; +struct gpio_desc; /* * This structure describes all the operations that can be done on the -- 2.26.2