From nobody Fri Apr 29 03:39:55 2022 X-Original-To: arm@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 239611AABC7A for ; Fri, 29 Apr 2022 03:40:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KqJCR1l5Gz3QKm for ; Fri, 29 Apr 2022 03:40:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651203596; bh=ctOggl3IxsgNzu+vQLJ/0lgNpkCS3m42ynU9rxcsyPc=; h=From:Subject:Date:In-Reply-To:Cc:References:From:Subject:Reply-To; b=IAk3zpTqiOwmz6oqO2OKtI364RpTAsiLkrSgTqzfq3mghVHHmAxLE4VwvBZi33ci9CEyYLsq3MijFUv1b6lFrR8XObwxGl/1gcWMloHPlcXHc3SAapE1g47Zrknz+da7kXt9LWy2FbGkacdFOJXAnkE6NRblOP/Wxayf8cJwBqq5OGoTj5hcG+sK21f06AziFltFZHtL4RoTjb4GsD/fA2tejX5yF6JR41rgLaTx4Y6IoWQwZSGgrviPw05IHVgXqeWMTVn9s3UQLO1BwWXz9OZKKD7C5pfTKKOCicAERl/NoRlT1XhPnxbXO8rZi27A93RUzR59G2y7qCVC9WIrbw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651203596; bh=YOVF3H3XrvCNob4RbNzP8WAFBY3hPbkn2LdijwNtag5=; h=X-Sonic-MF:From:Subject:Date:From:Subject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rBPULY54yFIV7AWv8YOg4kZmzCGOPD_Qwyy VYXv6nN2CUVFTZrdTDqem5nst.QnI7I9GiRE5HRf4MvBO.OdOJPnvFzKgT1Q0JOc2hpWptEvvAI9 VEV5IuD.rwzj9uQzmHlkS98JLGO1q6W3nCJx5tl6YAFu5f0iicnUS46Du3t9HOToS3.XYziTnds. aEZQ6kOE5sgUZKqDci7GReXfueU7CisLUv8eDJASBfpCcFhm3EY2lwLe2hunvabgBLVBoMPjoubj I0BFhim_hLZNiaOF8UHtMlpDkf6pwCTkYMKfecGEGnIUMC0vOZOzvGyUc1GBhkHjbT7ALBHS058A gfH_I643s8fjHBq0V2RSiTajKJzgYjK3Ws2Q3jyseHqByt8IVNNrUz0c7sp9aPUdKnggLDERsrJx BN_TTpvlKqfBVbQ7Fs2OiUa7Qi0dbwxjXCdzqKz0TfMn7bB.krI4av26UpVF5zBEAJ8iuOOJNTqa I5EQR7V2ctiun1yjNV4NX4ISBarnn4qgXkynMgqensmIU1N78Uzuj0UPeBcsHvKaUiaQ53Ee4UEd xhcWhUy1mKPlfLA-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 29 Apr 2022 03:39:56 +0000 Received: by hermes--canary-production-gq1-647b99747d-7f5lh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 10e379f45a115d8f19a095f4bc212960; Fri, 29 Apr 2022 03:39:55 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: sys/arm/broadcom/bcm2835/bcm2838_xhci.c:184:21: error: variable 'sc' set but not used [-Werror,-Wunused-but-set-variable] Date: Thu, 28 Apr 2022 20:39:55 -0700 In-Reply-To: Cc: freebsd-current , "freebsd-arm@freebsd.org" References: Message-Id: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4KqJCR1l5Gz3QKm X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=IAk3zpTq; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.46 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MISSING_TO(2.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.968]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.148:from]; MLMMJ_DEST(0.00)[arm]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N IGNORE. On 2022-Apr-28, at 20:33, Mark Millard wrote: > In attempting to update from main-n253904-4d1ba6febfa7 based to > main-n255108-9fb40baf6043 based, targeting aarch64, the following > code from sys/arm/broadcom/bcm2835/bcm2838_xhci.c was rejected: >=20 > static int > bcm_xhci_attach(device_t dev) > { > struct xhci_softc *sc; > int error; >=20 > sc =3D device_get_softc(dev); >=20 > bcm_xhci_install_xhci_firmware(dev); >=20 > error =3D xhci_pci_attach(dev); > return (error); > } >=20 > as follows: >=20 > --- bcm2838_xhci.o --- > /usr/main-src/sys/arm/broadcom/bcm2835/bcm2838_xhci.c:184:21: error: = variable 'sc' set but not used [-Werror,-Wunused-but-set-variable] > struct xhci_softc *sc; > ^ > Building = /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENER= IC-NODBG-CA72/imx_i2c.o > 1 error generated. > *** [bcm2838_xhci.o] Error code 1 >=20 > make[2]: stopped in = /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENER= IC-NODBG-CA72 > .ERROR_TARGET=3D'bcm2838_xhci.o' > = .ERROR_META_FILE=3D'/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm= 64.aarch64/sys/GENERIC-NODBG-CA72/bcm2838_xhci.o.meta' > .MAKE.LEVEL=3D'2' > MAKEFILE=3D'' > .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes= verbose curdirOk=3Dyes' > _ERROR_CMD=3D'cc -target aarch64-unknown-freebsd14.0 = --sysroot=3D/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch= 64/tmp = -B/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/tmp/usr= /bin -c -O2 -pipe -fno-strict-aliasing -g -nostdinc -I. = -I/usr/main-src/sys -I/usr/main-src/sys/contrib/ck/include = -I/usr/main-src/sys/contrib/libfdt = -I/usr/main-src/sys/contrib/device-tree/include -D_KERNEL = -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common = -mcpu=3Dcortex-a72 -DLINUX_DTS_VERSION=3D\""5.13"\" = -mstack-protector-guard=3Dsysreg -mstack-protector-guard-reg=3Dsp_el0 = -mstack-protector-guard-offset=3D0 -fno-omit-frame-pointer = -mno-omit-leaf-frame-pointer = -fdebug-prefix-map=3D./machine=3D/usr/main-src/sys/arm64/include = -mgeneral-regs-only -ffixed-x18 -ffreestanding -fwrapv -fstack-protector = -Wall -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=3Dtautological-compare -Wno-error=3Dempty-body = -Wno-error=3Dparentheses-equality -Wno-error=3Dunused-function = -Wno-error=3Dpointer-sign -Wno-error=3Dshift-negative-value = -Wno-address-of-packed-member -Wno-format-zero-length -mcpu=3Dcortex-a72= -std=3Diso9899:1999 -Werror = /usr/main-src/sys/arm/broadcom/bcm2835/bcm2838_xhci.c; ctfconvert -L = VERSION -g bcm2838_xhci.o;' > = .CURDIR=3D'/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch6= 4/sys/GENERIC-NODBG-CA72' > .MAKE=3D'make' > = .OBJDIR=3D'/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch6= 4/sys/GENERIC-NODBG-CA72' > .TARGETS=3D'all' > DESTDIR=3D'' > LD_LIBRARY_PATH=3D'' > MACHINE=3D'arm64' > MACHINE_ARCH=3D'aarch64' > MAKEOBJDIRPREFIX=3D'' > MAKESYSPATH=3D'/usr/main-src/share/mk' > MAKE_VERSION=3D'20220208' > = PATH=3D'/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/t= mp/bin:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/tm= p/usr/sbin:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch6= 4/tmp/usr/bin:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aar= ch64/tmp/legacy/usr/sbin:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-sr= c/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/BUILDs/main-CA72-nodbg-clang/u= sr/main-src/arm64.aarch64/tmp/legacy/bin:/usr/obj/BUILDs/main-CA72-nodbg-c= lang/usr/main-src/arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sb= in:/usr/bin' > SRCTOP=3D'/usr/main-src' > OBJTOP=3D'/usr/main-src' > .MAKE.MAKEFILES=3D'/usr/main-src/share/mk/sys.mk = /usr/main-src/share/mk/local.sys.env.mk = /usr/main-src/share/mk/src.sys.env.mk = /usr/home/root/src.configs/src.conf.CA72-nodbg-clang.aarch64-host = /usr/main-src/share/mk/bsd.mkopt.mk = /usr/main-src/share/mk/src.sys.obj.mk /usr/main-src/share/mk/auto.obj.mk = /usr/main-src/share/mk/bsd.suffixes.mk = /usr/home/root/src.configs/make.conf /usr/main-src/share/mk/local.sys.mk = /usr/main-src/share/mk/src.sys.mk /dev/null Makefile = /usr/main-src/sys/conf/kern.pre.mk /usr/main-src/share/mk/bsd.own.mk = /usr/main-src/share/mk/bsd.opts.mk /usr/main-src/share/mk/bsd.cpu.mk = /usr/main-src/share/mk/bsd.compiler.mk = /usr/main-src/share/mk/bsd.endian.mk = /usr/main-src/share/mk/bsd.linker.mk /usr/main-src/sys/conf/kern.opts.mk = /usr/main-src/sys/conf/kern.post.mk /usr/main-src/sys/conf/kern.mk' > .PATH=3D'. = /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENER= IC-NODBG-CA72' > 1 error >=20 This is because of my experimental patches for RPi4 related issues. Sorry for the noise. =3D=3D=3D Mark Millard marklmi at yahoo.com