Message ID | 20240215145602.1371274-3-max.kellermann@ionos.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D76EC48BC4 for <linux-mm@archiver.kernel.org>; Thu, 15 Feb 2024 14:56:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CFE6F8D001F; Thu, 15 Feb 2024 09:56:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C0E138D0022; Thu, 15 Feb 2024 09:56:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9ED048D001F; Thu, 15 Feb 2024 09:56:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 688278D0022 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 09:56:15 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 44C02A04B3 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 14:56:15 +0000 (UTC) X-FDA: 81794338710.05.DD64A9E Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by imf18.hostedemail.com (Postfix) with ESMTP id 853951C001C for <linux-mm@kvack.org>; Thu, 15 Feb 2024 14:56:13 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=NOwKUTpu; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf18.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.51 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708008973; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BL1pmIo7s1MX4N9LU8kIbt0i/wU5mZK2rTJkOzRk4Zc=; b=o1iBYcy0qTXtxPXRfS4KUEd2ESr8alUAFUT2n+uSACXHnRiVuv0z55sV+zHcMzimwkD0zx KDRCr/lncCHLxc+qeHGhUoA0A4Sy0FItMLgENJgBRTkgY2ga3enge+CgjpFPdyRDQMVRds W9NRPk4eOEmIQbyfBVMiUbYAtuTEpY4= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=ionos.com header.s=google header.b=NOwKUTpu; dmarc=pass (policy=quarantine) header.from=ionos.com; spf=pass (imf18.hostedemail.com: domain of max.kellermann@ionos.com designates 209.85.208.51 as permitted sender) smtp.mailfrom=max.kellermann@ionos.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708008973; a=rsa-sha256; cv=none; b=jRoO8UXKoDK+llBF7qWF7/8Q7YMtsCdJqVSnTwmMKAMiEYsG//DENxanjbofVyUK+kT9fV rxR5h8146JxdoiesN+caIG1bJEMC0Lmv4R8SBp3chsIwXra4dYPTqEjthb44n0tqUIp4rP DPxz87PQGuo4wF8wSi6FHqrqgx+JSwY= Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-563a6656c46so1408517a12.1 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 06:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1708008972; x=1708613772; darn=kvack.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=NOwKUTpuFofeIqizouhWbCzM//81SWQGcW1blx4qqRim5o7xF+loK1hr04dpNgs3qh oM5F79PUuSJY8MoyRAukXIJr3jqdIaachYkFLleOVoIk4iMVdO7vJMxSELHE/c6gHEkl ZZ1qwBJ+drLRl/Xzjqa0Hj94ZmVFgSyMhT7E9p2ZnhoQKXnUPKzxb30X7g4VKOm7F1fB obXa2tyovm2sH8Zg9taBs9EoQ3Dddt55aXGpNUsmux/wrbwrH8yEz0yBVATbVBqzHNBs UUA9gVLEa1fuQUa0E7tou0tBHdt/xQTKmlX103NFLc0x0C15iUfSBQ0mzqJRWrnYjZIr 3LcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708008972; x=1708613772; 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=S3GaZxp2fpvpFJVzeq4/z9VtRuyeXasMV99uKqwEPuTJ5bhNyb4Kwy9r8KvRrIT837 Kfw2En81/Nk9ljy1ZguunDbyIR90nne1mVK4wx0tZDSPs24k/5Nw1g32qRCl0DAbBXwe zTmNz8w1wGFi6qu3BDh3+t4U9ZHzTYW6nb2aVYLPugTRNoGBmSAbRdS4gNeOV1voIst5 SZGqBHMwEjyJ9lquN2cYVw+5ri1D0fwbxESe5DFCyOgNU1IncKFqumqX08WrPGGKaNTG FYuUyf5v5ZVHS1y1Ce0922LrVKKFis4IjliU5bJEJw2VTeYrzVwO5I4jvTw3CjAGPyVc 7NkA== X-Forwarded-Encrypted: i=1; AJvYcCV0i3p03IXH4q62cRfNj6/hXNSo4Hpd4uRBGhE9gprMvVa4d/4pMJ3sPSDmiF/XBQ0fV0aL+I7ONG6gGEE4GK62JAI= X-Gm-Message-State: AOJu0YywsTaW1MYnmGz5Py3NrQ7DKJ9JT3wnacnczViOKhKwxW19Z9D7 K+cR5/97b/w2rVVInAIBHb9PGHr+O8cDkSvwv6qbshMt9xsi7bSB1euU4NhTxxqGHflut6IixZo 7 X-Google-Smtp-Source: AGHT+IFKfxSMdDU58egMnr1nDOgEiMLO3WKEhWBKIvifvsssID7+Frq6c2q9Yzb4eyPMkscD2JQmYw== X-Received: by 2002:a17:906:4157:b0:a3d:7ca3:fbab with SMTP id l23-20020a170906415700b00a3d7ca3fbabmr1539833ejk.27.1708008972211; Thu, 15 Feb 2024 06:56:12 -0800 (PST) Received: from raven.intern.cm-ag (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id s18-20020a170906169200b00a3d1897ab68sm631175ejd.113.2024.02.15.06.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:56:11 -0800 (PST) From: Max Kellermann <max.kellermann@ionos.com> To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Max Kellermann <max.kellermann@ionos.com> Subject: [PATCH v1 02/14] include/drm/drm_gem.h: add poll_table_struct forward declaration Date: Thu, 15 Feb 2024 15:55:50 +0100 Message-Id: <20240215145602.1371274-3-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215145602.1371274-1-max.kellermann@ionos.com> References: <20240215145602.1371274-1-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 853951C001C X-Stat-Signature: k6m7addobo9a8cc3cbw1ief6smmnesws X-Rspam-User: X-HE-Tag: 1708008973-379173 X-HE-Meta: U2FsdGVkX19Jk9SiqZ1DjA6etMfqr7tqdLme0bnWzs57K/Dg4Jm+67mnx6wH2P5LdvOoAeWScNQJubTTPNI/VoxsU+poBk2HxK8RqzD3awMFxmVZA680lGxFiepliMv+yIQGIixZa1aN/I0nDfyK+Kdm3ru77f5v61f5JarP7lMnjU798WjqY/umDcExDqtM3+FZPBhqo40Ph0bwJLND7UPJfgl6pjzRLkF1Zg6Ef45QxR8RGITPn8B4l4bQhkT0MThzbYah6TheHTR4YLtsbyqjwfI7A+t5+jxuGwZg+FYO53PDGogGorhlByeHic1nnluXd0sEdUwD24oGpuEuIL6+M9hVGDBiNFGP4N1sriUngQje6S0/LqsEOPzFvJOG+cQFMjvVeog5/7vjH/lHy/+jW+so4nNJsNWbepsAGBsI3XfdvxXwVsVx84ebekDlPIbL9/GaHYBatLHj895TscLD4inmwpS9hAdmFpcAagNNkowFNcldqRYAy6dLjOeC+P2G9BFAvuj3REwBcMWpHHb9Fp2pFSTwbY1OQflC24NbLUtzg9FnbESf3l1ymS689kRox7uDcusFXdguQIeibqv/x4tPPvAKPaRxeX8M8s7h9oZvaA1o/yXudV57Ia56DjcxOuMrnNoapKHNzPe0tbLlM/33OMLmWlt5xmfQu+BjGWYtnBko2GVdPJ3YJhe9OWx3wY4BuDDGPYv+6tfQ6mv8tmmsERn6InAZgVoEVkyj0qcsm2BEWwTD014Cjru7rV/nuREWI9wjslxD/1NvF3RyPzHX6wULFoHhnQR4JGn4X5A4huTswtkqFk50QIb2NnZ+KVvyi7JKRtziSaJMADxwIIc14i6r+uHbkQccF9l/gOl9PVCNdHdBm+PF0X6015oEqwy6gncDoMMjXMwQ400iPkguW7w2QCISlUPVHJtKqt9biLB0NRq2PvGYm1KDW2UNcnXhdWjCs/3We3I KDpFLyog RAfeCubiC3faUdRnntaeXdd8cOsgLfLys4WX8nqdMbksg0qRap9b86eZNPVIludlW4JTqiO/NHM2aXHYzYlBceP5rjt4ruevZ2VtLX5nZXTRMrZjtWnBx6NRwzg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.028649, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Fast kernel headers: split linux/mm.h
|
expand
|
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
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 <max.kellermann@ionos.com> --- include/drm/drm_file.h | 1 + 1 file changed, 1 insertion(+)