Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp149535ybh; Tue, 14 Jul 2020 21:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8g0JeT/Gon1M07gsF4drs1nkVh9aVXBl/H/Q3zzHCie85lRZ1DFol/CikmCwlPfkxi+Bg X-Received: by 2002:a50:b026:: with SMTP id i35mr7771078edd.158.1594786090094; Tue, 14 Jul 2020 21:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594786090; cv=none; d=google.com; s=arc-20160816; b=hgv5xrRjgaY4ga6OMg2fU3Yo3cH2EijZz3EqwZswFiCQxFa8RDMd55fKVwQPd468Z3 NBNEi/HIN40mnBHc2PSYpgwgaPnptGVrh2QgNHCAJ1loyHxbi+OChEGFFJk+/dz5dFoU /i3WqSLW1QFxlq+FA7J6iWfo9QeLJZe5pDRAUeRrn385j1R3FJpoIylSBkwI83gp4HvI vUjgRjiRnH93FLlmLCH57bUy+z9XloC1/YjBC/DKvH+bob8EzO/ddVPTTd9sJ5vO1ed/ Cr2HX0ax1fgYIiBXWZd/Tex+1UuIGMI/qp+vMokri9/+oS0Gxy/eR7xTIzCm4wBGcaFp EvCw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0035V8bnG3whIAu8f7LLUznLFIPtedBFd2Vvyt7nBVE=; b=FwovOPXBF0u4BxAZ8nvs6tK9kO1oHtjZEiMGcNwkgBHe9mhLDdzq72d5lmOBKjx2Y1 wUwZ+IzJsqZD83aty9SJixXcnTvjlDZOdM1EqBwnSTfSxsXKzo0rCe1Ds4Gsk4OgWzk6 8lFFwM9n82dF0PP4sezJcUCHSqVYwZAubG+a7JEpJKEsN0LS0/XHj+wChXff2YbfUa40 NDcZPOdjiM1eqjqUNlL9ncIfCw0vGdzOOpjQX6/qs5TxAMPdxVGbDj6kbifYwWwU2eYt DoINHrCOoEjQMmA1pRlsYPcu7ZJQpnLsS3cGEMnVs7287cHQ9S8Q3VZ6ICV+O7q3JWRk cI1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T6AbBGKL; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si478002edu.387.2020.07.14.21.07.11; Tue, 14 Jul 2020 21:08:10 -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=@linaro.org header.s=google header.b=T6AbBGKL; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727772AbgGODHL (ORCPT + 99 others); Tue, 14 Jul 2020 23:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbgGODHK (ORCPT ); Tue, 14 Jul 2020 23:07:10 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 774F6C061794 for ; Tue, 14 Jul 2020 20:07:10 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id ch3so1735846pjb.5 for ; Tue, 14 Jul 2020 20:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0035V8bnG3whIAu8f7LLUznLFIPtedBFd2Vvyt7nBVE=; b=T6AbBGKLFGiO0rMZSPzPGLvnhapccenwdvNWp3pzTj2roNEx6srIAWKTBvrEsL/hBA IZkPg8mUeuKB1PT4pOTI4RjF5htA4bxX6dyCndlvlQe4G3ODxC2ZOvhPWx+05HCv9rDZ va/MRhxP+3uW57aWLqjD3o2VwG34nmWoW4VDWWaVLnO2XyVSQ6mxJiYqPIYyBouwaDte gFQTXx4zqagvxCcyT8kLl6jPMhLAi7mmed0AH0wF+KddDCiP8oCCatuOk/jTqvTazoK2 EjDKeUpPihFzsLsxEaEe6MTwtmRnr+fQ9s2ka4YKgYXJJjwdcjX1AxKMspjlcbaQ/Gx8 Vajg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=0035V8bnG3whIAu8f7LLUznLFIPtedBFd2Vvyt7nBVE=; b=nwzZBbfAU5X5r5gYKheHkaygZ5MxkWiwi1PwytaN+pyzp2ChfTYaQ3W1px4cDNo/JO v+fVc00B5MNLPOoUpTiBzKnoYA0maWeXg/Lp8bTZcNDMT2eeDzuilUhNkqixw2N6dgkS LE06YV1REdu/qjrpFshbxyovLX/UKyO2dkjMrWNtjB5P0MGS4OFyVam+8HB6Rczmu0Sy l8RAxjL91VlpMycnHUTmPUlF7HLXbT4XkMJzWAawCwbrKOixvzIpUdPVeEQ6bE9kB1xi JXoU37taPa0FmD3+CeugCTS76jMQYM0yUvxuGmxW9K3XNce3eifY09p0WM+GI4qlurYu rtnQ== X-Gm-Message-State: AOAM531E61hfvF8T3o2dCzav3YSw5fDSMjZGTXpvR1OMLSm85IFx3KBG D/0JMQSytcW+PdDA49wHUuaqCw== X-Received: by 2002:a17:902:8bc7:: with SMTP id r7mr6673755plo.57.1594782428813; Tue, 14 Jul 2020 20:07:08 -0700 (PDT) Received: from localhost ([122.172.34.142]) by smtp.gmail.com with ESMTPSA id h100sm388981pjb.46.2020.07.14.20.07.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2020 20:07:07 -0700 (PDT) Date: Wed, 15 Jul 2020 08:37:06 +0530 From: Viresh Kumar To: Lee Jones Cc: rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Olof Johansson , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 05/13] cpufreq/arch: powerpc: pasemi: Move prototypes to shared header Message-ID: <20200715030706.prxya7fyylscoy25@vireshk-i7> References: <20200714145049.2496163-1-lee.jones@linaro.org> <20200714145049.2496163-6-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200714145049.2496163-6-lee.jones@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-07-20, 15:50, Lee Jones wrote: > If function callers and providers do not share the same prototypes the > compiler complains of missing prototypes. Fix this by moving the > already existing prototypes out to a mutually convenient location. > > Fixes the following W=1 kernel build warning(s): > > drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for ‘check_astate’ [-Wmissing-prototypes] > 109 | int check_astate(void) > | ^~~~~~~~~~~~ > drivers/cpufreq/pasemi-cpufreq.c:114:6: warning: no previous prototype for ‘restore_astate’ [-Wmissing-prototypes] > 114 | void restore_astate(int cpu) > | ^~~~~~~~~~~~~~ > > Cc: Olof Johansson > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Lee Jones > --- > arch/powerpc/platforms/pasemi/pasemi.h | 15 ------------ Is there no sane way we can include this file directly to the cpufreq file ? > arch/powerpc/platforms/pasemi/powersave.S | 2 ++ > drivers/cpufreq/pasemi-cpufreq.c | 1 + > include/linux/platform_data/pasemi.h | 28 +++++++++++++++++++++++ > 4 files changed, 31 insertions(+), 15 deletions(-) > create mode 100644 include/linux/platform_data/pasemi.h -- viresh