Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2651262imj; Mon, 11 Feb 2019 06:29:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IY0AVG6rhLnLgcBjkT15hSNSm2AEwcVcvF3Ol5OR50Fv78i39d35gyyHt/Xl8Xb4Yo6t5U5 X-Received: by 2002:a17:902:7c83:: with SMTP id y3mr8070323pll.260.1549895371886; Mon, 11 Feb 2019 06:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895371; cv=none; d=google.com; s=arc-20160816; b=lHJ/SSDezWBVzieo4h8HN/4WaUwGnSVgQkaU3Mu34zAI0yH2d6SBDffJjxstgk1vIg hSE9DglV91U+U/wXXpIcmcDX4sArFyhfXHhkVohg/U3kGxHHw8gpQXNsIQZSbrmyDPjk Z/1Cvx26tE4Q2C7ejzbWjMFp/kf4wM5LWgxDNZ75oeg0tH0qanWSQYkusxqRycCyNkrn RF1/uU/wBZaTlXE1orhe5ynBkBRfXvDUjW3N+YSAozVKscKtX245CgkyTZUNEHmWRNXj RZC5n46A00NwDvUCT59wNbWWtK+ZKMm3h0ScuohMT8JSBQm6hzxec8OieBmRn8LlsBo/ DDyA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hxbXvWeedDLDih/K8TntVF4pq6vMXykcQ+nHppZ5LqY=; b=dORSfJbQp1r4YK8hm21sQu01bWKcoaPxhikU92IK8DYHU/S4p1mY5elGpeBW8dcmo6 o4iACyGzbxm56xyTn8W4DpcPoDZmc7PE9n133jzQrSt3mWhw+VvkNmk+swkhyGOT6eI9 g51nAXaYRvrtMdtv9CxNK2rE+YnRd+/PL0VECpB6uKz25999tcoXpf0ObEbL59ns4BL4 EmMXRwfAbWD/9CjCtndIkrduLUfnqvVubfSfcvbtHynXhQBJbDupqTdTXzevB/ief9Cl bWykOMt0Mr0SVsB6qFbe3uym3q/6qJ4DlRMEejlndU1scZYwIko00AuS8jflBFKScIqp DZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rNkt+rJ7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k69si7689959pga.176.2019.02.11.06.29.16; Mon, 11 Feb 2019 06:29:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rNkt+rJ7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729407AbfBKOZh (ORCPT + 99 others); Mon, 11 Feb 2019 09:25:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:59026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729394AbfBKOZd (ORCPT ); Mon, 11 Feb 2019 09:25:33 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF8E720838; Mon, 11 Feb 2019 14:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895133; bh=UHNVThx+s35yaFFF7BSEOko+hXdqgdqlitKWTLJ5Gvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rNkt+rJ7Jzz4+DekJMKosPQHo4tRgfP1c1ZVbt6i+/hRA3GW5dndMP/RMZdHdW5Vq sag+7ydI134Nzmx7ViIrSYxXo+flP1IxS0Zk63TwXKFGXbWB+D/DkY6+G8hgQjEi8C iopZvBoJihI4Avhqaxw1VuPZlw6nqwXKXT58JaFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Radu Pirea , Mark Brown , linux-spi@vger.kernel.org, Sasha Levin Subject: [PATCH 4.20 103/352] spi: fix spi-at91-usart.c build errors when PINCTRL is not set Date: Mon, 11 Feb 2019 15:15:30 +0100 Message-Id: <20190211141852.347398732@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c2b142cc3939e932d4fa2210c2a5155df5736590 ] Fix build errors when CONFIG_PINCTRL is not enabled. The header file handles both CONFIG_PINCTRL enabled and disabled cases. CC [M] drivers/spi/spi-at91-usart.o ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_suspend': ../drivers/spi/spi-at91-usart.c:409:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration] pinctrl_pm_select_sleep_state(dev); ../drivers/spi/spi-at91-usart.c: In function 'at91_usart_spi_runtime_resume': ../drivers/spi/spi-at91-usart.c:419:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] pinctrl_pm_select_default_state(dev); Signed-off-by: Randy Dunlap Cc: Radu Pirea Cc: Mark Brown Cc: linux-spi@vger.kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-at91-usart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-at91-usart.c b/drivers/spi/spi-at91-usart.c index a924657642fa..08bcbd1f9aa2 100644 --- a/drivers/spi/spi-at91-usart.c +++ b/drivers/spi/spi-at91-usart.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include -- 2.19.1