Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3591227imm; Mon, 2 Jul 2018 01:46:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBQ60eAGQ4kKFF1YZax7a+18e6Gpuuq1U/70dqoqKK6TIWcY3VvLvI/7GXV/q2BlrDNhe/ X-Received: by 2002:a63:6642:: with SMTP id a63-v6mr20592891pgc.408.1530521211201; Mon, 02 Jul 2018 01:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530521211; cv=none; d=google.com; s=arc-20160816; b=wvkjFwXYVjOXGeOvR4SRP/umLk4RE6uWmD6rcLgyAFKhzHJ9Rm2XyMuz1q98eRVMDM cGSqhBv7VjOEur8TVxE9+EqL+j6x05KCPNaj8JyQwPqdm6QYbvS9HO/58w4Pfw9HZjJ5 I2pZV/CVQIPPKhv+1fsaul4eegAwD5AkvayARJnYzlA9gWxsqVYlXUcno7e4b77M6vpj FGiOeqLp/jfH8j/cE9rJojeuz8lBKkYa5PtoC1ibEITlzOiOuMbHavc8AFJewGTBxCsi JDjd2h3MJOgAlhTRKMp5NFbz7bYsDS+v7CHZLpLhRWK+rT5gGlhWvIf0AwvyFbWh9q2I awOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=QBwEQ/vk6pDT/mgdO2R2kpF8WMEhQ1mP/0x0mFELdek=; b=Qsq6o/uRhDQBBAnNJqQQ4/UC1WOHd6113FPGgpt08O+VLim2Lli9056gXFNi3Uj9Tn Ekfg+ctiOxXgj8O4CrLxmZCPxkoD5J+D6U1E7gj7gQUr6ZNaydVc/71CmkJPWyLry3Ob 0Yx/V9kQJYStQ95a8QYa7tKNtqXgXEjDZAU3zcNmd7J6MMnnLkY8YUfDaCxlr7UHsyW1 074A62rdN3rUzmP9B0zFyittf6K/8qfvTEyZUL2gawb1XE4RaKYOvw5nitZT+okJXeTV KaQ0euwHWy7dD+SUWwqA6cAc0Y5CakYUUW7ubfMVxL9NHwxYqQlnfVjP/y1pxyXTuBgi iHag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23-v6si9690pgl.373.2018.07.02.01.46.37; Mon, 02 Jul 2018 01:46:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753489AbeGBGrA (ORCPT + 99 others); Mon, 2 Jul 2018 02:47:00 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46172 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbeGBGq5 (ORCPT ); Mon, 2 Jul 2018 02:46:57 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 16ED8207BE; Mon, 2 Jul 2018 08:46:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id C4884203B4; Mon, 2 Jul 2018 08:46:54 +0200 (CEST) Date: Mon, 2 Jul 2018 08:46:53 +0200 From: Boris Brezillon To: Joe Perches Cc: Richard Weinberger , Quentin Schulz , dedekind1@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [PATCH v3 2/2] ubi: expose the volume CRC check skip flag Message-ID: <20180702084653.566d54bb@bbrezillon> In-Reply-To: References: <0ace6202bddb495ae0e632ae2fd0346f99fcdab4.1530169759.git-series.quentin.schulz@bootlin.com> <382648641.QZzOm4Mo72@blindfold> <20180701223347.2cef133b@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 01 Jul 2018 13:54:32 -0700 Joe Perches wrote: > On Sun, 2018-07-01 at 22:33 +0200, Boris Brezillon wrote: > > On Sun, 01 Jul 2018 21:35:57 +0200 Richard Weinberger wrote: > > > Am Donnerstag, 28. Juni 2018, 09:40:53 CEST schrieb Quentin Schulz: > > > > Now that we have the logic for skipping CRC check for static UBI volumes > > > > in the core, let's expose it to users. > [] > > > > diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c > [] > > > > @@ -622,6 +622,10 @@ static int verify_mkvol_req(const struct ubi_device *ubi, > > > > req->vol_type != UBI_STATIC_VOLUME) > > > > goto bad; > > > > > > > > + if (req->flags & UBI_VOL_SKIP_CRC_CHECK_FLG && > > > > Oops, missed that req->flags & UBI_VOL_SKIP_CRC_CHECK_FLG check was > > missing parens (checkpatch --strict should complain about that). > > Why should checkpatch complain? > & has higher precedence than &&. > Yes, I know, but I remember checkpatch complaining about that in one of my patch (maybe it was a slightly different case though). Anyway, I double checked and, as you report, checkpatch does not complain, so please ignore this comment (sorry for the noise).