Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3199015pxj; Mon, 31 May 2021 23:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuoLiZ2Jg7UL1XoicGGUPTSyoXwLNBKVLk9j1OnybG0mQVpw6Qaxut6eCOIegLXwncovxY X-Received: by 2002:a05:6402:17d9:: with SMTP id s25mr30005936edy.337.1622528390252; Mon, 31 May 2021 23:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622528390; cv=none; d=google.com; s=arc-20160816; b=Mo0iDEFvwIRYYrIbVhHm59Mjhg3dBVfbX5GxnPT+UCpCHKlTVECsnHYF6g9Nz4K/ug 37UDiiarMwh5fsXxr7l6W0Y3arJ/G1ar/V6YInbkQmXsr9N4VTXupZM9s8NITKebyBLn DTdBRr0MgQ1WVWb1TTLeji5JiExFGPpHlQSUAfsxLlfICag+w1xQ23TorHN1tjG8wqm/ MtXlEeMDZJ5rBXOpvQkdftVjX/KN3rs/IwaXFcV7syCRMr1kNWFkRKHq/CDdi70B52A4 gGoOOSH6Vc7m8juaUm1sXgFJ86ODU3hm8ZFo47K4SUXoDpZEicQH56xNZOZIrtzFwsy+ FImA== 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:references:cc:to:subject :from; bh=2dmJCyM6207SAIRmwSfepPQif9XB2E/2OMQfiqLdF4E=; b=s9swFZWDw8w+1tSCXD3ydIviV8JWCD6LENBewoc5Ny7iNXplqxi0jSjKSy2lEjW6it W6zVFXAi9qrAUpLHKyqtKCyp9vB9jo0HPtrmQknoq89Jeg76H32w75NrQCPxU4qqwQN3 sr54h7EfN9lODYNdtCb+DFrKQh5d36CKNe+wcQO6S8qC6CWjwBQcrwp38LEsXxCMMqJY t4k+DdcYwWbBwNkq6qLW5EExDBsN1dh3kO2YfzjpoASCj/hHxeftUj9rfRs9ONGB2W5k NP4ktkv+dBB3SJuFwOPMntQywsm2fO8jqZDVJyiL7Q4CHTrPxq3bQBXyyhN5fmDm8ovD BlIw== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm21si13070818ejb.564.2021.05.31.23.19.27; Mon, 31 May 2021 23:19:50 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232814AbhFAGSX (ORCPT + 99 others); Tue, 1 Jun 2021 02:18:23 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3484 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhFAGSX (ORCPT ); Tue, 1 Jun 2021 02:18:23 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FvMLF3YnPzYqWr; Tue, 1 Jun 2021 14:13:57 +0800 (CST) Received: from dggpemm500012.china.huawei.com (7.185.36.89) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:16:41 +0800 Received: from [10.174.176.189] (10.174.176.189) by dggpemm500012.china.huawei.com (7.185.36.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 14:16:40 +0800 From: Qiheng Lin Subject: Re: [PATCH -next] x86/kprobes: functions should not be declared extern To: Borislav Petkov CC: , , , , References: <20210531031009.21737-1-linqiheng@huawei.com> Message-ID: Date: Tue, 1 Jun 2021 14:16:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.176.189] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500012.china.huawei.com (7.185.36.89) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/5/31 18:39, Borislav Petkov 写道: >> Subject: Re: [PATCH -next] x86/kprobes: functions should not be declared extern > > The condensed patch description in the subject line should start with a > uppercase letter and should be written in imperative tone. > > Also, the subject is wrong. Hint: "declaration" vs "definition". > > On Mon, May 31, 2021 at 11:10:09AM +0800, Qiheng Lin wrote: >> The function declaration in kprobes.h is already marked extern, thus its >> definition should not have the keyword. >> >> This quiets the following sparse warning: >> function 'arch_unoptimize_kprobes' with external linkage has definition > > This sounds like you're fixing something just because some tool > complains and not because there's a real problem you're fixing. > > Please rewrite your commit messages to state what the problem is and > why you're fixing that problem. The tool output can be used to say > something along the lines of "this problem was caught by this tool" but > not as "see, tool X complains and creates a warning and I must fix that > warning immediately." Thank you for the review. I will send the v2.