From nobody Tue Jan 2 15:41:52 2024 X-Original-To: bugs@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 4T4HCN5WrQz55h0g for ; Tue, 2 Jan 2024 15:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T4HCN3Wgyz3MW2 for ; Tue, 2 Jan 2024 15:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704210112; a=rsa-sha256; cv=none; b=YZiVKMjHuzToHql6nOPzBgJTlBGM/9cNTMaNTpCc/TgFt1Ne+LE1k7sj+4RNtu9StuqPht 8+hUV215syi6uCaZei7GnccDK1pWWStH6RTb/G5H+7KTrbx4oi0F0npBK1z4KaZzeAyri0 rwNcy34NxWy3Z3mv4mAKmsr0tk/W5P1c6Hp0MupT6mlK1UpwbN8PENfoDgocbcXbxZG42K xQ/9yc6tNFolTNzzPak27OJ39Khhoa8CEEPOAoaXFhG3pcNtgOGRH4Hnse8g0FsnwPG7RE k/oy9kgJGL4htOadRfjDrSJdB5LGQBheIxyuWTc4a6VnAkPlJojEvyR5HDF2cw== 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=1704210112; 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=9qXZVRy6DXfVonB0xay2fIqaX3h4ePxB+kjI4RwkULg=; b=EAH8wLkmqbJXEmOjMOG5+a6I0tc8ugr9z+5guEE/FXLHv8ZZIpzn3m5TKHSOWXBHOE7Jhn FmerotkQnPbota40E4xykgy5UTVallnAXep/Z9U3nUKwxAkQU/Kk/fGqyROrBDFajQ9cI4 SAwG0R1ndh78pSAQwTsB/OzBiHhwbRidY+gRA1dPP4f9jbb7w/AP+ql9BbjmWEU6u9mufQ h2DgRBSozttToX2HUxmmjJRVubeU/4Mp132PlzCZyUQWeMxvuET99OWdTsNjuOoY5jzTgX 1zt2Nn2Qpk6Zj65oyWJCrUf7CuYHk/lqXEkI5zxTuBDwoBaNN6UK5P2bYvXteA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4T4HCN2bNPz1650 for ; Tue, 2 Jan 2024 15:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 402FfqPp029522 for ; Tue, 2 Jan 2024 15:41:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 402FfqB1029521 for bugs@FreeBSD.org; Tue, 2 Jan 2024 15:41:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276079] "options DDB" causes sys/dev/iommu/iommu_gas.c: 1095:1: error: incompatible pointer types passing 'db_cmdfcn_t *' (aka 'void (*)(long, _Bool, long, char *)') to parameter of type 'struct db_command *' Date: Tue, 02 Jan 2024 15:41:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276079 Bug ID: 276079 Summary: "options DDB" causes sys/dev/iommu/iommu_gas.c: 1095:1: error: incompatible pointer types passing 'db_cmdfcn_t *' (aka 'void (*)(long, _Bool, long, char *)') to parameter of type 'struct db_command *' Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: Trond.Endrestol@ximalas.info Custom kernel for stable/13 amd64 includes GENERIC and adds "options DDB", causing: --- iommu_gas.o --- /usr/src/sys/dev/iommu/iommu_gas.c:1095:1: error: redefinition of 'iommu_domain_show' as different kind of symbol DB_SHOW_COMMAND(iommu_domain, iommu_domain_show) ^ /usr/src/sys/ddb/ddb.h:176:2: note: expanded from macro 'DB_SHOW_COMMAND' DB_SHOW_COMMAND_FLAGS(cmd_name, func_name, 0) ^ /usr/src/sys/ddb/ddb.h:174:2: note: expanded from macro 'DB_SHOW_COMMAND_FL= AGS' _DB_FUNC(_show, cmd_name, func_name, db_show_table, flags, NULL) ^ /usr/src/sys/ddb/ddb.h:156:31: note: expanded from macro '_DB_FUNC' static db_cmdfcn_t _func; \ ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=3D0 = to see all) /usr/src/sys/sys/cdefs.h:150:23: note: expanded from macro '__CONCAT' #define __CONCAT(x,y) __CONCAT1(x,y) ^ /usr/src/sys/sys/cdefs.h:149:24: note: expanded from macro '__CONCAT1' #define __CONCAT1(x,y) x ## y ^ :116:1: note: expanded from here iommu_domain_show ^ /usr/src/sys/dev/iommu/iommu_gas.c:1095:31: note: previous definition is he= re DB_SHOW_COMMAND(iommu_domain, iommu_domain_show) ^ /usr/src/sys/dev/iommu/iommu_gas.c:1095:1: error: incompatible pointer types passing 'db_cmdfcn_t *' (aka 'void (*)(long, _Bool, long, char *)') to parameter of type 'struct db_command *' [-Werror,-Wincompatible-pointer-typ= es] DB_SHOW_COMMAND(iommu_domain, iommu_domain_show) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:176:2: note: expanded from macro 'DB_SHOW_COMMAND' DB_SHOW_COMMAND_FLAGS(cmd_name, func_name, 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:174:2: note: expanded from macro 'DB_SHOW_COMMAND_FL= AGS' _DB_FUNC(_show, cmd_name, func_name, db_show_table, flags, NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:156:31: note: expanded from macro '_DB_FUNC' static db_cmdfcn_t _func; \ ^ /usr/src/sys/ddb/ddb.h:136:34: note: expanded from macro '\ _DB_SET' { db_command_register(&list, &__CONCAT(_name,_suffix)); } \ ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:234:26: note: passing argument to parameter here struct db_command *); ^ /usr/src/sys/dev/iommu/iommu_gas.c:1095:1: error: incompatible pointer types passing 'db_cmdfcn_t *' (aka 'void (*)(long, _Bool, long, char *)') to parameter of type 'struct db_command *' [-Werror,-Wincompatible-pointer-typ= es] DB_SHOW_COMMAND(iommu_domain, iommu_domain_show) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:176:2: note: expanded from macro 'DB_SHOW_COMMAND' DB_SHOW_COMMAND_FLAGS(cmd_name, func_name, 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:174:2: note: expanded from macro 'DB_SHOW_COMMAND_FL= AGS' _DB_FUNC(_show, cmd_name, func_name, db_show_table, flags, NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:156:31: note: expanded from macro '_DB_FUNC' static db_cmdfcn_t _func; \ ^ /usr/src/sys/ddb/ddb.h:140:36: note: expanded from macro '\ _DB_SET' { db_command_unregister(&list, &__CONCAT(_name,_suffix)); } \ ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/sys/ddb/ddb.h:236:26: note: passing argument to parameter here struct db_command *); ^ 3 errors generated. *** [iommu_gas.o] Error code 1 Disabling "options DDB" effectively hides the problematic code, leading to a successful build. Source tree is at commit c85ff48a092e4c5989f91a4a1ccf99441ffb3170, "nfscl: = Fix handling of expired Kerberos credentials (NFSv4.1/4.2)". --=20 You are receiving this mail because: You are the assignee for the bug.=