From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756910AbdKOCuN (ORCPT ); Tue, 14 Nov 2017 21:50:13 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:32661 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756306AbdKOCru (ORCPT ); Tue, 14 Nov 2017 21:47:50 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30185090" Subject: Re: [PATCH v8 2/6] time: sync read_boot_clock64() with persistent clock To: Pavel Tatashin References: <20171109030201.5991-1-pasha.tatashin@oracle.com> <20171109030201.5991-3-pasha.tatashin@oracle.com> <3049ead9-af20-a334-74ca-5efbb251e60f@cn.fujitsu.com> CC: Steve Sistare , Daniel Jordan , , , , John Stultz , , , , , Thomas Gleixner , From: Dou Liyang Message-ID: <0c9ba6e2-d9a7-f792-9e4b-acea4eb2bb7a@cn.fujitsu.com> Date: Wed, 15 Nov 2017 10:47:45 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: 2ABEF41860D6.ABB62 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, At 11/15/2017 03:57 AM, Pavel Tatashin wrote: >> why we should remove the *extern* keyword? > > Hi Dou, > > While, I am not sure why it was decided to stop using externs in > headers, this is a warning printed by scripts/checkpatch.pl: > > CHECK: extern prototypes should be avoided in .h files > > To have a clean checkpatch output I removed externs. > I see. IMO, using the extern keyword on function prototypes in *.h files is superfluous, but, It doesn't matter for functionality. *extern* is default keywords. AFAIK, it's a code style problem. In x86 arch, we prefer to keep *extern* explicitly, so, let's keep it like before for code consistency. Thank, dou