Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3546569imu; Mon, 7 Jan 2019 05:26:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/UGfsm6LVb1ziGrE8GZdrmEZPSSXMu9deEQ5NNYXp0qZmBVw7iN+tmMOOnnwpUZ854fy0oJ X-Received: by 2002:a62:1d8f:: with SMTP id d137mr62327217pfd.11.1546867563332; Mon, 07 Jan 2019 05:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546867563; cv=none; d=google.com; s=arc-20160816; b=NZ6BzfaVbSSb9e7n5Xui2T+4X+/HpTZ2PdYzTp90qEs1F+Q/gzredGjw1qbv+cGb4Y OBh95tqLoz3FjLmf8dY4AVx6Lb02WD3K7hSkDFFbZgyKZlj501TjyRozOYKdcV3nwNko N11dncD4fY/PjgaBuRr2O+G0/8HzlWMuqLit3DuzVlns9USq3NxH3mJ0MRog4xQqKFRR Y5NSyqiYxaxnDUQwSkGoq6ROSVUa5GOXDT+otzMj2Y4eaXfDxFYNI6My6W1iGe8O4N0f GOU+fcRGSvdFHJgz6Ctalztz0r4h3v6+rCgC5MQi7TVRpLaEjt5nowj1sfRV045CRoXl DSHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HIBinLwZ1ghjqd3NQ3ePFix2UVejfaQY7pzz6QW8sPw=; b=n8UQGaoymSoIa9uZp0mX+DM5ausY4sANODqM/uPhzabCJTr7O60N9bpO0cmy7CkAo8 yHxRg/H1MWAp9xnrgtlmU3PETa25tn/Ynz4gNHajEA+BCBpmN0fgeiIEskx87bxhaxrw o0h52OOVH2dN6q2qV4JWVq2mSJisvYhoQg9jZElRExbApImpm/0Ig9owAI3PLBLZ/q5p 1YS6cGSJTMhqOnbxqe+6VSfclg+UCVDLol+Mvr5oSwmVk3vXy5YQ9rMJNjcpl5pvoT4E nH/Q2/Pm39eXHyFobkrqMgGL617Lc2tAJEx6jJgl1Rs2PI9sncyo/WPNYnnSx172HCSE /3cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VBrQTNZD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y22si7764726pfa.6.2019.01.07.05.25.48; Mon, 07 Jan 2019 05:26:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VBrQTNZD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730548AbfAGNX3 (ORCPT + 99 others); Mon, 7 Jan 2019 08:23:29 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38590 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729846AbfAGNX1 (ORCPT ); Mon, 7 Jan 2019 08:23:27 -0500 Received: by mail-ed1-f67.google.com with SMTP id h50so856243ede.5; Mon, 07 Jan 2019 05:23:26 -0800 (PST) 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:user-agent; bh=HIBinLwZ1ghjqd3NQ3ePFix2UVejfaQY7pzz6QW8sPw=; b=VBrQTNZDSe08jcHY20uRb39HyAf++fJ5S7cnJwcg5HcZu/miN7U5lCP9SwgYUbAJ3Y zvVT9LbhADr6gabH3kLE/4/i7Qe3WlCOmGAT16hKUyyAO4zJGuNNl/0XPodFUQBP14zb +3qOLWQ1Zktuci1DeMKB4Ag3BOFZrK18Z9vFEJB+XMPWsX6CV09a5/DzZyCzTpM1U6zl 7ghPIhI87XZwU24OdLK7SWAlbKzRbvGXaK/FvNYvw6xEnB7Nj8660a8fgwsiz9ekcmqT onEQwH5kFNaxTn7dO3dshJFW6vDXgnTyZ6EjjlV6bAEJPj1LZ+v6sQMnH1ddoQyAfZoU emvA== 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:user-agent; bh=HIBinLwZ1ghjqd3NQ3ePFix2UVejfaQY7pzz6QW8sPw=; b=IkqPxGCzs+8fNpoFSu40zsS2Qv1dViahp56RxAFqr5qbHDmG3gE/FbAbTHHkm3TDSs dko5jxIsjQBBRWGhZSX9b02Fb1yEsgTCgZ9pDa1H5ZBhM115ySuZSBSzjIH0V03mZ7Dq ON4g3oRnO0nnb1pqWR7rtrww/Zq1wlZGecY4PSBaKeSsT5SfK/+QyT5MuaiYWSe4/r7C Nkp0OJod5oBsPYte65ej55ofyl9Cjcldy14hQ+3NjA2nxj7fZS0pgfrXptd68F8BEo8k 1kKh5rDSYkEmrwWWmhnK0ZXeI8IfeB+q7u5e5YzOTRtOZwYqqS13upSDMD6ktPTgpOtL mnwA== X-Gm-Message-State: AA+aEWaiFmMReomlF6vbpmWKcNi01ODhs449JoOpQkJRXunaIGQfTW5y dFkDWwyqhNXEfXG1o3+f6nY= X-Received: by 2002:a50:a55c:: with SMTP id z28mr55607764edb.124.1546867405558; Mon, 07 Jan 2019 05:23:25 -0800 (PST) Received: from ltop.local ([2a02:a03f:407b:c500:4142:d3d:8d31:6743]) by smtp.gmail.com with ESMTPSA id o37sm29790886edc.32.2019.01.07.05.23.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 05:23:24 -0800 (PST) Date: Mon, 7 Jan 2019 14:23:23 +0100 From: Luc Van Oostenryck To: Dan Carpenter Cc: =?utf-8?Q?J=C3=BAlius?= Milan , kbuild test robot , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, ajay.kathat@microchip.com, linux-wireless@vger.kernel.org, adham.abozaeid@microchip.com Subject: Re: [PATCH] staging: wilc1000: fix cast to restricted __le32 Message-ID: <20190107132322.sk3lcvafg65fdd7b@ltop.local> References: <20190105082323.GA27838@localhost.localdomain> <20190107125437.GA3200@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190107125437.GA3200@kadam> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 07, 2019 at 03:54:37PM +0300, Dan Carpenter wrote: > I'm sort of surprised that the zero day bot didn't complain about this. > It probably should. > > The endianness checking is not turned on by default in Sparse. You have > to do "make C=1 CF=-D__CHECK_ENDIAN__" to turn it on. Bitwise (and thus endian) checking is enabled by default in the kernel since 05de97003 ("linux/types.h: enable endian checks for all sparse builds") included in v4.10-rc1. Since then they make more than half of sparse warnings (in a x86-64 allyesconfig). Best regards, -- Luc