Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2088337imm; Sat, 29 Sep 2018 10:08:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV638PSr8CDHrMqMQajx2JYSdGJEb3d7+4KvTV3opEhXX6SK4JWDNunAyvYhj96HW+fY3Rrna X-Received: by 2002:a62:6b85:: with SMTP id g127-v6mr3942489pfc.204.1538240923159; Sat, 29 Sep 2018 10:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538240923; cv=none; d=google.com; s=arc-20160816; b=rhD93ns2r0Kmm1ahTZATUav4GKE9v26hNBeU19wqQrtKkuTmt/zgkPnEJzMK/ilSaa 69LAYI7DVoK4UEoanpL2DPtexEmUxeN28uhK/6f+TErfkWbd0EaSX4c/0hoaXAe+ThW6 F4v3AcedGJkWbQYBFL6mgSNbzSwTAE2yp5Xuu8zprir4r8h6FM8gPCBB6cni0taVnK1s NF7faS92sdjB5skIsrqfPVZWamfpnRJRJZKyLfLfWH2GubNYgpz5lSz3rHlM7HjFDCl/ dXdGk7WIkaAsoh/iqiQbry+G+I66uFtu+SOGw9lOjzQTbEy/yWSRq3v83p8jKvn2ezQZ F6vA== 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; bh=ZLk/HZjH1hBTvJnkYYJrDAulvUqBOYfReo/IYUzN8Lo=; b=myYsloXb7WK/XJvfleAwPsLdNistsfhK9eQQW08CjLX3GkQRXPMDssqgncvXXRBGlA KQRVAKlg691JHlNbzZ9isg9pzQzhANV3+oC3m2Zny7jXaNYKvWaQPkTxIpbiaCgXFVa2 a8AnhjMvLDdUkumkABC+8rzHm57Qc1365iWASF4E8kSbN2x4HDqtUIUvBlsP+GSslN29 qUDrpkAMFMaHdcCrhNq+Tf96d4EnR/GKnPPNVdB1vsyeILc0EiwqaI+rBeC9DrHw8IeR zuHMmqF0umcgLraWwhuiGFiSth7X9QG2k2FAHN36CJ0oXmqlxatfowAvKwx69rqS9bye cxuQ== 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 k23-v6si7347909pgl.633.2018.09.29.10.08.28; Sat, 29 Sep 2018 10:08:43 -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 S1728493AbeI2Xhd (ORCPT + 99 others); Sat, 29 Sep 2018 19:37:33 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:42123 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbeI2Xhd (ORCPT ); Sat, 29 Sep 2018 19:37:33 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1103432|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03298;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=18;RT=18;SR=0;TI=SMTPD_---.CxVmELg_1538240867; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CxVmELg_1538240867) by smtp.aliyun-inc.com(10.147.40.44); Sun, 30 Sep 2018 01:07:47 +0800 Date: Sun, 30 Sep 2018 01:07:46 +0800 From: Guo Ren To: Christoph Hellwig Cc: akpm@linux-foundation.org, arnd@arndb.de, daniel.lezcano@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, jason@lakedaemon.net, marc.zyngier@arm.com, mark.rutland@arm.com, mchehab+samsung@kernel.org, peterz@infradead.org, robh@kernel.org, robh+dt@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org, green.hu@gmail.com Subject: Re: [PATCH V6 04/33] csky: Exception handling and mm-fault Message-ID: <20180929170746.GF27796@guoren-Inspiron-7460> References: <20180928161503.GC19827@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928161503.GC19827@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 28, 2018 at 09:15:03AM -0700, Christoph Hellwig wrote: > > +#ifndef CONFIG_CPU_HAS_TLBI > > + /* > > + * We fault-in kernel-space virtual memory on-demand. The > > + * 'reference' page table is init_mm.pgd. > > + * > > + * NOTE! We MUST NOT take any locks for this case. We may > > + * be in an interrupt or a critical region, and should > > + * only copy the information from the master page table, > > + * nothing more. > > + */ > > + if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END)) > > + { > > This doesn't fir the kernel style. Please run checkpatch.pl over > your code and fix at least all warnings that don't seem clearly bogus. if (unlikely(address >= VMALLOC_START) && unlikely(address <= VMALLOC_END)) { Ok, use checkpatch.pl. Best Regards Guo Ren