Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1331015pxb; Sun, 22 Aug 2021 13:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVyvVvvRzPIQyr0p+jjgKpmjeO3puwL0WLrDWLNb1YdjF7AHGzDkIL3EKAXWqhn8REKJPD X-Received: by 2002:a02:7f48:: with SMTP id r69mr26550740jac.17.1629663958856; Sun, 22 Aug 2021 13:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629663958; cv=none; d=google.com; s=arc-20160816; b=PqcYsaARboGdV0J+UYjKsa5YVDIVmBbi9b2Wqtyfof8pW4zt31im5kw7yEiruN239r K+FWcoCu12nRiBfRV1nSSgALfYGsnJmsSO3JHHspxIb3BUnXndbo9sPHLDF61DjgavIn pIJThNActuNurLZufLgS4ygZhcKfovvTFmbPFuRFw8/eMJvohEWhP3p3QRoEr4+w2nXa GFOmMWBhV3X9WYmYM1fBZMzDeOkpdUENVO3pXFVZgkasHMy8vywDR1KOw3jUcxu89Y6V qse8rT8UdQo1swiRGQLHOMmHHqKIdtijJH5dG3L3OldZE/kmgF4LNPgcgk0LWOBVYL4a ZUvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:sender:dkim-signature; bh=bmqpliNkb/094MxV6QHJZFPABtXQSbh+VW+dL1e7K80=; b=0XIIq9YQvCDV/Bbvs1jJeRuySpenuKVtKc6bT2KX8K30q5/H40VBEIqkFV+lA9iox9 IlyEgBdT7Fm8//JoJIS2/nMnLG1+OQrqZQ1KFcXRI2oJj11pslAX6X7TIC8aV/ErsYOa AI8WgTsBljJopmursPODm5GiD3e6qAtNv2Lwj9MI01HMldqPmc8oFJMjh8TSDjSXl3gQ KW3zwjGYqtQkP5QQYFNyj/ow7T4yjVmhR19pJW9NkbVgB0UhAnxFNVqJfOU9ITwpiPj6 DSN4ffRspxF8as/U4cbAtscHKSP55gXBJzYE5FiHy8ZFZePQezdi7Hvv4DIsZUpf9eKh bH1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iEXXicu0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si8484137jam.40.2021.08.22.13.25.47; Sun, 22 Aug 2021 13:25:58 -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=iEXXicu0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232799AbhHVUZu (ORCPT + 99 others); Sun, 22 Aug 2021 16:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbhHVUZt (ORCPT ); Sun, 22 Aug 2021 16:25:49 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16FEBC061575 for ; Sun, 22 Aug 2021 13:25:08 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id h7-20020a4ab4470000b0290263c143bcb2so4778395ooo.7 for ; Sun, 22 Aug 2021 13:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bmqpliNkb/094MxV6QHJZFPABtXQSbh+VW+dL1e7K80=; b=iEXXicu0IkA+WDA8cnmhaZ/9F4aueoVx4xzKHAUvUsEqe+V5Q6TO0S+zqkO+Vu1RIW WZUvT4Ufh3nvOM/QRrB/hDzDTOVI794tsO/VOLjxxp+QFTpNc1rq00koFhXzXXNJ/L5c 4pxhr7y4sJDkZ40JgZMyt2Fqk1uooFx8izkEWA1dzHkGa9naeH8jT0MTLPCZ30jIoKap IEBJCQwWZBO9nt17zJP20MZ1PsCi4aUt9KXPBnVbXnjrjWr1yEcCYVjn3YRiJhiTQOpo elnb8OQP4xl8JcBFIU7YNMEYfYuLeKZ0u/UF4KffYu5qImwloUO69BY+cLHYIR514dHT V4Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bmqpliNkb/094MxV6QHJZFPABtXQSbh+VW+dL1e7K80=; b=HqdB6e8FQhS2CHPXoO0xNwHlJEm305uxZkkuClcdi8T92zs8J3YIyazS4dCkKK3hrn tdy1mqWwVHEs8soBwGNtYlKnJxdc2dt+h3lo6BdkrPMrffv2zjNxY3A8xxgP8g9KXKrn R4nI26mvfsjI95zRzIEWKkivZmfx8xf7KuxOEwpxFfGVjZmduqn0B7ZhcmUDMAH76fpF fdU//0CJWoXVLDSFi7+xb2AgARw0uq1qW5DEmu1mwHf1A3akE8Tg1mFyM5G6OU3mDZBX rGI/nzr/x2sHoYwyZc1pU5YHanmGd71s83ZKnm+8te9iD4PETEEj96l5IGdfRtrD7891 gf3w== X-Gm-Message-State: AOAM5330ir24ztM0NcpUtboRMQWtvboqYswSKYtN8F/I16i3/ATlON0t AeL9V6x2DyqDrNHX9j2l1AYhU1gFpOg= X-Received: by 2002:a4a:9f53:: with SMTP id d19mr9480242ool.8.1629663907073; Sun, 22 Aug 2021 13:25:07 -0700 (PDT) Received: from 2603-8090-2005-39b3-0000-0000-0000-1023.res6.spectrum.com (2603-8090-2005-39b3-0000-0000-0000-1023.res6.spectrum.com. [2603:8090:2005:39b3::1023]) by smtp.gmail.com with ESMTPSA id a6sm3235834oto.36.2021.08.22.13.25.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Aug 2021 13:25:06 -0700 (PDT) Sender: Larry Finger Subject: Re: [PATCH v3 5/5] staging: r8188eu: incorrect type in assignment To: Aakash Hemadri , Greg Kroah-Hartman , Phillip Potter Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <876b83dad76a6f561879da0db1fbb25b251374d4.1629562355.git.aakashhemadri123@gmail.com> From: Larry Finger Message-ID: <2188755e-33b1-bbe9-6f9b-e184830612ba@lwfinger.net> Date: Sun, 22 Aug 2021 15:25:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <876b83dad76a6f561879da0db1fbb25b251374d4.1629562355.git.aakashhemadri123@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/21 11:18 AM, Aakash Hemadri wrote: > Fix sparse warning: >> rtw_br_ext.c:516:57: warning: incorrect type in assignment > (different base types) >> rtw_br_ext.c:516:57: expected unsigned short >> rtw_br_ext.c:516:57: got restricted __be16 [usertype] > > *pMagic holds __be16 change it's type to __be16 > > Signed-off-by: Aakash Hemadri > --- > drivers/staging/r8188eu/core/rtw_br_ext.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c > index 83a4594a4214..14cf13516d34 100644 > --- a/drivers/staging/r8188eu/core/rtw_br_ext.c > +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c > @@ -474,7 +474,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method) > /* Handle PPPoE frame */ > /*---------------------------------------------------*/ > struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); > - unsigned short *pMagic; > + __be16 *pMagic; > > switch (method) { > case NAT25_CHECK: > @@ -512,7 +512,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method) > tag->tag_len = htons(MAGIC_CODE_LEN+RTL_RELAY_TAG_LEN+old_tag_len); > > /* insert the magic_code+client mac in relay tag */ > - pMagic = (unsigned short *)tag->tag_data; > + pMagic = (__be16 *)tag->tag_data; > *pMagic = htons(MAGIC_CODE); > memcpy(tag->tag_data+MAGIC_CODE_LEN, skb->data+ETH_ALEN, ETH_ALEN); > > For all 5 patches, Ack by Larry Finger Thanks, Larry