Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp513076pxb; Thu, 12 Aug 2021 23:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKPha9R0Y1cj0HbAOXgq8XixdZNuPGRMFrcqvCLDN6t8u+g/Obo9wOL4hCQsyzmGCGrQzM X-Received: by 2002:a05:6638:618:: with SMTP id g24mr836586jar.94.1628836221961; Thu, 12 Aug 2021 23:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628836221; cv=none; d=google.com; s=arc-20160816; b=ZNKpBG8gkc9tI7+/Cj/wzJ5/B7mubLwm2E9Ot8gQoXwyDaljNp8UHg4XGXv2HsNBXi Lfuyeh5u5B29MVfVMhT3Oq1esnt/kPTRAW2u+BDYj77i/thVHXNzvc7G3cs2pOlMJHNF Afttdnc3C8w2bghLSwOmo3FxCDazSs6wqKXRuwYRlMSkMymm5ylkyii92EOtYBxSvgiZ 5miMEdZrWB5xVAMwxb/t2SrZfvZWd7EwdWVKB1EVAjVeEkNQXTVja0vGq5lQRzA8R8rZ 4hndbi5mTsCsTXgIRgX24/KqVUprfqXaFYZl+YOGpkXBcJXiTBeKGzgsHkoC0gxXY32I 0Zkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=nDPIuaq4dOfsnJOFDEd1/VqTlOUYhQFReo3vBT4ol3M=; b=BQ0viSPZzeMPIPi5jIeIqvT/3SGNM4zN6YIf4Ad+o12PmVruU0gOmU9B+YZwkfd22t 0NmLR1ZBIcyq6XxNR9Kb5+oiE8RFW65BdgRReQ7sXE9JlHL/j/d91Xv3+SGHdZa7sumf YLt5Sa1naJ4fSVrXlvonSe5E+CMwfd8Xace0mDlvybyjq63Nll0InRb8CqMu9iW8kjqk p01JKXBwLhOaTdfviezx+ozXSnKW8yoPwF6T+6PZOJaKeIt3hGrCvPVdsxmdWCoYkUA5 6IKnqkWNhDXTSjCm9PnnNnZ7klW+HgHKbDgaQvAxWQSgreWLzcVkZnc29KX+r1uJ1Tdl nJ1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si490806ill.159.2021.08.12.23.30.05; Thu, 12 Aug 2021 23:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238773AbhHMGEc (ORCPT + 99 others); Fri, 13 Aug 2021 02:04:32 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:42074 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238757AbhHMGEc (ORCPT ); Fri, 13 Aug 2021 02:04:32 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R311e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UirLXgM_1628834642; Received: from B-LB6YLVDL-0141.local(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UirLXgM_1628834642) by smtp.aliyun-inc.com(127.0.0.1); Fri, 13 Aug 2021 14:04:03 +0800 Subject: Re: [PATCH v6 1/2] tty: hvc: pass DMA capable memory to put_chars() To: Jiri Slaby , kernel test robot , gregkh@linuxfoundation.org, amit@kernel.org, arnd@arndb.de, osandov@fb.com Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20210812094532.145497-2-xianting.tian@linux.alibaba.com> <202108122040.lBf24DNp-lkp@intel.com> <0c808001-7643-fdcf-66ba-738654ec0c21@kernel.org> From: Xianting TIan Message-ID: <854daaf0-4d8f-82fa-a584-0b0830349a53@linux.alibaba.com> Date: Fri, 13 Aug 2021 14:04:02 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <0c808001-7643-fdcf-66ba-738654ec0c21@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/8/13 下午1:53, Jiri Slaby 写道: > Hi, > > On 12. 08. 21, 14:26, kernel test robot wrote: >>>> drivers/tty/hvc/hvc_console.c:190:26: warning: variable 'hp' is >>>> uninitialized when used here [-Wuninitialized] >>             spin_unlock_irqrestore(&hp->c_lock, flags); >>                                     ^~ >>     drivers/tty/hvc/hvc_console.c:149:23: note: initialize the >> variable 'hp' to silence this warning >>             struct hvc_struct *hp; >>                                  ^ >>                                   = NULL > > So you clearly didn't test your change as it would crash quite > instantly. I wonder, where do you intend to get hp from in the > console::print() hook? I am very sorry for the inconvenience caused. This is caused by my carelessness:( I take it for granted that there is no problem when I just switch to use array(cons_outbuf[]). sorry agin. > > thanks,