Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2014273pxb; Sat, 28 Aug 2021 01:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4asTPNFp2dgOkx7fX8FE8OzGxJKlzepV8NgW+cPfDoTM6xNceDY5F8/oApHuH/17pFahP X-Received: by 2002:a5d:9b8b:: with SMTP id r11mr10750643iom.26.1630140387546; Sat, 28 Aug 2021 01:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630140387; cv=none; d=google.com; s=arc-20160816; b=ZIpDj6cxOBULW+73Dvkf2s6NqbnD79EqZe8b4hCWSC+UzSg3aSL6RcsHxEduCWUloE +wLs84QNbopUPXoR58jhmHqDU/RrKp2baaPoZWD8jCewPVkjTWhdetZ8/BaljlwTDeph o6EiItL6P9ySLV6NkCIPUEMTF+TCwpZKm673clFrZUDqt7e9ymmp2gHx5O3LQJdL1dtL EenLhnbi2LBXgh05notQ3Goq9AUfcdF1HMOSgcb2w5Tr2Iuu0oUHBsSB3//JmGn1BFHm 3EfJSvaQfoWRfOXpfBbhI1bQx+ayQrgx6ZtKTewW3kfxL/SfPjiYmmR/uHwFIue8ohgJ Z88Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mj2fJEfaUbBANZczs67LmtlLb+z0I2pfGwPFTif1uss=; b=xKOWTpYtMFYmGYqO87Z7pS2Qy9dUBBB6FluvT59ojPZUeLGEbKpbUFMNlUX975eFjq KOnBXTqSz7PgbdHkxZhwbzpKOpP6Bir6ArsY4CJrqpWEFrlzuq+xscNpBuUq2Q+je46R TJKuwiryqFJuIKgF3LRt6EvT5HirKZTPUjvWSxdfoo1SxDxJ7fvKt9D6RmBc/tVJu90a I6x1D3N/WEeeNvyGPjOLSQihBWbdBQYrRFgInskbp1LONbjqs3zIAhBY1xadGPPvYP7U FR22Iyf9d2mDXyxN+RSJIUscSkZy9BanW2SKeQnoFxqx9ZhG7O7GMi7gSxFhXczg5TgQ jO7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a5U8orWs; 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 t71si3258575jaa.64.2021.08.28.01.46.15; Sat, 28 Aug 2021 01:46:27 -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=a5U8orWs; 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 S233516AbhH1IqX (ORCPT + 99 others); Sat, 28 Aug 2021 04:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233424AbhH1IqV (ORCPT ); Sat, 28 Aug 2021 04:46:21 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76005C061756 for ; Sat, 28 Aug 2021 01:45:31 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id c4so5596345plh.7 for ; Sat, 28 Aug 2021 01:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mj2fJEfaUbBANZczs67LmtlLb+z0I2pfGwPFTif1uss=; b=a5U8orWsTW9nmja3DLUQLHRrt6u268wBDqykSLZLkcWxzmf0S2objaM9mRyzqL/+XL OpQPm6anCzlcOsxblKlapb2pmWERlwqiM/S42+2thugh77Go5FjGj1UlLsTht6o1vXYI enAD4Jou6qZN7IWDWSrhxIUziJujyN2FbY6mPMi0RX6BrZ8iMl3bFgDiosPzmGcgJfmS 711fQo5SiQcDSdZdYfJLMM3ZW9sVqp0KBrhj/EQr425C5v1x9wPLMHOSmbtDcjv9uTny 45EdZvoCJ4xZX6LesPrksUzYuC7MueSvjlSNTm07e6raNNpOGRNLe/J6uh9M1JGo+m6a pAWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mj2fJEfaUbBANZczs67LmtlLb+z0I2pfGwPFTif1uss=; b=NIgSSTfnefHJ9JV/claf5ZREnvuIix0Ukt+Xwp8LjLFlQM9Cx5KmOhPiM74NG/gdBa rxsxuYITq1/93o1/7B9vNTXLAKeuc+xQMdRiHrKeXT/6UgdWhymBXj6j+eW72gaTZy8B ZkOAnEP54L9VMJW9JPjaoFhLLs+ZlYx1txHyXeZMu3Gh3D0pY7CPz1eUp7q0HS/H8esA y1dOo7m5pSIu1qthPBrtpi+P3ugmUql2lf6jWf8Tdpb+hdnu9Dxg3KJgXjMMVHiAipYX L67CQJfbb6LozqpiGVzUKfe4SmhSNJshTTXsZYnkLLf5BE3JtVrGGICyt0CQwtX2Yaj4 o0cQ== X-Gm-Message-State: AOAM533AiKRvlfpSC/RKEnQxlilb5gBFF0kWCgkaSuYSSD5tyb0FUKjN nNOuB8vZ43gEZ05GgorkQlU= X-Received: by 2002:a17:90a:1957:: with SMTP id 23mr14936632pjh.141.1630140330967; Sat, 28 Aug 2021 01:45:30 -0700 (PDT) Received: from localhost ([49.206.124.188]) by smtp.gmail.com with ESMTPSA id r3sm8280120pff.119.2021.08.28.01.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 01:45:30 -0700 (PDT) Date: Sat, 28 Aug 2021 14:15:28 +0530 From: Aakash Hemadri To: David Laight Cc: Greg Kroah-Hartman , Larry Finger , Phillip Potter , "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 3/5] staging: r8188eu: incorrect type in csum_ipv6_magic Message-ID: <20210828084528.gbkqcgqaaf3adyb7@xps.yggdrasil> References: <392082864befe91bb03d16ff7ca5e57ba2a8e549.1629563318.git.aakashhemadri123@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/08/25 09:23AM, David Laight wrote: > From: Aakash Hemadri > > Sent: 23 August 2021 18:00 > > > > Fix sparse warning: > > > rtw_br_ext.c:771:84: got restricted __be16 [usertype] payload_len > > > rtw_br_ext.c:773:110: warning: incorrect type in argument 2 > > (different base types) > > > rtw_br_ext.c:773:110: expected int len > > > rtw_br_ext.c:773:110: got restricted __be16 [usertype] payload_len > > > > csum_ipv6_magic and csum_partial expect int len not __be16, use > > be16_to_cpu() > > This is a behaviour change on LE systems. > Even if you are testing on BE the commit message should say > that it fixes the length passed to the checksum code and > was detected by sparse. > Thanks for the note david. -Aakash