From nobody Thu Feb 03 01:14:17 2022 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 3608D19A70CA for ; Thu, 3 Feb 2022 01:14:18 +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 4Jq10T5X05z3H1y for ; Thu, 3 Feb 2022 01:14:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 87109607B for ; Thu, 3 Feb 2022 01:14:17 +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 2131EHZS069524 for ; Thu, 3 Feb 2022 01:14:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2131EHoG069523 for bugs@FreeBSD.org; Thu, 3 Feb 2022 01:14:17 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 261687] On powerpc* bus_space_unmap() is not available due to header mismatch Date: Thu, 03 Feb 2022 01:14:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643850857; 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=r8uVY2Z9EdpN43Gl3iuo/UcS+YLOtp8KzpNbn4KcXcQ=; b=M+sPWkdKqnYRMBdf8wbh645hcF9FRpZLNaMS4aFAWtwBXm0MSWLY4FsPwpfx38iKiYjjCT ft1CDHlGVvCOIT/4MHAFgYETg/ys+0ax4hck9gXgG85pQqfLDk1mUWhZ/PcGDoggAtdW1l FXNX+vnDMqswmjVgWNzJTDNgD3CGH/KoZOgG+lsDPBU428ZgBrlGH3oL6fmL2fjLuZjlQY fflv8rsngGYH5WBWF2uSmZbFTWj4Afnd7L0+i3heIzpQr8XhecuxayRTNCXL1/r+6IWk2K LA0wjFvz+YZsMQtKrDfeyAebz7JwfFFoFXfAyznfolrV/zjovr4nqrFxgjOFHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643850857; a=rsa-sha256; cv=none; b=n5EUgiC4LRFDRw5qW3OnDTYuJfLpNyICs9f7J6ZevE9OFltKFAynQ0YuqDI/Xb6Y/rrcYI rpyQPONATlsMk+jDyPOMZdp3bT0s6kuOkLjJusxWTivU2zYIt6tIUj20DJrDUGWA7y0ZM5 xIkmGKTIXaULyy14M1onkC6d7/tG+WftadhGkDk96As/t83r8RAK/LbYIqr2kAYj0Io6oZ czCQooEPUEGF76aNLwS0CVoHsquT4cB3lp8bHHiijLDPOK9WhB+9UlWpputlW3MBAFVAeL FE/zaVlYe9kqTE1+TuVi7iEQgY3nYu1mUBQdkKfLa3hBqzEZmcJpFC9Ev0Ed1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261687 Bug ID: 261687 Summary: On powerpc* bus_space_unmap() is not available due to header mismatch Product: Base System Version: 13.0-RELEASE Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org From machine/bus.h: #define bus_space_unmap(t, h, s) (*(t)->bs_unmap)(h, s) So bus_space_unmap() executes bs_unmap() and gives it two arguments. However, from the same file: void (*bs_unmap)(bus_size_t); So bs_unmap actually takes one argument, not two. Found during build of net/realtek-re-kmod port: cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c=20=20 -include /wrkdirs/usr/ports/net/realtek-re-kmod/work/rtl_bsd_drv_v196.04/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fPIC -mlongcall -fno-omit-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/src/sys/powerpc/include -MD=20 -MF.depend.if_re.o -MTif_re.o -mno-altivec -msoft-float -mabi=3Delfv2 -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -std=3Diso9899:19= 99 -c if_re.c -o if_re.o if_re.c:5306:77: error: too many arguments to function call, expected 1, ha= ve 2 bus_space_unmap(sc->re_cmac_tag, sc->re_mapped_cmac_handle, RE_REGS_SIZE); =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ ./if_rereg.h:1181:26: note: expanded from macro 'RE_REGS_SIZE' #define RE_REGS_SIZE (256) ^~~~~ ./machine/bus.h:281:54: note: expanded from macro 'bus_space_unmap' #define bus_space_unmap(t, h, s) (*(t)->bs_unmap)(h, s) ~~~~~~~~~~~~~~~~ ^ 1 error generated. --=20 You are receiving this mail because: You are the assignee for the bug.=