Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp372561imu; Thu, 8 Nov 2018 09:25:40 -0800 (PST) X-Google-Smtp-Source: AJdET5dbF9/m3ClrMj1To/N2MpIXKaSig1JavwV6foqsRAKFehfOEIo1LeyqCJVt7IEeExCw5Ezk X-Received: by 2002:a62:3384:: with SMTP id z126-v6mr5476722pfz.112.1541697940148; Thu, 08 Nov 2018 09:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541697940; cv=none; d=google.com; s=arc-20160816; b=MOwH8O1hy5MTcC82JWR4YOQHqpxxofZM0mHZjYFDsOGmjjg4yfV483RWndZI9sQbcY s7A+1bX75rdheKzbaepMKkH1JYHMHr39qSZSOt9oABwOLJ1EEkfotZan8ZPFcYKpXdJe /k/c9R/qgtLKwQB/FybGEAplFVteMs1Y9Q0wGrIZUshZ5uaXce8AUIUuk4Vkor9QsueZ LS3Ay+az8h8c2Ru+Hm/XRRJQ0mLxR3jO8YiBfGFY9MeEMPIugwuNTJ1m81U9obsqNS82 u67lE2wp5wHbo66ZEvcNKbWTo+cQPXwENZNPHB1sHUSr1Vk8LO2aTzRf/lfvAACIWwkR FqfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hDzdDZi1c6UYtOHMP3LDxuXj2rRq7xsl571kAEBhy60=; b=feuQ8GpOoSXEXbLFhTn/u27AiOBidriQ0b2nSCQn5vfVFA8MtvLtNtR8RAfPayGNUa NixpPNHZyXpPX7cZdSM7uZBx1TwjMffUeaZ21TOMkRzebP8TVyFHQ+3PdbtQZyQLLvx/ gurjWR5bMCOv9fkbX7VA37kn/kP5cLIHyuRTJHH7Go0R0jFXV5MlqfF1bQCmw3GF84B0 Z6y+vp/Z2D86mInvjoDA6VjMNwM5jGxsm79MMQpyETJhQM3w8Wozutc5XeFM71RPXGMA h00NF1laVnJopSL8gi101MTYIf0M6xz9zym8yM/zP/zn1+UKP90iSMi9+AqUKmRUGLJ8 Jhnw== 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 2-v6si5178254pla.223.2018.11.08.09.25.23; Thu, 08 Nov 2018 09:25:40 -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 S1727002AbeKIC7D (ORCPT + 99 others); Thu, 8 Nov 2018 21:59:03 -0500 Received: from mail.skyhub.de ([5.9.137.197]:41660 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbeKIC7D (ORCPT ); Thu, 8 Nov 2018 21:59:03 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id y35k2CV3_SyP; Thu, 8 Nov 2018 18:22:33 +0100 (CET) Received: from zn.tnic (p200300EC2BD03D00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bd0:3d00:329c:23ff:fea6:a903]) (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 B05681EC0A1D; Thu, 8 Nov 2018 18:22:33 +0100 (CET) Date: Thu, 8 Nov 2018 18:22:25 +0100 From: Borislav Petkov To: Michael Matz Cc: Yi Wang , tglx@linutronix.de, 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 Message-ID: <20181108172225.GH7543@zn.tnic> References: <1541639548-11149-1-git-send-email-wang.yi59@zte.com.cn> <20181108150318.GD7543@zn.tnic> <20181108153226.GF7543@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 08, 2018 at 03:47:32PM +0000, Michael Matz wrote: > What tglx said. If you don't intend such functions to be called > from other units make them static, if you do intend them to be callable > declare the properly. > > [There's also one subtle issue with argument promotions. prototypeless > functions are called as if they are declared "int name()" that is > default argument promotions take place (float->double, {char,short}->int), > which won't happen with prototypes, and argument type conversions won't > take place (as no parameter types are known). This might lead to > different values between calling a prototyped and a prototype-less > function arriving at the function even though the call expression looked > the same] Eww, that's yucky. Ok, so we should enalbe this warning by default then. And doing that in the main Makefile gives ~1400 warnings on an allmodconfig build. Yi Wang, I guess you have a long road in front of you. :-) Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.