From nobody Sun Jul 21 13:14:48 2024 X-Original-To: dev-commits-src-main@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 4WRkQw73l0z5RV5Q; Sun, 21 Jul 2024 13:14:48 +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 4WRkQw4pdfz4S0B; Sun, 21 Jul 2024 13:14:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721567688; 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=d36x+e9ORjUDuZ3v4VoYEh7FCqvaa09F5UvuGwsg+LU=; b=Q/2XXVSqxoV6KZ95cmvQb/L08wkt2wDlb/djn3lCjFW1+Om+RaMOFQDujlyT4DITmZ1yxm kb7eej8ThPtzeGUX3uO8iAhtQ0XQiA3lkmOJL4WckPVdBVubTw5fy3KV8FuPx7FvDHcSqz fGgAICDN0Et05C/IlSinlru9aJUCQhN7VTecO5TTMZfrU0S9UFx0LvHLpT6ItG6FZgagB0 E7HUCszp8MUKQl1uo4gFp8Q1vgw1OKT9a56fW69pXYpstlwgY0ZA4MG+Kt2daysbNU/R29 LBG/XbjUBXb35TZesXuAcxg2rc8IU4FSZvI7brMmB5KAbwaq1Sfm1l9tmFQuDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721567688; a=rsa-sha256; cv=none; b=sL/xHfHm+FPo80YI011UQFoiss/UO37AKy352xUM9U4WQsK0cXn1RpAyCOi01MtkSNb2a9 gFWq7gzNoXJUOOgCQbvmiPk6qnHEfbgp0tn49gNPH+E7jZ2SzTbCVcait4B4LPyYAaXZjH Avr58LTDR1Tapz05UKK1f9PiJuT5uamV9TvvftPU68cNlhKyVkTFhIz+Ry42KFWOAcJQ4S rNVgmSaStrr9fq5LVvp6ZYsXgwXRJ+XuifVXqtz1KrzSLK8/V1PiGA1fTmHXKxwDgJqc9M 3QCWDRfb3gWEV5OKMhelWK/laMxFMY/yIOnyEVF6pDOLSLq6/tF+PPTfX9xRqQ== 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=1721567688; 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=d36x+e9ORjUDuZ3v4VoYEh7FCqvaa09F5UvuGwsg+LU=; b=suvACY32oiILQcvRZbVP0wJkcKY8u8kLEP/vEK8KCu/+6+1IIORBVlv40bfyfPcCfjKJ52 oOgc6VSzMM4mThWLPDBJFj5tVN11h9sf2xrumF7oJmnddh9ESyriCEeAWZCdLwpu6G1IUs ZmdI3g8A7sl1z9TT6AHtZAqj679bRQ2zH5R2NtkGrpqxqm0dpZChobfnQjYue4J9mWYkYx 8zIgjM6wZ64SfQkR4fNMSaGRbnkoQE1fOJSzehH9fCesWjGccerbWXuDYCzuozcUCm0XPt QSemR313KNPr/Q4aA1XNnc6uTIcwbjXXtHCYaFwEzB/sIwg3m9sWSXpUF5KUiA== 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 4WRkQw4FcBz11m9; Sun, 21 Jul 2024 13:14:48 +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 46LDEmoO023029; Sun, 21 Jul 2024 13:14:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46LDEmJ5023026; Sun, 21 Jul 2024 13:14:48 GMT (envelope-from git) Date: Sun, 21 Jul 2024 13:14:48 GMT Message-Id: <202407211314.46LDEmJ5023026@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 742088d9fb54 - main - LinuxKPI: Add __diag macros List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 742088d9fb545296c8677119757a967141ba7d4a Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=742088d9fb545296c8677119757a967141ba7d4a commit 742088d9fb545296c8677119757a967141ba7d4a Author: Vladimir Kondratyev AuthorDate: 2024-07-21 13:08:48 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-07-21 13:08:48 +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 --- 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))