From nobody Mon Jun 26 12:08:41 2023 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 4QqRT53JSNz4k6hM; Mon, 26 Jun 2023 12:08:41 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QqRT51dC1z3j55; Mon, 26 Jun 2023 12:08:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781321; 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=eY/YGXoMGYze0eZQW7JxR2VP9XBtLoiW+1Xz9972GSE=; b=AhTQ98WeiJvv2lCq1FSIobRufB/v7JL5/eZG/eJOBAnNxDdFs9hwKlFlmH964oXldYX4sI 7aJU1EBcjKoqOBumYlUZkq84GsDAdAinqi2wejvkLgLDav/rUswSiffTlakqn50X/4kdfl FJ0l/IufDuwCHNS+oMZ/mowgRnmocRqwDpUEy5mfrxrP8VCn4RBLVeM647AVcoXcmlrJxT ppdW4Cl7zXvC8ABXe0VjGI0eWXeVQfPeW6CFZNpwsC9aLIQSrMGzNrQsUcbPc/1sxhNjld LcofwvE1rj4Na5Yr1dlFr/jVbM1hClIQP+hHlttX4yTjnyvt12hySVg6hvMMXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781321; 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=eY/YGXoMGYze0eZQW7JxR2VP9XBtLoiW+1Xz9972GSE=; b=DNwXaHKI1yTFf4Nxo91Qa6vjBbH7RmVzqoGymjKVGUxpTcUF4JI0cvZ3eqydNBx3BtiC7Q 88D8Lgm3M/yGDX2H7vycvcSewGHoQjS96pb0GX49BzCK/ONlqU9CFsVEu3Mqxe/f2NS8xz nOtgsbtLu11qnLnkcAxMrJjOcGtHloHgVJnJWheCqq+SAyVJb5V4MftzEF3OcmYI5shboB ofbmKsJ7fkQUxxmNg4WpJ8wzWEQl8ZnwOZx9KQmirhmA3sJxDYZwitbXq5O2pzfmSz2ue2 QHYKs4vnEpnlyYA/cHb42ONY3AQHre8gDWtD0EAGKyx9LSPoTFr+lxcl4V69VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781321; a=rsa-sha256; cv=none; b=dhRJXfiRMq0T+xz0TySvPo9LGkCyC5IEC0swcxf6icYVUAdB5r7cb4ilXunrhzlafuX1Z1 eXomgrd84fA2SS8Xr9NxfhQWuvIGcllC3C1R8xKRm9a0U6ZV97fl6NUR01GwbAf/eSH/SP 0AXTmwjVYiGGs3dTBtxOnnWx4P9pbq/cRwlbkysYSR0kzD7eFkAti1qN1o0LtPUUp9NMcT CQoqQakerdM2K27omy4vSMrdAsf8qOnYzipjGEvfYBtjiISEq4VPYtnXFbFCxNdMb4G3Zb LYUBpn/brHMfdZ1J59tWVN+YHsove9i7N94dPwSE/Nt+ccdZiAZde3ELEfFihg== 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 4QqRT50kRkz18Cj; Mon, 26 Jun 2023 12:08:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35QC8f0W083169; Mon, 26 Jun 2023 12:08:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC8fYP083168; Mon, 26 Jun 2023 12:08:41 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:08:41 GMT Message-Id: <202306261208.35QC8fYP083168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 6503ae09604f - stable/13 - LinuxKPI: pci.h: always initialize return value 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6503ae09604f362e1446583bed30c69a6716b0e6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6503ae09604f362e1446583bed30c69a6716b0e6 commit 6503ae09604f362e1446583bed30c69a6716b0e6 Author: Bjoern A. Zeeb AuthorDate: 2023-04-20 15:59:33 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 09:14:11 +0000 LinuxKPI: pci.h: always initialize return value In pcie_capability_read_*() always initialize the return value to avoid warnings of uninitialized values in callers. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39721 (cherry picked from commit 0e8953b94b7481a53945cbd1e16517773996e16e) --- sys/compat/linuxkpi/common/include/linux/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index f8071524c9e0..55435f6b72bc 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -1198,6 +1198,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos) static inline int pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *dst) { + *dst = 0; if (pos & 3) return -EINVAL; @@ -1210,6 +1211,7 @@ pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *dst) static inline int pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *dst) { + *dst = 0; if (pos & 3) return -EINVAL;