Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp266107lqs; Tue, 5 Mar 2024 01:02:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWXRfPPs5G6vbv5bLTrXVx0Du0C0qyZ5ExYp+4zAW5jSaS4ZftCiat6xek9jF3o+njMApoRBrP4oEvHrU71qQhzl7UhcN9QpD2rLNHCrw== X-Google-Smtp-Source: AGHT+IF1Eh+Z2ewT0jldtYNhWj7XnSkKKP5v0+J9XENQMjwtx09UWdxQCUcRDYjdpfNYc/eH+Ymw X-Received: by 2002:a05:6808:15a8:b0:3c1:df33:3f3e with SMTP id t40-20020a05680815a800b003c1df333f3emr1492929oiw.4.1709629375859; Tue, 05 Mar 2024 01:02:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709629375; cv=pass; d=google.com; s=arc-20160816; b=KVib3NQrxjIeuhg6mgClwMeSoS+/iPXgKmOWbHB0DkBzJv38CV6V0zXrgYkyXkLXgt rMzX1ym6bzDITegyv5FZxbigfTtlpBBQ4SwgksnEdZKaoLdv9UqfdIOpKUGiFGqVF6mg WOm3fDgIB7NUYkv7WcDt7Da+nPUtzKyzfZat2jg/n55/OwgWHJMyp6acwn/qmrm93nEO H2nBEM89npFBRpjzAalC607YZUAtUUQuZINHo+DSoXJMp8u1NhXFS1yPsu2pO4IJx/Fb wvHJUIuCK1Z1jsRqDH4PXLy/hbKx1P0TmB75N/1xi7OVdUFV4R++2j0ZS5SvscNY8nSV zQYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BL1pmIo7s1MX4N9LU8kIbt0i/wU5mZK2rTJkOzRk4Zc=; fh=qYUu+zYZt81509katczVEf7sckDzVPYoJ2g7Fuf1bUM=; b=rIeUbZ89Uwv2LZJHxwD8kof7Bc04LhNWEaNv17inH7+mRl94XWZeqQlyaajv+tBB9H CkmUKqlv926OE9KVnQAauq+4ze6boayTxDVY9AQZ4BWUbbCchFsngAO3qMfZmIqWuHXP b/Xdzt9n4oHLGmChXW27t8WHwSOc2i3MTD1ys03eETdLRjnWPuIC1QZserSwu1JRtH2K CD0Ott+v+mtvjG2RcSymMSF8fc2hkm0hLwiu1AHgqspL5c7S9hPR4Yg3PANyahHups00 y+6ZfeK9vBO+c9vVFcKifw+2WJZ/w3dS2XL0zfeBZXTG4M0f0ODGv4PQUoJ6aAtvWGdn 1yow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=SLCP2Bjn; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-91934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i23-20020a63cd17000000b005dc5069298fsi9435697pgg.711.2024.03.05.01.02.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:02:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=SLCP2Bjn; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-91934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9BF5DB21D60 for ; Tue, 5 Mar 2024 08:59:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2293251033; Tue, 5 Mar 2024 08:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="SLCP2Bjn" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C5754F207 for ; Tue, 5 Mar 2024 08:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709629180; cv=none; b=qRkEBuWf51W/JqehQcZGL7f6pxVgDI8UazpGK6zCZFLI0At/mp4EmqBNi4Zlc4tatLSRvw7dLfUa5xlgckv1wVZioh9kV7hvL3WVrimQpcuzVlxY/duxZc0aQN/gHgjtjgRh7ZwWTJVziE1cazG9KQS4v5aEMmonE6jwhfXoZxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709629180; c=relaxed/simple; bh=7E++P3NE3gX/uG8sJhez163L//hFb7dWE0h0h4Q6OTA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=aKu63YiHQVPd1ibxohLzkFr8/1zFK2GJa1STRY6vAeupLLV1+cG4aSjFiefJZKbhIr3rl8Q7SOszdGZCanr78687YnOYMQ1S+7e3YuycBMH6ZhnkyYCEHa4Juphe7tIwQKPvzq5l90o6ZIurKG3VzaFqQzH1Oqrc0u3nGpgbZ44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=SLCP2Bjn; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56682b85220so8616609a12.1 for ; Tue, 05 Mar 2024 00:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1709629176; x=1710233976; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BL1pmIo7s1MX4N9LU8kIbt0i/wU5mZK2rTJkOzRk4Zc=; b=SLCP2BjnXaa8DJ38mRocxropkJdKQfdE9Ktvtb0Dn5121g0FyWHpAjOzWlNAIRYuBg aGbLSQkC64poFN7Y6iTbeBbycp+E4iuUHlgA40r1Cqow2ek2mbyZ0YBdp2D0IJ9LC5iq WesVplUqjSccjpid1rKyMkhZpAUKH+tIuRJBB9H7Q7NM/I8sJhrGr4y8k0kICDx8GNHO KDbhQfbDICrAfdBX/SS3FXPh82T0QFeBNdrXcB64Fu4buSAUovmREBZqGiMN7gZtfrR8 xWZKTc9xklJPMnfITQePUeeRQerh5N+RPIy1vaNG0p5gZCfEcHFIlngVjn3p6KhzQHKm rsVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709629176; x=1710233976; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BL1pmIo7s1MX4N9LU8kIbt0i/wU5mZK2rTJkOzRk4Zc=; b=XVpsK0EmM49oYwIaJNxpgIbvw2y2sHYa289oDcpNtSK7W7Ynzp0opCox+9txEwJ6no L9mSDXuCor+tVDnBMsZp1g1xQIXTCYuUFJOVAnsETOVrwe7hAgAVMMQW3e2spO805GZG lOymK6934AWUDz2lT/8tBUa07lzb2YfOsllAUIy/+sHP4aDFGh50U9Lqav/arznFFiw9 LodrozE0zJ9DduSU0pla11B4JXWMF3Lk58nM3dMWIS3q51VoPwXlLSxhBK9I0e0Wqqj8 3gHhop+Ua3vJYMRGIPbgHhkV+zvYtiHCxl54E/qWOz7n3BpRz1AYBjJf91ETk5kXxmak 5YDg== X-Forwarded-Encrypted: i=1; AJvYcCW5gktTFXRsgp6knvKBL4qdUBKg4X36NifKVlSOWTkaOO0VNu15lz6ErL9FWkzLMzHbbRzk1K9inhqypi0eKpFK+OHf6No0gE1g4J6D X-Gm-Message-State: AOJu0YwgGNq3ko3eqyzZprPFSZdZVhiQ4VHLgqAx4PlRfygTPPHO9RWY 31Q7AdHnAbV2BZSeDRV86IqKn1S4WpA9c/mUgxkuxiTe0x19pEcLowVt1rfKopQ= X-Received: by 2002:a17:906:7809:b0:a3f:29c:c8fa with SMTP id u9-20020a170906780900b00a3f029cc8famr7642550ejm.66.1709629176544; Tue, 05 Mar 2024 00:59:36 -0800 (PST) Received: from raven.blarg.de (p200300dc6f010900023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f01:900:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id gs4-20020a170906f18400b00a449d12cdc5sm4453005ejb.119.2024.03.05.00.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:59:35 -0800 (PST) From: Max Kellermann To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: willy@infradead.org, sfr@canb.auug.org.au, Max Kellermann Subject: [PATCH v3 02/14] include/drm/drm_gem.h: add poll_table_struct forward declaration Date: Tue, 5 Mar 2024 09:59:07 +0100 Message-Id: <20240305085919.1601395-3-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240305085919.1601395-1-max.kellermann@ionos.com> References: <20240305085919.1601395-1-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After eliminating includes of linux/mm.h, the following build failure occurred: ./include/drm/drm_file.h:443:45: warning: ‘struct poll_table_struct’ declared inside parameter list will not be visible outside of this definition or declaration 443 | __poll_t drm_poll(struct file *filp, struct poll_table_struct *wait); | ^~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/imagination/pvr_gem.h:12, from drivers/gpu/drm/imagination/pvr_fw.h:9: ./include/drm/drm_gem.h:447:27: error: initialization of ‘__poll_t (*)(struct file *, struct poll_table_struct *)’ {aka ‘unsigned int (*)(struct file *, struct poll_table_struct *)’} from incompatible pointer type ‘__poll_t (*)(struct file *, struct poll_table_struct *)’ {aka ‘unsigned int (*)(struct file *, struct poll_table_struct *)’} [-Werror=incompatible-pointer-types] 447 | .poll = drm_poll,\ | ^~~~~~~~ The compiler is confused, and that can be fixed easily by forward-declaring the struct expicitly. Signed-off-by: Max Kellermann --- include/drm/drm_file.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h index ab230d3af138..f24ade9f766f 100644 --- a/include/drm/drm_file.h +++ b/include/drm/drm_file.h @@ -44,6 +44,7 @@ struct drm_device; struct drm_printer; struct device; struct file; +struct poll_table_struct; /* * FIXME: Not sure we want to have drm_minor here in the end, but to avoid -- 2.39.2