Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp450073pxb; Sat, 21 Aug 2021 07:22:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+6n/rnvqerEDjRo2Bb5jRo+0WkqIa85UL5AlI92uaIu9GwFKcQdcDRkzLXB5U4sRFg0zp X-Received: by 2002:a05:6402:1c94:: with SMTP id cy20mr6695546edb.179.1629555777632; Sat, 21 Aug 2021 07:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629555777; cv=none; d=google.com; s=arc-20160816; b=Oa7CSAE6sptTUOqmpmuOQupfJ5PgHX7SVQxJdaab+KTpeHDKgbpiQyB+C0IeE/M0Oq 8SEnkCFyJ5wP6CHOo+5000QOc3UKovV0s4PoRjJqcKVk8HpvtKYzlHtcOTIhmoJLieZw 3Dl2ZOANlbp1NvqDC1aSTcTMBvUqX95R5Wy087zueLakeDjVR0n6wPmqEEqSi7AFDiiC /NzWFu/x+t1Id0Oa6gRn735g93oMwG1y68RKlGyx3GAEX3y4pUu5avCT86uPMn7ZnvcF JY7DuBnZceBxasCIJkA4vyK/l02eIn2FQCPhOwAj0oSljosyzX2QJlVOskHwoL5tMXnX 1lxw== 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=9Vyw9fxWTiOhTDxiqjbBhpUmVvKmdQD+9QSsMdHpwzQ=; b=h/1/BDa0WwSrm5DNrT7iInTQf9YusbTAnVmEhd0IN7291PV+NMfc0YhNL+JnXrTgbR PU11J0XAltUR84QJ57outOd/iHZWHk8bHGHt7Sz2evLLkg4Z9zlGSPLVo+eFnZHm2YJU n5eWNcJ3yTzLl8hJGA25CHHCV9FU84/DBJBZ3yHWNPXxYFUrDrcGp2X5FRHiHqIj4/kc i4wtn/cI6gxluyvZ06k23WMF0gzx8IYhrXaY7Fj9LakutGGhc65hHBkzlt/BECrYPZNy XpAgUUY3Se3+jrMGUZp4jV4YwtNYXK+YZVlXMGr5hLTXZ4b7c+MQ8BJcMw8YbQj7a79W 2vew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pDPb/x/7"; 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 gb8si2497131ejc.36.2021.08.21.07.22.33; Sat, 21 Aug 2021 07:22:57 -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="pDPb/x/7"; 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 S231768AbhHUOV6 (ORCPT + 99 others); Sat, 21 Aug 2021 10:21:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231566AbhHUOV6 (ORCPT ); Sat, 21 Aug 2021 10:21:58 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDB5FC061575 for ; Sat, 21 Aug 2021 07:21:18 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id j1so9133351pjv.3 for ; Sat, 21 Aug 2021 07:21:18 -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=9Vyw9fxWTiOhTDxiqjbBhpUmVvKmdQD+9QSsMdHpwzQ=; b=pDPb/x/7SdEBSQQKtRXScgHNOnUCFON7ozJGBQCEcUMmHNf6LB5zV2FofBIie25kZx mMBYkBrEGEBaS/qyryNIFOWkyxQZRTVPA1jlkKNT1FlkKkCBpXAYM6+XCraLW3VSO2Bl 7v7YIXYSARnHjmKN1YyOQfAhY+I1LYagAnWRQgX9C75q6xsEBfB3F+BsFjH1K4WMOFdl y3gnxvKsSOy5dcsPg2BPQpQxemNjARQgAH+HsovBmtIGb3MHeB/g/GkJKGFPgH35kwnz sE7je0je6ZzS4ThdI+Zurn+Je53Tba3ndqCpFxUoDc5kwvlhxSDSA1T8I4z8Ba5sUGsg iCZw== 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=9Vyw9fxWTiOhTDxiqjbBhpUmVvKmdQD+9QSsMdHpwzQ=; b=gzCNNkMaUtNGsE+fAMniq7GdHcWz/jgp75HPJf/6KVxMEaITSdHfbY0VxDQsxXF6Cx NCZ3inafUYpEfuN4IeFV2qD9uKZgTDtLwySe8ZincMBHUedH1p4M5d96YL/iSh9g0HGH ueEJ2wEjLhkQWv4RIe1oalht3iEZZDQkhi4mTjM+PUzA39GykYRpHqxC2BJkj0B+ZSIm u6SlP2QP2RMZFwmG00v2LlF3TJBDsCYLJ4T1aiVTJKkycyxwotgIZqBmbpXVT0s1kBFy PCrum5AWn8UZ7c/Ks8RCL5oWh/adLqcNYHuLONZEUlMGC3lXm3SCAY3pQMI/8A7H8RZk 3Sdg== X-Gm-Message-State: AOAM531EgJSE9sYlOssjUfrlzMQ2s/bQekOCI8vJC5U8V3uH2UBTcj9v 3CVC5eDtriZYCOj6ecM3qEE= X-Received: by 2002:a17:90a:4549:: with SMTP id r9mr10229611pjm.147.1629555678527; Sat, 21 Aug 2021 07:21:18 -0700 (PDT) Received: from localhost ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id d13sm10314666pfn.136.2021.08.21.07.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Aug 2021 07:21:18 -0700 (PDT) Date: Sat, 21 Aug 2021 19:51:16 +0530 From: Aakash Hemadri To: Larry Finger Cc: Greg Kroah-Hartman , Phillip Potter , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/5] staging: r8188eu: cast to restricted __be32 Message-ID: <20210821142116.4febwhcnx4wjyprw@xps.yggdrasil> References: <602aefc30b0d979dc6e402d52da2f096ea5c67cf.1629360917.git.aakashhemadri123@gmail.com> <4be5c5fa-c3fd-8c86-e904-8e2e60173380@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4be5c5fa-c3fd-8c86-e904-8e2e60173380@lwfinger.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/08/20 04:44PM, Larry Finger wrote: > This patch is wrong. All the documentation I could find tells me that the > multi-byte entries in dhcph are big-endian, thus the new line should read: > > u32 cookie = be32_to_cpu(dhcph->cookie); > combined with: > > @@ -649,7 +650,7 @@ struct dhcpMessage { > u_int8_t chaddr[16]; > u_int8_t sname[64]; > u_int8_t file[128]; > - u_int32_t cookie; > + __be32 cookie; > u_int8_t options[308]; /* 312 - cookie */ > }; > > The old code was, in fact, correct, but not in a way that satisfied Sparse. > > Larry Thanks for the review Larry. I understand now, will rework and send it through Thanks, Aakash Hemadri