Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3162367imm; Sun, 1 Jul 2018 14:02:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIgQAvxgiM67Q22l0X9rxj6GiiWri6uGsiUIHWyUYUIySFVoP4AlE7QQ7iAdKhrgrn8wNGp X-Received: by 2002:a17:902:201:: with SMTP id 1-v6mr23676100plc.310.1530478950673; Sun, 01 Jul 2018 14:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530478950; cv=none; d=google.com; s=arc-20160816; b=qm3lTTnet/lFKcxHnEbiNjF36OcrpZ48c7Gt2F6FhSVk/H1FuQknmhnJ/mCBlrCqDH QINptx1zaNXFoGvVZSY0ThBs3tDp/aGOPdQXGqB3CwsMtIJIJjMidHMUTVHrMNgY3nmA FWjusQYwB7LBqh4uK2up8p6vgRNsgjbScmxjPDm2TdtEdbolWBDQOrgZSI6VjXnsts/M SkWC/K21c39dNg4fWHwtYmojv//RyzpS3DrUmB1xK3Tc2/LdatbvZYhNFXpzmAPVPitJ rTkRdXMoNtkkpAZUJrklBsgsL+m+6GgJaRBD1tOJ4jGIWdiXccZBVZq/7V4YoWbyIMFW ouAA== 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:date:subject:cc:to:from :arc-authentication-results; bh=HtNqVFmqDrrF4gnWCkVF4oBU+8Fk0Z7HONQo0TYuczk=; b=GRjj3Rh8kc9Ec80AKUg7PQyq+nS0WTLpvT2UISKynDvobfV8vtJBIZCQ/D8npoSpjW hbL439c+Pk/3rGXs4+jJItcHPFTREddCrzKy/7DpzAbLZHwo7pmJBUJNqHD1oPmbYl0j LQZGLVtfeY7QgphpsvvSfwKiCgyJpyvEeOGcmLBty/foHohk3sgRCLID3Z2iA7hBKXW4 nt104v+mIjXHDiYtHvEn13qCXwmz5qW/atGGDm1/iIH5u4cq/0o6IB3IJLGy4jMGcSX6 JrRK8cSUZhCqVBytk5SMnZnwJHNWbx3mcV65U5MTxg2hZhTonSh5Jw+lSxj04TYrrJbc SZFw== 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 y5-v6si2177675pgc.493.2018.07.01.14.02.16; Sun, 01 Jul 2018 14:02:30 -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 S1752563AbeGAVBj (ORCPT + 99 others); Sun, 1 Jul 2018 17:01:39 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:34736 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752504AbeGAVBi (ORCPT ); Sun, 1 Jul 2018 17:01:38 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 78CC160A04C1; Sun, 1 Jul 2018 23:01:37 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id LkYELMxg6SZB; Sun, 1 Jul 2018 23:01:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 39D7A6093334; Sun, 1 Jul 2018 23:01:37 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id GSlWXJ4j5_Xy; Sun, 1 Jul 2018 23:01:37 +0200 (CEST) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id 15ADB609199F; Sun, 1 Jul 2018 23:01:37 +0200 (CEST) From: Richard Weinberger To: Joe Perches Cc: Boris Brezillon , 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 Date: Sun, 01 Jul 2018 23:01:30 +0200 Message-ID: <2098416.O8QMNZQyoz@blindfold> In-Reply-To: References: <20180701223347.2cef133b@bbrezillon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, 1. Juli 2018, 22:54:32 CEST schrieb Joe Perches: > 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 &&. The code is more readable. Thanks, //richard