Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp372953pxb; Thu, 19 Aug 2021 01:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVOdO05QkgMZbhuNAj+wQWrTGV6/0sf7eaUSGZBWq0bI6l/J1iz4B9Gzo9DCjN0Z4JB/Nv X-Received: by 2002:a92:bf02:: with SMTP id z2mr9342706ilh.213.1629361176421; Thu, 19 Aug 2021 01:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629361176; cv=none; d=google.com; s=arc-20160816; b=GmnCsthp3qg4p8JVvR0dFm2k2RcS/95J7Y2ymD6OXRVdeGEq/1JDDLydGMveL2Qolm aoXGQdRiRs7ieStQSAkxEtHuHjaofL71uKCWEjo0/GXx08QQZR4cCu6fS6z5pLKKCovo Wv1eK8yu7HOn3TEnVxkrbgkwYIFvQEIyRy0td05qb0Xfn39kt1CrlEE/uaf8A9Cj4mat 4ijNSC494FiS6M1BLsoZAdNXxZuuP9Q+xFSznTVbJ/I37k+Xl76p0FvIucVZ+l56jD5Y 45GD+xhhA01r1HQn7gHst3l7hVkjqnUW5Mlp60DTf74QYI2bkrdH0RNvJb9JoJFTaXjL XcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BmsxjSFu3i7r3eCLeFpeZGvQeDgyZ9p5i9AV6MQK988=; b=GdswKIjcZ3h5Kayx87ZWRVTZskJxUyEVzsp5YFpKBppx3gyTd4uFOkFR6sj9ddvme2 gYvcgw7N+YgHsQI+wU6kGs3f6RiZktJ6qow4QxaRUvkkdosuFg+ideK6LJ9cjL4P/2Qt 2exms0K+PXPnBCkcGOfNdzeGrlHp/gb5VwEFDpRCw5rxYMp1qWxeQS6DMQhOpMj7GDWn NJARmeGS62K09cuLUb1nkE8on8opK+stHbF++jLTq4O83QBwiNLGnVDyNky6PT1OrJFZ mSyRu3+6C65TJTAVsjumM+CTjCk7oUqne9Wl7U2kpJqhDhuprfjGk0DsPU3rwOija8xp GQsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="U0/vKB6Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m2si2954751ili.39.2021.08.19.01.19.03; Thu, 19 Aug 2021 01:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="U0/vKB6Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237081AbhHSISr (ORCPT + 99 others); Thu, 19 Aug 2021 04:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237049AbhHSISp (ORCPT ); Thu, 19 Aug 2021 04:18:45 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36ACC061575 for ; Thu, 19 Aug 2021 01:18:09 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id k19so4793174pfc.11 for ; Thu, 19 Aug 2021 01:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BmsxjSFu3i7r3eCLeFpeZGvQeDgyZ9p5i9AV6MQK988=; b=U0/vKB6ZkgtnKF2B3r1+lPQsKooRBRF/AcWh77jbjPkKOZOG7UOWfYDADGNFemAAp7 ksttYG+CBgLD4eYOotkoOf/y+GLSWubAv7HW8bw+hEXizE/nIaCTS/rQ2l0Cz7kYu9oe ow5SNoXX6my/4hrTQiZbzQiHKB/u/SUOKKy7FZLt71vCmg3kzDl4zbAeBg6ivNYHh3/E N0QEYSVUVWvtbkxBFcS/elhbzj9JoBTrAG6yZrGNpAB1fthHNRXdsGvGutm6n59P/LWh jxl1r5IZzr6QWXENgLaKJisy9tvb4n4GCqkhBAdDWcoZplLKdME1kEq7MLA0kHM5dmh8 wRqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BmsxjSFu3i7r3eCLeFpeZGvQeDgyZ9p5i9AV6MQK988=; b=JnDM6VQ5FGRtfJQbFwnAAd2/P5yTWftpMNlDsR8onurgQXapEP6MIu/44pdCVeTLBq U/JNapC4d6d7oMjwD2l56ddIkXIH1cGa2NhRTBaatz0XL6/J99vPpRvcfkYBszR2zARw Ka+u+8MSr3wwf7xxTH4J+jWxipG2n4ph+IyKZ0yvK9LOlGB9FlSz0xw5bATL+2VA9U+M QzZ4+9BBNTO1+GwpYoUpJ6wtav5hAs7bl70ThqbtX6ZwWTNT1MyX31njJ2lepAaAwoNj +d5kHOev+OIffoZiQW5MtVA0xqpD1Zw2napBvFNo5t2/s7JcDcSVo0JTV1fTlguD1FgU ZhZw== X-Gm-Message-State: AOAM5310wGnKvKb3dYZXrCY5oaClEdwR2BrApfzNk/9uAejBit1cC5Vn pk1ko616pFCdvEGDQs+CN01LyQMxo9rgKg== X-Received: by 2002:a05:6a00:1808:b0:3e1:f8c5:3436 with SMTP id y8-20020a056a00180800b003e1f8c53436mr13525967pfa.3.1629361089488; Thu, 19 Aug 2021 01:18:09 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id gb17sm1531129pjb.26.2021.08.19.01.18.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 01:18:09 -0700 (PDT) From: Aakash Hemadri To: Greg Kroah-Hartman , Larry Finger , Phillip Potter Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] staging: r8188eu: restricted __be16 degrades to int Date: Thu, 19 Aug 2021 13:47:53 +0530 Message-Id: <031b477891e5981897fba5c96ae2da922cac55ec.1629360917.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: > rtw_br_ext.c:73:23: warning: restricted __be16 degrades to integer Here tag->tag_len is be16, use ntohs() Signed-off-by: Aakash Hemadri --- drivers/staging/r8188eu/core/rtw_br_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c index ee52f28a1e56..404fa8904e47 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -70,7 +70,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag) struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); int data_len; - data_len = tag->tag_len + TAG_HDR_LEN; + data_len = ntohs(tag->tag_len) + TAG_HDR_LEN; if (skb_tailroom(skb) < data_len) { _DEBUG_ERR("skb_tailroom() failed in add SID tag!\n"); return -1; -- 2.32.0