Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1424194imm; Thu, 5 Jul 2018 23:10:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfM5arP+7jJ1BV4y80i5WeQjLO/fT+HCoIAKpfneIBf+k6V89XyA+11Ldm5LFRIySI1h0mE X-Received: by 2002:a62:4c47:: with SMTP id z68-v6mr4462753pfa.110.1530857438757; Thu, 05 Jul 2018 23:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530857438; cv=none; d=google.com; s=arc-20160816; b=zEg4m2jBu8MeKmWZpmQcdV8QcnAw04kKvkcZ/EOiTPrKxwY2E6A25mIc62zdMntGVk PD/q8LgBpD//IRo9mLCtEvA5rlhCIMd5l0AlFvAHBGnmNoaJkL4AuZremb5gcij0lClw gXR3WYXkMFIlGknUfvJowhXcIV8lfLPTOoYrTE2yXLFw6rCO9nc/SC6y5O+iTFweWp7q 8fnaMNjpd1JHMojqoOPYn4H6JjfAIGiiyRa1dKvYuctMyZYsFrsWZz1z/GJwcIQKcO5T KrThZcYTWqptsHuV+PMqhVgXigF3/VTFAQDxMmcU9tZxxQE5ZX7lb+q6p1Z6oQavDSUN g2ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=7njjubbwQgmDPcWF2JHBXtjKtsBrSK308GMbul1rJf4=; b=LmFvX4pu0MENkKP0/Xhph4vziTDqfaPMxF4h+QHQhzqpDHobKZIKgyNmqKizr8mn2v 86L7j2dK/PP5gaLziJrWWwULsjXFn/lJxMFgWpFwaa5SPYn6bnztcvKCjX2K0h/Fz8xt 8LM8kmceCGUaQpwwSNMRurHhD7qREtY3bShRRt7lKj0UnGb8yDJm0D/2GqC9AZ/0hUEU FafDS0flxM+zt/w4tk2lfz565ryMF/Hs7HHhrAlyL+DnDYBS7ELS11VCD3K5noV/PlYW 3xzI/6JIcQrQ8KVJuk091aveiTjAuUibSqgMkok3+T0PuKrcleU+6hNJaS3wNUJRzx/k gJBQ== 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 t85-v6si8060092pfj.231.2018.07.05.23.10.24; Thu, 05 Jul 2018 23:10:38 -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 S1754130AbeGFGIQ (ORCPT + 99 others); Fri, 6 Jul 2018 02:08:16 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:12289 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933395AbeGFFtU (ORCPT ); Fri, 6 Jul 2018 01:49:20 -0400 X-IronPort-AV: E=Sophos;i="5.51,314,1526335200"; d="scan'208";a="272083389" Received: from abo-214-111-68.mrs.modulonet.fr (HELO [192.168.0.15]) ([85.68.111.214]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jul 2018 07:49:18 +0200 Date: Fri, 6 Jul 2018 07:49:18 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Dan Carpenter cc: Joe Perches , Prakruthi Deepak Heragu , apw@canonical.com, Julia Lawall , Dan Carpenter , linux-kernel@vger.kernel.org, ckadabi@codeaurora.org, tsoni@codeaurora.org, bryanh@codeaurora.org, Israel Schlesinger , Stepan Moskovchenko , baijiaju1990@gmail.com Subject: Re: [PATCH] checkpatch: Add warnings for use of mdelay() In-Reply-To: <20180705081953.pmvpmtzm273eb6yk@mwanda> Message-ID: References: <1530728333-31590-1-git-send-email-pheragu@codeaurora.org> <173cc189627e0d6618b535fcd1ce6a4c90ce2ad0.camel@perches.com> <20180705081953.pmvpmtzm273eb6yk@mwanda> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 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 On Thu, 5 Jul 2018, Dan Carpenter wrote: > Neither Smatch nor Coccinelle do a good job tracking when you're in > atomic context. I've wanted to add this to Smatch but even then it > would be to warn that "We're holding a spinlock so we can't sleep". > It's trickier to say for sure when you're not holding a lock... Jia-Ju Bai is working on this. The tool is available on github. It's still being improved, though, so perhaps it's not yet ready for eg 0-day inclusion. He can give more details. julia