From nobody Thu Aug 01 22:27:59 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WZkB81qdSz5RZfb; Thu, 01 Aug 2024 22:28:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZkB74Vtxz4ZVP; Thu, 1 Aug 2024 22:27:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JNrMgNwmemy3F3zEkV++UQ074XiESLbjeY8dslFWec4=; b=cA7sTB4pJ+53N8KALuzO65eStIJ/hVA+4ayrcRkAQjjL44biKqny98prHmHgwo90hqnoSW rZBlRwN5ESMSbKSje5igBEAdBlYvTZbEb83N5L/8etKXnBEHbN21QexDfYzcLGRx2F/p9Q wJUBoZR5wL/Hew/kT1rVf1N2+KqzuwoNXbkb4L1hdJaYp246eX6cEUVC4cO8G5i/kJq5Tr 4qqZ8QHFjUGY4NlLKSMCDybJK86ew2RH/R4NHdxarxQVC4T4vMWKNyvo92xqKFaXwAIFkZ Fo4SYpUd/+Ax3Lt/zu29OV4rhuAZgBZ0ILs0od0vantUGLyvvt34kmefqE23Sw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551279; a=rsa-sha256; cv=none; b=HUPqEqiChBrcpFI0xnZFP2tM1kkuALw+etoPhDqrs632upNzLtfSo1atXR4lch+9Q+ciWp JzzDKD86KaVKnFemdZmH1Vbzuf6NFRgFuOaJfkJdmZwlcuPAJL4PUFhth0WEeJJV1QqBeQ nkfMlixNriGPDKzm4uLhxH9GSaZ7oVnEE643aDhfhvnmw9GUO/1qSHsaRVsOW0cenE7gl8 HUKCey7lu07qPDibNZl4KGckUEc1z0Tc1mqZn+hjd7emlrj93yo3I0BhEMZ4sWOwrcPXwe W/Cue8HnKJk+6R0TJBHkdiJA69gAuCHJ66kF5+tsVc28Pgta7QyjbOaKo22GmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JNrMgNwmemy3F3zEkV++UQ074XiESLbjeY8dslFWec4=; b=fFoFgaQryllyBUOTFl8KHFtxygc3iHp7zXHA/KVTBH71m0dqWwF6SVmj8U1hWuC/b4hYoD 4DjTo91tIjgiHHH9o2MbjwrZIU530ZgCD/KeZZfVBCj059dIzQ4y5eoNczt8OlKfhQP47s 2TaFlmbuKvNxTZwOtZBDH8McAhtL+0Ps0ANdzMh1fYWVUoeiGnpJ9tjoX5hpPo+3wk69II BrlL6+fC34UL9SyaHMRTVvXqufKC0WbGqA2AlMmM0p5V13teYZa9YHWPUDtNZAqIXoM2nG MGO+N4ZX7fU7d/vv1uL2Og+dCPJk38vwFHUzSYI18Ka4u6jabzh4Nba7kzvBtQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WZkB74054z12nt; Thu, 1 Aug 2024 22:27:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRxkf028462; Thu, 1 Aug 2024 22:27:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRxIe028459; Thu, 1 Aug 2024 22:27:59 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:59 GMT Message-Id: <202408012227.471MRxIe028459@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 0ab568c2fff7 - stable/14 - LinuxKPI: Add __diag macros List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0ab568c2fff71b67021310a4f951a113b5ba5974 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=0ab568c2fff71b67021310a4f951a113b5ba5974 commit 0ab568c2fff71b67021310a4f951a113b5ba5974 Author: Vladimir Kondratyev AuthorDate: 2024-07-21 13:08:48 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:15:11 +0000 LinuxKPI: Add __diag macros __diag macros turn individual warnings and errors on and off locally, depending on version of compiler. Add dummy implementation as drm-kmod set warnings separately for each file. Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu, emaste Differential Revision: https://reviews.freebsd.org/D45842 (cherry picked from commit 742088d9fb545296c8677119757a967141ba7d4a) --- sys/compat/linuxkpi/common/include/linux/compiler.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index d59e6faed12d..c82b9acd53fb 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -89,6 +89,10 @@ #define __printf(a,b) __printflike(a,b) +#define __diag_push() +#define __diag_pop() +#define __diag_ignore_all(...) + #define barrier() __asm__ __volatile__("": : :"memory") #define lower_32_bits(n) ((u32)(n))