From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id D9DAF1F01E9; Sat, 17 Jun 2017 05:46:57 -0400 (EDT) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by befuddled.reisers.ca (Postfix) with ESMTPS id 8D9BB1F01DF for ; Sat, 17 Jun 2017 05:46:55 -0400 (EDT) Received: by mail-wm0-x243.google.com with SMTP id d17so8798705wme.3 for ; Sat, 17 Jun 2017 02:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=8o/DhJrM9EC7cUvqVEjZx/Tb4+752SOfVaSroDG0+sg=; b=coukC+djvK56ZY0VY5d6CX/kMgXVuTFRaJ1ggGtTUZJ5Yi7buCJSOBnFmjc12vGFtU Fgau9UtkeLxdqusGinttk4q7knlBlulqxLSa42/c6fxZkq8YLE3fW5a5Lhnpv2pnaJoJ HG9k5vXow2ct271Ot6aAbwVZW7wQ761EA0phF32v56gXmYUr7s3Eqo7qimOAXAJVCMMN 9F3BSxshN/Yb0wBL0Co5hxUehHMApf528DpICeyjVQVtqqhPNXZicxJSAWE9Gzp85Bsh LOrNrRKI3y8DJzyZ69rs7JDwwG/29dQUyMjlYM/vgU99SN4hy5cDrOZW1Pd49Kvml1PF eWMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=8o/DhJrM9EC7cUvqVEjZx/Tb4+752SOfVaSroDG0+sg=; b=Vq8srqXGIVmKRbzJdyGImLDEaZCGjI6XnZWOf7Rye/5IvAPB1LyQ/6r40+GwuCUYIi hC0MkmKQbRBwGji9iXLIxO/is8Xww6cmNVeePgwpWr6/VCqI5D+4pypHKuHUAnfQnweR yIok68/9HdT+j1a4Nf1ajqnVNCad1Zy0ksU/dZVaYNUT7noELoUEJoAoqpZwkm+bjtLD Y0Sw8ISa4zxO44c2TjTVcKHUpEbAo9Gl9wCShs+qOiN1/2UDqKPSpkACPIE9VXGX2m2q G4CEbxnWHfxPgoXwIBDHw63678X/DufTB05NATLeZ6diGKZNpjF/D7SnEeHD7hXIu+0s 947g== X-Gm-Message-State: AKS2vOxeZXWt9pl7MM2kmxigcGibK0CJghzlNSibJ/Ap6QiREv/FtpPN sTu+TIdU6Iv3qQ== X-Received: by 10.28.230.155 with SMTP id e27mr9627959wmi.57.1497692807287; Sat, 17 Jun 2017 02:46:47 -0700 (PDT) Received: from sanghar ([2a00:23c4:7320:5900:224:d6ff:fe76:7136]) by smtp.gmail.com with ESMTPSA id 139sm1273522wmu.34.2017.06.17.02.46.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Jun 2017 02:46:44 -0700 (PDT) Date: Sat, 17 Jun 2017 10:46:41 +0100 From: Okash Khawaja To: Greg Kroah-Hartman , Jiri Slaby , Samuel Thibault , linux-kernel@vger.kernel.org Cc: Alan Cox , speakup@linux-speakup.org, devel@driverdev.osuosl.org Subject: tty: define tty_open_by_driver when CONFIG_TTY is not defined Message-ID: <20170617094641.GA12427@sanghar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.2 (2017-04-18) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2017 09:46:58 -0000 This patch adds definition of tty_open_by_driver when CONFIG_TTY is not defined. This was supposed to have been included in commit 12e84c71b7d4ee38d51377fd494ac748ee4e6912 ("tty: export tty_open_by_driver"). The patch follows convention for other such functions and returns NULL. Signed-off-by: Okash Khawaja --- include/linux/tty.h | 3 +++ 1 file changed, 3 insertions(+) --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -422,6 +422,9 @@ static inline int __init tty_init(void) { return 0; } static inline const char *tty_name(const struct tty_struct *tty) { return "(none)"; } +static struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode, + struct file *filp) +{ return NULL; } #endif extern struct ktermios tty_std_termios;