From nobody Mon Feb 14 00:10:45 2022 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 E9A141953221; Mon, 14 Feb 2022 00:10:45 +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 4Jxl456KD3z4bqr; Mon, 14 Feb 2022 00:10:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797445; 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=RAkQPM/o7bt5HDkuV+MgASoSN4hiC/8vOp4fRhZ9gwU=; b=ntoS0yZkEQplQCGE5xi9gAI2U863eX8UCUvNx7x5fkdneMOFTlxXuPKp6u5Mm/KPuZLV8n DHe8l8pOST+kmhw2ygkGIRoF3o1HmaQOmntFfN5YkOY1sdhEtE5ZUXcoEEXo9LQx3cTrt0 IYZZd8JHDuUIzHymwai2rj1apyCqzXm7LBRlnc8x2l6iD/pCdjRARC/jAOsbEdKNK+pnuN p3oY1Bfbm8cIyPTLb/3AC1dpOJ+A8cHVBu98EBrUo6dzhpQvYz/PTuHHdyGgK3LbNUt3Lw WnCKQiXTlr2JgDX/LTGh4qLJUW9cyu8fwWe8yNbBwxtPTgCF05SzjGQ+SyuBQg== 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 B917E249D4; Mon, 14 Feb 2022 00:10:45 +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 21E0AjgI065420; Mon, 14 Feb 2022 00:10:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21E0AjIg065419; Mon, 14 Feb 2022 00:10:45 GMT (envelope-from git) Date: Mon, 14 Feb 2022 00:10:45 GMT Message-Id: <202202140010.21E0AjIg065419@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 2e818fbcfc03 - main - LinuxKPI: add get_unaligned_le16() 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 2e818fbcfc03f9416593d5fe5bc860c1829f5366 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797445; 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=RAkQPM/o7bt5HDkuV+MgASoSN4hiC/8vOp4fRhZ9gwU=; b=CEzIV3U/PBLKGHeEtmOpukYol2gQ9xY2y7nbd2pgqAuLaLit3eYL1lvvJiK3PocZjOV2S0 UF3rImQYOZo4+pju90xujWO3QSe+ODQAIh9fP1bV9xmyqrhCfcfZU0p75JSAJQhLnSmucd PNCSigaD2P1Zcfv2UAcwnjG9G5zk9KiQJKj7gFIfHvRiHorZoWsbrzEhQwZBAG8wkrjINz 4402O/YL3y88Q+xjYNoP7FPmumx8o76tzFpcPa+Bp8aAAeHGczIo85AAqPIgwueENqw93z eXN1IOMfiSVBNtphP88qIZ7A+4ILdJ44gk8z/chRd3NOlqxFkTot8HEOCYAKHQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644797445; a=rsa-sha256; cv=none; b=Y1hxKxknEg6DSqarUypDwXINo9YPj3gSbcHfoPC2eBl3C32xu/QRasL7KJzS4hvfjyRbzK ul0w2Q9kpt2FcJwZgRfXtDee9/kY4hhYeVEpUP1/2dyUPzesxX324+2D1+fQ3TplTLj6PT y7fhcDWn4PkasSemggdGDhEZhz5hojT35YNfrrbeqTuFxG4i9IX7XREgv63EDKlGKULC2X KFBWkN6BDTIB4jfAYOmOYGB1GzgnDLza0dxORmfyJGG8JW1qde5WytPDn2sM6u37Ldxzfu lrukltpTbgI8NgsQ+kv0I2BaMUEf9KKYKudYk75s4DHgIk3NAPCfzo2oxbmvAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=2e818fbcfc03f9416593d5fe5bc860c1829f5366 commit 2e818fbcfc03f9416593d5fe5bc860c1829f5366 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 11:37:37 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 00:09:57 +0000 LinuxKPI: add get_unaligned_le16() Add get_unaligned_le16() to asm/unaligned.h needed by a driver. MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34224 --- sys/compat/linuxkpi/common/include/asm/unaligned.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/unaligned.h b/sys/compat/linuxkpi/common/include/asm/unaligned.h index 9a788c965653..8a001ec38c3d 100644 --- a/sys/compat/linuxkpi/common/include/asm/unaligned.h +++ b/sys/compat/linuxkpi/common/include/asm/unaligned.h @@ -36,6 +36,13 @@ #include #include +static __inline uint16_t +get_unaligned_le16(const void *p) +{ + + return (le16_to_cpup((const __le16 *)p)); +} + static __inline uint32_t get_unaligned_le32(const void *p) {