From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21465606A31C for ; Thu, 29 Oct 2026 22:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=ilvokhin.com header.i=@ilvokhin.com header.a=rsa-sha256 header.s=mail header.b=vALBjl5t Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jFzWL0MNpz3048; Fri, 30 Oct 2026 09:32:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=178.62.254.231 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1793279533; cv=none; b=JvmFKU5Yt+o7oCpypW45jWHJB2WZf5g+lpWQBg6J7w8lWSm+Q9s2eqqX0nrgcmvEjiCayD8kQILkmGlkY16rJq/qqPXsU0H+avYYcJ9HJ8attAVBmvgHOysHdiQALpvMKqZwawdfHhOQV54oAlDMae9CLmHn2vi4CrmzaYB5VK6vBHkHaGdENmXH6xPJNrsSrztrq7WL6+RvPD9lhvSZIQo/pnsIO8WZSfQropHydtnuu7cBMtWPJMfl/cSqR48lK6OO/cyWhpnh28fGD54R6XcDDiGNtLVU7mNARWWrh0FSi6q1qxG532rnCb/WZLJ6BHLf0x6ul+j7TX8UUQ6n3A== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1793279533; c=relaxed/relaxed; bh=4cruogtXfNCOrJCvoodcyrTOzahFlsASVgaus3wd4bs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T3P0IGDBqJfGTk+gwI67QIGLaSV7ZvWxPNgJ+7BiQxcWIJXEhdDagZvw+G/DJWZ1aacUa2mBstgEzEl1HcbpFPHQUMTejwAHC9hebHYVCamUIie2WX538qCrHAOvrE0bsfQIIlVhp17Z60vt+QNvpFtla1AaurqKsW1n9D1EfMbVZizNc3TILTUPH+3dVqtSRVfpiO5EaXjd0ua941k7p4zvkmlSiarkOWXHn30Us/K5euIZ7m7HXK1jwo1swf7KEdb0pw6aZMkIIXt0gav6PgqB6WuR0oTD3UIevOowiAS4ZdLmAYXVGXVRX8lb/FlzKT9GUlV+OMxyUUnlanYodg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com; dkim=pass (1024-bit key; unprotected) header.d=ilvokhin.com header.i=@ilvokhin.com header.a=rsa-sha256 header.s=mail header.b=vALBjl5t; dkim-atps=neutral; spf=pass (client-ip=178.62.254.231; helo=mail.ilvokhin.com; envelope-from=d@ilvokhin.com; receiver=lists.ozlabs.org) smtp.mailfrom=ilvokhin.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ilvokhin.com header.i=@ilvokhin.com header.a=rsa-sha256 header.s=mail header.b=vALBjl5t; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ilvokhin.com (client-ip=178.62.254.231; helo=mail.ilvokhin.com; envelope-from=d@ilvokhin.com; receiver=lists.ozlabs.org) Received: from mail.ilvokhin.com (mail.ilvokhin.com [178.62.254.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jFl4r2x7Cz30FB for ; Fri, 30 Oct 2026 00:12:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilvokhin.com; s=mail; t=1793279528; bh=4cruogtXfNCOrJCvoodcyrTOzahFlsASVgaus3wd4bs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=vALBjl5tg/HLHwAe5LnWN0I+FZe/ilBHT2lZAbbXATHMbz98KZlNi97W3j84M5MIm EgXRxUJW0KRszvy4pqxbaKoourAWAFiwAZJY+Ct2Jbwg3k04WPlzyGUItH+c8SnyYr SQLCcctV6enovEyNRJB4QlV0k1lXcskW58pkHYoY= Received: from shell.ilvokhin.com (shell.ilvokhin.com [138.68.190.75]) (Authenticated sender: d@ilvokhin.com) by mail.ilvokhin.com (Postfix) with ESMTPSA id D6809101233; Thu, 29 Oct 2026 13:12:07 +0000 (UTC) Date: Thu, 29 Oct 2026 13:12:06 +0000 From: Dmitry Ilvokhin To: Miguel Ojeda Cc: Thomas Zimmermann , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Lee Jones , Pavel Machek , Joel Stanley , Andrew Jeffery , Ryan Chen , Billy Tsai , Maarten Lankhorst , Maxime Ripard , Kees Cook , Andy Shevchenko , Matthew Wilcox , Andrew Morton , Andy Whitcroft , Joe Perches , Jonathan Corbet , Shuah Khan , Randy Dunlap , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-hardening@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: Re: [PATCH 07/10] drm/gem: Switch to __nonnull_args() macro Message-ID: References: <5bfdc1491d297b5e98cf42322c790f06481c28c7.1793027261.git.d@ilvokhin.com> X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Oct 29, 2026 at 02:00:28PM +0100, Miguel Ojeda wrote: > On Thu, Oct 29, 2026 at 8:32 AM Thomas Zimmermann wrote: > > > > Should gem.h now include ? > > No, it should be included for you (unless you are doing something > custom with the compiler flags etc.). Just to add a bit more colour to Miguel's reply. I believe idea behind include/linux/compiler_attributes.h is to make attribute wrappers as simple and transparent to use as native compiler attributes. In particular, this means they should be available in every kernel compilation unit without any additional effort. For this reason, all the nessesary plumbing is handled at the build machinery level (see scripts/Makefile.lib:171), where '-include' compiler flag is used to pull in include/linux/compiler_types.h, which in turn pulls include/linux/compiler_attributes.h.