Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2494234pxj; Mon, 31 May 2021 03:43:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfe1HvjuWy6Yftte6E1QCccEpL427Na+4/RhqAWADAq6JmQZOS+53t5kXy25iXMj9GG5Od X-Received: by 2002:a50:d69e:: with SMTP id r30mr17223729edi.186.1622457810386; Mon, 31 May 2021 03:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622457810; cv=none; d=google.com; s=arc-20160816; b=T5s8BofxeLg4PrWqm8YUItEC7EyIoYsaJehuWchl7MfJahwa94t1nimIAx+u9Bjaib RWLoXAqqalmaElp+xPNy2Ai2fnWF3Ky2ML7fmTB0uhUd164iZ3ptSQDYj3azPXKVbWpJ gC4ZLUoEG1TWX5htzJfCggfKCV4yEGFa5fQyX13XORNSYdsSSy4HCXQx2RB0A59n8UXC sVM2UIwFhZdjnf2a+wxV+S7DnoOcBNgu0K9y351Ks0T/qTYFwCy9KzijIdRRFy300A4f oN7GuvC2gnuwa/IZl2XxPRGuVuKXN6f+s/3JqjRIWm/4eU4jnBWG4GrbSKjkL/2HY/hp wowg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WUgUwx39xVYZ11/15SQd1ZJkFjifBzAGdzkPCYAD/J0=; b=Y2M7cM2uUuc3jY+TxbnTe+29KAjoHuJJShYoNoliuavIXYB7NhTSOxS5gdGW5dvcIc OQuHorcI8IpApKNjk+3BxHFdQSQe1hFS5/Bpu7dhbC+LKdf2uiDofn7+LCITwIDClXcL FwM7PJCzGCzbRWULoONUZXiTs7WN+B0fERTk5fR+EzmvHmX0lfmNMsJZdCvf38i3HaBg HEw77Ahz3BHxDW06RRbWOM6QP/CDu2/xFLi/dx10Q6qeKuyvGrPeLcIguCX8kNsXTnET IYq4qcn6vDP2PM9g1p9Kr0sW6QpVdhI0QPGoSP1x64Cbycod4g8hFC8qbqx/qMQxDA+2 KLUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=DSj90rkG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp12si12004996ejc.245.2021.05.31.03.43.07; Mon, 31 May 2021 03:43:30 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=DSj90rkG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbhEaKlr (ORCPT + 99 others); Mon, 31 May 2021 06:41:47 -0400 Received: from mail.skyhub.de ([5.9.137.197]:59604 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbhEaKln (ORCPT ); Mon, 31 May 2021 06:41:43 -0400 Received: from zn.tnic (p200300ec2f080f0029ca4f7a5f3cda43.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:f00:29ca:4f7a:5f3c:da43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D5E781EC0556; Mon, 31 May 2021 12:40:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622457600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=WUgUwx39xVYZ11/15SQd1ZJkFjifBzAGdzkPCYAD/J0=; b=DSj90rkGY8JyE/oqn4kNbJA/r8rqwL/x0ucFuTqoUjStiPEB6PdkXzvG64grdWZJcjMOkh 0BQEkjxXlVqO4im4HgtuD4+2KB8qSK5CS2SK0Pz4YhSw5JVv+prRDxjyecZnZMIW3xUWqg OUio1c6UnN/yyIBoTKjIMuMorc6HC+o= Date: Mon, 31 May 2021 12:39:54 +0200 From: Borislav Petkov To: Qiheng Lin Cc: tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] x86/kprobes: functions should not be declared extern Message-ID: References: <20210531031009.21737-1-linqiheng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210531031009.21737-1-linqiheng@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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." Ok? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette