Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2114946lqa; Tue, 30 Apr 2024 08:30:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTzTstxHGOVqZkxKg8ADRI/nv9nDZtVuIRSbMZdV/Sqm6A9E1bZ1eC9DWOVrTzVjwOIZ/OgKzBT9x6s0oeSy22ITlZk3nAwfdWF9sM9Q== X-Google-Smtp-Source: AGHT+IFxN6PcvQyGzfEvPodThz1EJwn0MLW20pDOE1BO79p9//H70BK0iVxVaMiqCkfcE8rTbdHm X-Received: by 2002:a17:90a:4ce3:b0:2b2:7e94:4073 with SMTP id k90-20020a17090a4ce300b002b27e944073mr2812430pjh.14.1714491037384; Tue, 30 Apr 2024 08:30:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714491037; cv=pass; d=google.com; s=arc-20160816; b=GM87Fg8A8OdCxoD5epgnYbnpZiobJx23xHdM2m5/WJQO5UKgqoHmTLs72skJnEJbsk iATvVhJcR8OQwUjK+yVDsqWB8zx4vyxgbCjrqF7N5ZJc5Up8LKHDd+OzzSfLrMqwyYrb rvonuByunUYiaU+47aXmJMZ7xzPJfVs2YEtM+4dbDlB3pHZ+1a1kS9tClcuXz4utvtNK LZlWosxtPAIl3axmoM4UjtdTPOw7LxcYeFtrd4/JhZmx5xf2M+sdIruJ3dsVr79DLdpA FnvJ5ENCePofIREYjOXVPMaoEWZxpZkG8dXc9RJpD7YBYpSR5cXYRU0P7H/eS1CxhGYd IK0g== 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=PyW5R5OjwzQQ4Q+y0mK6lZB0vufR69ssl3FhEqPAFAY=; b=dowVz7J5UPj1NM9OuSWs+nT81ZneJoLxm0Cs1Ex0LlTii1/Lwm8VUnGY0AmaGDrQ6R FiB6+cUUCCanQdmrU36rl06KN8IIf6xv/qezfIx+CQxmW9QTtSQzxm8McXvDfFGM6GFn mm0/5HOJjQjaqVtYIB0Vp6rjfA+0KbLV3P/CtRYGLal4SJKiIzhk2342OH6BZoMHSN51 9ad/ufWz1P5ut2aHjQH2MrPLukC/zR4JCoI2Bqp6Wf/usGPAUqfKzfQNutuAxzXBfoM/ vQMf4WoewMMMu1SiEOjZmwppOHBpybFdyohdW1q7QL4OYcFbfZjGNXA18ckjYNF0OfvK 5JQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=RyioEbOf; 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-164269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id me14-20020a170902fc4e00b001eb71628291si5984674plb.117.2024.04.30.08.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=RyioEbOf; 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-164269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164269-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 673352819FC for ; Tue, 30 Apr 2024 15:30:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE5F9172BD6; Tue, 30 Apr 2024 15:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="RyioEbOf" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 7E5EB143750 for ; Tue, 30 Apr 2024 15:29:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714490992; cv=none; b=knXAEgG0dnXeHAiDzSYORXfwGRk2uu4hVs1oSK+Nio1TXrrACR5OKSGMEH8QWI11VMguYW8Q07Bv/Bb5ghYxIajeAIs/LvG9ER+hEnScx4JJiabNKoG0wyskMDgMtbqdOdJqH1qNrKq2j/2I51vMdaol8HcbovC1eg+vU+lGfNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714490992; 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=F2yFEWoPeU8CmOOa1DJyDb9kGZQFMhVPGX/hQmEdjMO8CAjeCiy4I2As48gf7Ls2GuYTwagQPZB3lnhcSSDq5prksmcXvDSY/sivTTBqg8BiovfmvIbijEFHTliU2qBhWmqntDTb7eGhy0nfvkUDEaj/chg32Ht6xSw2lj/v+Xo= 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=RyioEbOf; arc=none smtp.client-ip=209.85.218.54 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-ej1-f54.google.com with SMTP id a640c23a62f3a-a5557e3ebcaso957581466b.1 for ; Tue, 30 Apr 2024 08:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1714490988; x=1715095788; 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=RyioEbOfhOuUwUTTbZfuYJfVfNI8Y/V6HZ5oj6G3g76P4fl+HA3ZV5B5serMh4Pjve dIf0fqQKDwYCQqo6n20WsoeTL3Q0AJO6rR8TX/CEBFGtqkul/YsaOJ9wUXU7F+/JeWLT POq61OZrOgvqTFi3Kr9HaG4Dnzp0Pejf0uJMl49B3wL9eCmu2+rB8VMOqXSisavqNUUH z2agXgIsZ1UUTK/JmBO5O2sZTocYSPWdaZajLK4CTmcY2yWSd1PapGFNmTDeraUMJSo5 PyHyunGLinx77JWwgO1SCrFKw9Shv/HpZVF/TMmtb5UK9IO5fs52iQnTIcTWeIVSmvbi JrxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714490988; x=1715095788; 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=trIn6RV+qCPJlb/M2mchE4QDPaC9BROl1ExJe8m6HqGz7d/eno7AYt28mV4axm2eoN 7/R24DBCJ6+HP5sQ2wDKTXk5Kee6Sf7baUiYqBaXQpEFNikKx7NwC1Y26mTf0fC8OVMx mM9J2mV/DN93kmk52OKcR2PryRAeRss0j9SI1ToqlSDcXBL5cOW2zPL8NundM8t0Djga r9PcT5IFKgulYq11kfEzTgcA3RmN+RgFjgQmgUJY828YmUEO1pio5aeNMnfvqs67jsbO BP7D5kMJU4iWFqwojc6Kk75YWSAGfvOaszmFaH1j90zG4IL5A3rASlsnzbcNa3mWhK+P Hjfg== X-Forwarded-Encrypted: i=1; AJvYcCWTboxGWkZyBaZURkTT7ilTqIHrczqD69tURaujdYd+FcFZYTBJQPyepRqDWstfZ2dU1R7qOqRsX0BvYP1dbk4oATCkDHkVi2AAOdtW X-Gm-Message-State: AOJu0YxEzT9vB4W6WnkFODXeMLKHJqHgtcCPrWSos/lAaFfy+VjVs0u0 MGza3iIxSflIqjuP+EmvaR8BfoiRXVE7DX/eISGPLFDbM97K/VpdxeMcdkUjbxQ= X-Received: by 2002:a17:907:7892:b0:a51:abd8:8621 with SMTP id ku18-20020a170907789200b00a51abd88621mr2974749ejc.19.1714490988661; Tue, 30 Apr 2024 08:29:48 -0700 (PDT) Received: from raven.intern.cm-ag (p200300dc6f06e100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f06:e100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id a10-20020a1709066d4a00b00a52567ca1b6sm15278137ejt.94.2024.04.30.08.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:29:47 -0700 (PDT) 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, david@redhat.com.au, Max Kellermann Subject: [PATCH v5 02/15] include/drm/drm_gem.h: add poll_table_struct forward declaration Date: Tue, 30 Apr 2024 17:29:18 +0200 Message-Id: <20240430152931.1137975-3-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240430152931.1137975-1-max.kellermann@ionos.com> References: <20240430152931.1137975-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