Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp360333imm; Thu, 5 Jul 2018 01:21:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeA+NQam+XO8PPSFdH1XJL+9xETjJYJTHCxMcNV8+RCpfHNY50AUPXlTriytC1aH8ECubPo X-Received: by 2002:a17:902:76c4:: with SMTP id j4-v6mr5139331plt.19.1530778915774; Thu, 05 Jul 2018 01:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530778915; cv=none; d=google.com; s=arc-20160816; b=iXzrNL9b9L/veF72kLB/23eAcZ1c88qxj0JTNG17srsacT6+/liIkT9B0SDOMb3HJC 61EW2Vn7UHQu1qv7ca9hUHPiHV4DLhJ4YS03p14OYnUe3fIf5THTInW7uk+1SIv1nTIm /IaEjqRazLnTucWFMDgszFUdmD5YaLRefMuWc7/ZFHqqrvnb0eNSSdvUcISLaB11rC+X rPvsdyT8A8wVxUVOg2Q+6qBvAncso1iPtZhify2TOsCAnqAO1LPYmRoal3e6ORs7AJis 5Szc8e/4Frl2QVIsRnYlgqCCkH0I+JDR6PmmqFENTaHdb057TRGKWvVAnJrYwio6tAPA JVVA== 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:arc-authentication-results; bh=R57Bija1o6aBcC+WGjhhp9tzcMPdC9xk4O81h2Tgpqo=; b=xPR16wzaNN+Ue1EvK8VOImnSrheXXYn5awbl+lyo6Zb7Zc+GwodWNA5fhW016Yto2v ihpks0m2kRU2sjCJX4aXoXZH9LQ1OSk4S9RIaJDX8RMGlYy7L1GtfIVGJeD5/KwFI7+f 9ILeoCn6c3OdjnjsIs4PVw4nGUuwcJrtHp3sjqBVQ3DmPLqH7FBKLgb3jO/adIkhmCGA NJySO2x/tvvB7xkUVOaszTYExhVkqzJgtydqOkJtNnrE9Srp9F15KzOO7s3bQ3Clhpfx RCeXOA3BIfrhhSCCcNSrWx8sYU5z26Ji5liMpJjMNa/gPTzciG5hBu6EN7+6JQ2FmCzF iS/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=izX5UxoX; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g80-v6si5827554pfk.53.2018.07.05.01.21.30; Thu, 05 Jul 2018 01:21:55 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=izX5UxoX; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753294AbeGEIUa (ORCPT + 99 others); Thu, 5 Jul 2018 04:20:30 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:54802 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965AbeGEIU3 (ORCPT ); Thu, 5 Jul 2018 04:20:29 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w658J7s8169089; Thu, 5 Jul 2018 08:20:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=R57Bija1o6aBcC+WGjhhp9tzcMPdC9xk4O81h2Tgpqo=; b=izX5UxoXBPYmZsgy1IdQRioYPeKhKXEeM4DdzY0Nd369Mp6Fm5imcBPgCjJ9k3qhaSbq jVMo0W/bY+EVZolkQQ/RCCwUGNqoaI23TYAjwbK8ZxVum5L7mTwy2uY1eSRbZnJj3sHH 34uyrU2OjowasADp97O5riQfO2T/refnVdkRpKJwezFuw3dODod9/4hZ4fC54APgp5MB 1ra3PXR/oZghbpQ2XDl445TFm3336pU9q1P54bsEdL4a05dv4esdFl+SnJgZPKKDy3+G 0LNH1Qm4UNQO37+NEgKOgPT+2rJwUoMK0VRoxnt7JGztwqMLuqML8p2CfiXFEf7CXJPG 0g== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2k0dnjcuhe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 05 Jul 2018 08:20:06 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w658K42m029429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Jul 2018 08:20:05 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w658K3Jl014661; Thu, 5 Jul 2018 08:20:03 GMT Received: from mwanda (/197.157.34.168) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 05 Jul 2018 01:20:02 -0700 Date: Thu, 5 Jul 2018 11:19:53 +0300 From: Dan Carpenter To: Joe Perches Cc: 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 Subject: Re: [PATCH] checkpatch: Add warnings for use of mdelay() Message-ID: <20180705081953.pmvpmtzm273eb6yk@mwanda> References: <1530728333-31590-1-git-send-email-pheragu@codeaurora.org> <173cc189627e0d6618b535fcd1ce6a4c90ce2ad0.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <173cc189627e0d6618b535fcd1ce6a4c90ce2ad0.camel@perches.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8944 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=715 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807050100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... regards, dan carpenter