Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp922886imu; Fri, 9 Nov 2018 08:10:30 -0800 (PST) X-Google-Smtp-Source: AJdET5ddTjFkwm0BgJ6LZaPq0nc67TMqWcge9/ZJWVuqbIwkHY1/46CVPs6LZfF2qr+yWz0Y8lN+ X-Received: by 2002:a63:2109:: with SMTP id h9mr7931015pgh.277.1541779830352; Fri, 09 Nov 2018 08:10:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541779830; cv=none; d=google.com; s=arc-20160816; b=SjxjqLw30wi3w5Jrit0XkvNS/s6xNID+OijsE3Tno3NlzT4l2TBuywVObveWUPIwGa bh8HEE/kzUUoQrzYOgtNBn2LSZwTI5GRQqu6nv9pmkfDjWTH05SnBF3rsSrVQbNNNRQc 1YujGguSKS0dzLTW0h6TU+yijEeucapIP4vHoAiDOWw0YXp6tbzljqWyL2wCP32c3BMg B4jKMHHF6CpJKKuPX/7KZm0YOmrKa+WQnmA+XromlItd+f8vB100np45ZWP9PgVXxOo5 tRkjqSE91JB8WxvfbkJr2Kw0vL8ujqe5ya27EJx0MTE+4tSKRpTUbflAVNFHi0jX+/LX U6xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=1CA1vpaj10gba0UAA8ULVlDRtzdWyzVh8hnMpAaBg3M=; b=UmGBpZovgwG7/MKdAWI/wapkL1nTvak5Pp21JK9tcYknXNwzvbjZhQvqBbUHaiUAey PW/YrS0v6Kpwyp/lEgwypmrPL8oWA3JE2v8cfPo8I8wRA8PlzGIJBfQNAt85XKkdsd60 JmNXZjGI/LJtwuMiYMYcJ8N6CWF15zg/6NYQxHS74fccz2DpPfRR2pLCYz+ZvqEaJkMw UgKtLlB1JMQwPlAZzxtQqOClcPVwBYnmIi4wWm/vJclmO6tDgTaOgucJKqYPtGTmBGV+ rdMQMW2zltfKLxdYGqWCktA9OzTrE6WQPlfEYXaElU4QC9efgFE8fBnBdutsX6kDDcLN P89A== 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 v11-v6si8135152plz.340.2018.11.09.08.09.40; Fri, 09 Nov 2018 08:10:30 -0800 (PST) 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 S1728414AbeKJBsK convert rfc822-to-8bit (ORCPT + 99 others); Fri, 9 Nov 2018 20:48:10 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:53150 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbeKJBsK (ORCPT ); Fri, 9 Nov 2018 20:48:10 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by dkim.mimecast.com with ESMTP id uk-mta-174-dqchVRUSO16jaBaTGo3y_w-1; Fri, 09 Nov 2018 16:06:55 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 9 Nov 2018 16:07:01 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 9 Nov 2018 16:07:01 +0000 From: David Laight To: 'Thomas Gleixner' , Borislav Petkov CC: Yi Wang , Michael Matz , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "suravee.suthikulpanit@amd.com" , "puwen@hygon.cn" , "davidwang@zhaoxin.com" , "linux-kernel@vger.kernel.org" , "zhong.weidong@zte.com.cn" Subject: RE: [PATCH v2] x86/cpu: fix prototype warning Thread-Topic: [PATCH v2] x86/cpu: fix prototype warning Thread-Index: AQHUd3jUzn4rdJSfqUq5NosMvhSfq6VHnNmg Date: Fri, 9 Nov 2018 16:07:01 +0000 Message-ID: <3e5713c2f323453d80bdd2259e3392e5@AcuMS.aculab.com> References: <1541639548-11149-1-git-send-email-wang.yi59@zte.com.cn> <20181108150318.GD7543@zn.tnic> <20181108153226.GF7543@zn.tnic> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: dqchVRUSO16jaBaTGo3y_w-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner > Sent: 08 November 2018 15:36 > On Thu, 8 Nov 2018, Borislav Petkov wrote: > > And frankly, I don't see why we should be fixing all those. So what if a > > global function does't have a previous prototype declaration?! > > Global function declarations must have a prototype definition, really. > > Otherwise you can change the function signature and all callers which use > the old unchanged prototype are hosed. I bet there are at least double-figures of real bugs out there. The next on the list should be -Wwriteable-strings. Usually just needs a few 'const' sprinkled. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)