Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3887185pxb; Tue, 2 Mar 2021 00:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1+rRgJLE7m8ebnB81Ybb7oaRIGVzz2/o5K/NNQEV98XqwuS57r0qzyspZhLQMYkVigzdO X-Received: by 2002:a17:906:6a06:: with SMTP id o6mr4121850ejr.306.1614674689173; Tue, 02 Mar 2021 00:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614674689; cv=none; d=google.com; s=arc-20160816; b=LCvpatWusfiEOawK+iPwoj5zzdvz/SyGy8CeoBGSgfeyKL+lVY2/uOLzRpza9eRMUK Q5xB6aQ5cjg6TM7jvjHyZHBIzM/Sowrmb8oe145PQGz43jTz07Z2Nz9A3UkuE8xHIK0a AhXgzKK+T8DHb8ViZoOHV8eriPv6568WxGJLC5ZvNMfOj/5PYUpzo62phAN7Ltd+mf3m Gcr7R00WqFtkQFrjbnfuIcVSdqhJ4mJpD635rZ2ukEjFNxySFkNpT5i2tCR+dsiTkWLB fEQlBXT6p1YAmxGaESTNHtBiDk/XcxJbBNIu03snAZbss76PZTpqLKvKNRoaCNyKVahh 1OHw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JOeqdTJneffTzWyhlbsGVHUhbSfPCFZjWcCx1lqZuPA=; b=Zw/bZKKTKR6HO69JoBTeSYvia+rNkk8nw3FxFXQnY4k+G41MZy76M/35krrWuju302 /AiIk6y1d2hUmh3vCNZ6lQRgef/Z/5f5bXgPksLOyfBfrM+xw11Uko438n1LUewnjo8e kghHVVLqVUSq2DZXs4ntnpNs84K34RDJM1/aQG949NLab4BZXWMNWndPFeDII4eQZHg9 s+ghpZ1e4m0cdq4EYSLgkZf80OyM0H68Q87s7qKvmHsKiu2jS8aKy9kPr9+SfgqecEAK KOyYaqVX4toa5g8HpIRGpTi8DAIMH6VIvHVeOzaNQMZ3roFD6ncr+wBJvkke7xeQeiy+ UyAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vFTWVbL8; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si10329929edd.49.2021.03.02.00.44.26; Tue, 02 Mar 2021 00:44:49 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vFTWVbL8; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378651AbhCBBHV (ORCPT + 99 others); Mon, 1 Mar 2021 20:07:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:36704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240827AbhCATES (ORCPT ); Mon, 1 Mar 2021 14:04:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 104EA65212; Mon, 1 Mar 2021 17:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619344; bh=19yHZoK3HBP0lkuxRqJoUuivNNBKkBGfXJo4NM9PD30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vFTWVbL8s/q8S3tBh1LU//4JeldBehfwxB1iu+U1vj2XK0SJeEdBohRFlcjW9DykA OGaSMFE5T0Jw/4RJFip3vgPWX33T61pVwzxo+NsfQAAXZR9qryNMIj/fK9IVTFZLWV 3dhntPu/scbl1zwvg33xABBqbGKtgje6GX/PZUGk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , linux-arm-kernel@lists.infradead.org, Nicolas Pitre , Alexander Viro , patches@armlinux.org.uk, Russell King , Sasha Levin , kernel test robot Subject: [PATCH 5.10 393/663] ARM: 9065/1: OABI compat: fix build when EPOLL is not enabled Date: Mon, 1 Mar 2021 17:10:41 +0100 Message-Id: <20210301161201.308823251@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit fd749fe4bcb00ad80d9eece709f804bb4ac6bf1e ] When CONFIG_EPOLL is not set/enabled, sys_oabi-compat.c has build errors. Fix these by surrounding them with ifdef CONFIG_EPOLL/endif and providing stubs for the "EPOLL is not set" case. ../arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_ctl': ../arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of function 'ep_op_has_event' [-Werror=implicit-function-declaration] 257 | if (ep_op_has_event(op) && | ^~~~~~~~~~~~~~~ ../arch/arm/kernel/sys_oabi-compat.c:264:9: error: implicit declaration of function 'do_epoll_ctl'; did you mean 'sys_epoll_ctl'? [-Werror=implicit-function-declaration] 264 | return do_epoll_ctl(epfd, op, fd, &kernel, false); | ^~~~~~~~~~~~ Fixes: c281634c8652 ("ARM: compat: remove KERNEL_DS usage in sys_oabi_epoll_ctl()") Signed-off-by: Randy Dunlap Reported-by: kernel test robot # from an lkp .config file Cc: linux-arm-kernel@lists.infradead.org Cc: Nicolas Pitre Cc: Alexander Viro Cc: patches@armlinux.org.uk Acked-by: Nicolas Pitre Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/kernel/sys_oabi-compat.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/kernel/sys_oabi-compat.c b/arch/arm/kernel/sys_oabi-compat.c index 0203e545bbc8d..075a2e0ed2c15 100644 --- a/arch/arm/kernel/sys_oabi-compat.c +++ b/arch/arm/kernel/sys_oabi-compat.c @@ -248,6 +248,7 @@ struct oabi_epoll_event { __u64 data; } __attribute__ ((packed,aligned(4))); +#ifdef CONFIG_EPOLL asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, struct oabi_epoll_event __user *event) { @@ -298,6 +299,20 @@ asmlinkage long sys_oabi_epoll_wait(int epfd, kfree(kbuf); return err ? -EFAULT : ret; } +#else +asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, + struct oabi_epoll_event __user *event) +{ + return -EINVAL; +} + +asmlinkage long sys_oabi_epoll_wait(int epfd, + struct oabi_epoll_event __user *events, + int maxevents, int timeout) +{ + return -EINVAL; +} +#endif struct oabi_sembuf { unsigned short sem_num; -- 2.27.0