Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3580742pxv; Mon, 26 Jul 2021 07:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvtacZacQsaSrX24BTvpjh649sE3ymWWAhntfa29VM9VRCFmh4qRJV7G+7bu45BqnKLrv0 X-Received: by 2002:aa7:c808:: with SMTP id a8mr22061998edt.245.1627308897134; Mon, 26 Jul 2021 07:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627308897; cv=none; d=google.com; s=arc-20160816; b=pC5WEroXvOVtABaTJBSWCAqHXOpd0VvDI20XCip69OhW5+XLPnvPJqTTUSUYpOLx4K GfkDMHYZQNHpjVNl4gTUPUZAqc8eTJXMMvs0E90Bvrc487pX7DXYKSQh4qJenHQb5z1v tpbdpQowXdYgec4o2/O8P5FseUakvaOmayk+IQwgJYhN7X0Q3X1+eKoX6bbfLmV66cKo QrT5/Hd9+bdUrPvijT5kuftva+MOLYSiIF1cdywmg5TeXdfl9ihPx+/+qwblqIUOvVZ9 c4myF33QKCg2i5qm5vSI83lD4LgFd6v3DhQPDfOp+qK5dfinfOPPMLuHMfmDcPJiu2M5 eptQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TkGimo2DwW3KtZxYhbupw4WKc3v/MI/8Nq72ca1HffI=; b=JLOfdrX1e7GCkHooCMQav7HCiJfchd1W6mAIXRqEBrD+YmEvDt3Ve72XTMer3S4Hd/ 9aej6mQ4ML0pjvuw5X5h6Pr8Qf66wUWg78l9G7/2iVqxmLh7yCO1MuwpZqYNNj2O1NrR npuAZptLUXGuhr3uS3+CIixgAJGxbHr2OO2VXPSGkTCZ5+4P/1Xk4tMokTvujOqWoVgW 3pFCaKddCkj7q7cyA8si/m6D5k1WYkTBAqHe8q4nHczkUfVIwelETo9WbVzIujiZy/sk Ueh0LcULts0Qg9XZxIOjnsvympYmkNdRMfkgLqGuUB4moK6DaTNSUKvi54DqXjljPpR/ qarw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hoxjGN6w; 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 f9si40168ejw.212.2021.07.26.07.14.28; Mon, 26 Jul 2021 07:14:57 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hoxjGN6w; 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 S234756AbhGZNcL (ORCPT + 99 others); Mon, 26 Jul 2021 09:32:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234469AbhGZNbi (ORCPT ); Mon, 26 Jul 2021 09:31:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4923E6008E; Mon, 26 Jul 2021 14:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627308727; bh=UTVA/I5GZpCUptag9FFZWsMgsUUuzpPL6332p4erEwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hoxjGN6w3v5WOEatYJDRYdg3rnRAdqft0//FplgqJO0bx9AKwj3uGjQrZg7pmX1wZ b47xhtea55Pjrqn64z2Cbe8lDlBhKuotlchG7l41O59NQCxS+o1cjWlVbwp491ctDx 7gZY48iw3jNzc3KrGSC1IVTUCCd0+8Hp9lOajd4ov40kDdM4dHUk3OwqG1VFmyMEne 4Ay0j5sHrv+X9byQ/pktr6uvm0/iDWirlW496zwPO+d0Z+T3N4zv8/azamNVWrdWHO sDEFTcSvEQ8qr5Bn2qaHxjLYaAlniQ+8kJFqtkxxIvPZbZh5CRUTLby/lhyYj9ASol v+W8sjv6yFbEw== From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Alexander Viro , Linus Walleij , kernel test robot Subject: [PATCH v5 10/10] ARM: oabi-compat: fix oabi epoll sparse warning Date: Mon, 26 Jul 2021 16:11:41 +0200 Message-Id: <20210726141141.2839385-11-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210726141141.2839385-1-arnd@kernel.org> References: <20210726141141.2839385-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann As my patches change the oabi epoll definition, I received a report from the kernel test robot about a pre-existing issue with a mismatched __poll_t type. The OABI code was correct when it was initially added in linux-2.16, but a later (also correct) change to the generic __poll_t triggered a type mismatch warning from sparse. As __poll_t is always 32-bit bits wide and otherwise compatible, using this instead of __u32 in the oabi_epoll_event definition is a valid workaround. Reported-by: kernel test robot Fixes: 8ced390c2b18 ("define __poll_t, annotate constants") Fixes: ee219b946e4b ("uapi: turn __poll_t sparse checks on by default") Fixes: 687ad0191488 ("[ARM] 3109/1: old ABI compat: syscall wrappers for ABI impedance matching") Signed-off-by: Arnd Bergmann --- arch/arm/kernel/sys_oabi-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/sys_oabi-compat.c b/arch/arm/kernel/sys_oabi-compat.c index 223ee46b6e75..68112c172025 100644 --- a/arch/arm/kernel/sys_oabi-compat.c +++ b/arch/arm/kernel/sys_oabi-compat.c @@ -274,7 +274,7 @@ asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd, } struct oabi_epoll_event { - __u32 events; + __poll_t events; __u64 data; } __attribute__ ((packed,aligned(4))); -- 2.29.2