Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp517071pxb; Sat, 21 Aug 2021 09:20:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe1ucki8HrLAsU3FaVuqRfMjB1D6aS/3CErrIeSMFI5ApXcR+iXAWjksVC91mPGRjjD/ti X-Received: by 2002:a5e:c609:: with SMTP id f9mr19741996iok.127.1629562826610; Sat, 21 Aug 2021 09:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629562826; cv=none; d=google.com; s=arc-20160816; b=0QLQCxx2rpb5fNkH0jFBFLfwqRdtSpbvun8qe6Fy1XK/fWP4DOZf3b6OHrYrTekbRr yp6D0tZmGJx/aR02FrSBOkxRjPOP+isq5SQPnNALNVrA30txZ06w56yT03pxUINXLw6F wz5GW8GmaPtnA4i1R0m8LwkO78X+A1YyrN2qr9YL9R+JREKIiw/J6PVPXlLzh1ZGJ9Ja xuKjYVmB0PWEZ1m6+WHfWCQB/wbOiizrVTYe9VGkptyexyjbZDBD6Xi3AHaC+crEpneZ WLcfL3jTSIKdYU2aCQ/vFRX1JCChfebDi6Acep6JmMJ50fTwQTOdowi1ZZh+Akltw97F PSWg== 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=QUnHtBDWwuZ6b4H5N4cag1F+1r7RGxZOLo0C7Dxdnss=; b=evvuAmKejj+KHDDbDDVqb4h/QsdJGOb496yoivN1EuQhEdEkArE/DhP1mYgXD11Dx5 k5ET63E31a88DIdWDTqJDK0Pbd0k80ruWrbaL4JmYxZrxM6MtcwIIdxuO3vcbv/FIKBK /oLHVFtkwaey4CfkTnxrEV7pLSZmbqHRRsAc0OA26fd/nfEtZm0M1R2yCJi5Tsd2twyB nQ8Heym4/GTqYpbq6mRP4j5bpkR/+oP/1j0anrY1ftMjMlyowwT0Hw38v8OJWgBIuWTc /speA2eQnQVUn+cCCYFtYuymwKymzr4/Dqp+CSs+Gm/XS9zNAGtCI0dxR+zQ+LpzW9Zi 0PoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m4hf8PxI; 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 s12si9870414iog.99.2021.08.21.09.19.59; Sat, 21 Aug 2021 09:20:26 -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=m4hf8PxI; 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 S230224AbhHUQTV (ORCPT + 99 others); Sat, 21 Aug 2021 12:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbhHUQTU (ORCPT ); Sat, 21 Aug 2021 12:19:20 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F04DC061575 for ; Sat, 21 Aug 2021 09:18:41 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id o2so12317357pgr.9 for ; Sat, 21 Aug 2021 09:18:41 -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=QUnHtBDWwuZ6b4H5N4cag1F+1r7RGxZOLo0C7Dxdnss=; b=m4hf8PxIPaYiYfwAXIfKngFRpG/ZIZgSCzh/UCqUl/tsN4kTc2xlZ7WkEhX9lWMaJY /KA1+z8H+jkebU6vccS56LE0LKn8cwBmWummFuR5TQc26G3KCFZV6h8PznlPwDyQHc55 jbuKiYQdZOCC3+EP8uxA4GdaXUH6W28KxnLX0Ocpg6w3C5ErSMPuHbzkN0cOfs3jc9Eb QVYdwlaTWlGCGnsIpfrFqh2wx6wNC2nyU9ZLuTMq4TSj8GZWTXUvz92I7suDA+slUha2 FJPy4rXSBM+zMNHS8nIqLCAXeEy7xMv3ceOK7d83co0GFs/j/UiG0dCFluErUAMGs2tI C2/w== 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=QUnHtBDWwuZ6b4H5N4cag1F+1r7RGxZOLo0C7Dxdnss=; b=MkAuFs3FrJFQa06jj87yf/H2y5ITKUWkMxFhuW1va+BlQgPjBfe8eTaJ9+SQBfVco8 Ca1AFHFBBjXErUPDjBSFt3ceH+BOZV9sM3w1l8aw4N5+dfg2hRJRc7lXxlRzjpGmviAt FU2j5cCVKq6qX0M92WjYhlAWqYHYy94P0NuiDbGTTrCwpoTWfi1kvRHuwh7ia0LZhL46 EXp0dZHKFEpTMXGW2Dmi6LnBgJugcqvfuVy4lGWgcbzI4nQ2Nz+R7YYwK2LGeabNGknw 3vXiTQjvu2vtTgR6fGUj7HcskjvjZ0WhUlg2Wg1x+FKbnDHJ7AYpYjoFG5Cp0ahQ46l+ Vm1g== X-Gm-Message-State: AOAM532oqmGQ3z5JGASLfxiBhiOf6h92+J5ZEFsV/+B5eJRAbJRzh6Pw 96kY62heJv8NU8FJR5BbQdIftCUwxRte7gIO X-Received: by 2002:a62:8491:0:b029:3dd:a29a:a1e4 with SMTP id k139-20020a6284910000b02903dda29aa1e4mr25268000pfd.13.1629562720637; Sat, 21 Aug 2021 09:18:40 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id y27sm4227011pfa.29.2021.08.21.09.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 09:18:40 -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 v3 1/5] staging: r8188eu: restricted __be16 degrades to int Date: Sat, 21 Aug 2021 21:48:28 +0530 Message-Id: <7572c80d90b499df7e9feb4781c07967fa31bf88.1629562355.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 be16_to_cpu() 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..f6d1f6029ec3 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 = be16_to_cpu(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