Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1227784ybh; Thu, 16 Jul 2020 06:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNvIomZKcLxfLjhrm/362MPnD5tqlp7o+LckbG0UxQSJiDt7vBm8ztjCIr0eWP5aV7T+l0 X-Received: by 2002:a05:6402:1d14:: with SMTP id dg20mr4616210edb.23.1594907106134; Thu, 16 Jul 2020 06:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594907106; cv=none; d=google.com; s=arc-20160816; b=D4CUnd0IT+cZYC5Vbmtcs0Fo+lG3g8BMqt/xl8NPKWjg03grGKnbI0Ckd8ot52tfeJ YlCT7UXevS7frIr8n9FBWnmg5Phrn+LBX44KqJTmh05P81yeXw4vLo1tMP8eq42r/IBo RmK5R2V/0g7j8PJtrq7aXWQoquZz45SQJC3cVW9uZ7EEjjQttkNiHOZP2j5JMkpMh0n7 JtxIgkU5VEGQYrh3BIKM1lh0XJn+kEH4iMLm8IIo6Yo6/kJNX5SYwmEEH/aR0mpX/KJM /FQouWkwVHelepf7xSQAmGXT69w2xcDj7pt25msmxmhhxsmNPNTfh+pHgJEWiyYIQSrl kC5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JZNBQEsluWYNjW+GWqhOJExdknKZFMDrInNuaDZzuMw=; b=WfpJLsRB96wsVNe8uFnixtpsN8P/8Xl8WRmiOa1CD5hJcLPutnQljs3IKUU8DHU7VZ rZ4y3I4vJc531l8h/A1xI5nuaKsJSHitgj6YPZUe4YAz85zdCjJhbu4GH6qSV3qhnYed Rh7fNd7gxCFwF6c7zC2aBit5SWZBocf50PlaXwZmcminXALJceZdHnJo00Ly4Le0+ecx BxcObGf9nHudC5utEKJYlNLfUFeKNtYZc68S/99+0sskpvFzvunkGgV2DmRrSc6l+LKj CFv5RKJYICKJb9qEH1U36ttVK3TYEuziUmCLilMl8g6qclkrVO4r2LI/2SNzzPRkolF6 7adQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pvEOTTT9; 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 dg12si3127319edb.81.2020.07.16.06.44.42; Thu, 16 Jul 2020 06:45:06 -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=pvEOTTT9; 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 S1726537AbgGPNmg (ORCPT + 99 others); Thu, 16 Jul 2020 09:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbgGPNmf (ORCPT ); Thu, 16 Jul 2020 09:42:35 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065F4C08C5C0 for ; Thu, 16 Jul 2020 06:42:35 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id z13so7120037wrw.5 for ; Thu, 16 Jul 2020 06:42:34 -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; bh=JZNBQEsluWYNjW+GWqhOJExdknKZFMDrInNuaDZzuMw=; b=pvEOTTT9SsDqGhGFsX85a6EqqFWOuEAC4IqfRFOuM8X5Qu/qz1ZqqaSqw+oN3m1plo beYEWWeILRQzeWSOirdtUIu5egMGeIk7pcIFHSPbYIm4GLKwMTGfYouEjJwzs9B0IvuN UfBvt9p+l0xyGcKfe/B3uJUrNYKbv0rtIcBTPeEgLhKc+8AqtUdB+yMydhPUap2jotWa eCwJah2C3k2ByHIo0oq0sPmsYrn9N2AC46W1bTUA5vwV4+w6j685C1Vodm6LZLMYPtmN gxNNReqt/rhZ8nAJz3SgmZSA9X2t3a6MBoD8Z/teJNo+hnWd/Q4sJR3j2sDMs11nVd4E ENzg== 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; bh=JZNBQEsluWYNjW+GWqhOJExdknKZFMDrInNuaDZzuMw=; b=lHKM6qL135tQTeAJ/lSlu1QWSR6Li9ssiET+dtpVBfjpBjyxCXkxt2bVsXIBfb9idr vAg6jCfjIMXK7QJgyQLP5WkkF9Ndrr2pZ2yqhxxPxHKPZqdknrGdTfXkrHiFtXN4YjIx oFEwFJbcgnCfqHfkc9V0haMIguxNvd5qdiCStljK+zRK1vqbfGoWGHDa/7ZHH5asBUQ4 mJZu5eSK76iHIkp6upmM750+6SB4qhgzIoB/vd4okY5WCjSlH6Wk/kHwhc4vy/lchNsi do5kwHTTudJJtsewvmuFkahkw1PPGKSHbRx8lGCVJQyFG+zGBcGr18tHurP5nbpDtBQ+ PYQQ== X-Gm-Message-State: AOAM532r8UFVQPrbaVRuQGwxwbs/A7MmShze3ddvk2IS/t3e+XLDjL+l 6zbLrZrSIpZB9t+8sMMxdEQdOa5V0VM= X-Received: by 2002:adf:f842:: with SMTP id d2mr5567144wrq.55.1594906953665; Thu, 16 Jul 2020 06:42:33 -0700 (PDT) Received: from dell ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id m4sm8355362wmi.48.2020.07.16.06.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 06:42:33 -0700 (PDT) Date: Thu, 16 Jul 2020 14:42:31 +0100 From: Lee Jones To: Alexandre Belloni Cc: linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Russell King , Nicolas Ferre , Ludovic Desroches Subject: Re: [PATCH 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header Message-ID: <20200716134231.GP3165313@dell> References: <20200713144930.1034632-1-lee.jones@linaro.org> <20200713144930.1034632-17-lee.jones@linaro.org> <20200713200244.GA23553@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200713200244.GA23553@piout.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jul 2020, Alexandre Belloni wrote: > Hi, > > On 13/07/2020 15:49:21+0100, Lee Jones wrote: > > Both the caller and the supplier's source file should have access to > > the include file containing the prototypes. > > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/pinctrl/pinctrl-at91.c:1637:6: warning: no previous prototype for ‘at91_pinctrl_gpio_suspend’ [-Wmissing-prototypes] > > 1637 | void at91_pinctrl_gpio_suspend(void) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > > drivers/pinctrl/pinctrl-at91.c:1661:6: warning: no previous prototype for ‘at91_pinctrl_gpio_resume’ [-Wmissing-prototypes] > > 1661 | void at91_pinctrl_gpio_resume(void) > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > > > Cc: Russell King > > Cc: Nicolas Ferre > > Cc: Alexandre Belloni > > Cc: Ludovic Desroches > > Signed-off-by: Lee Jones > > --- > > arch/arm/mach-at91/pm.c | 17 ++++++----------- > > drivers/pinctrl/pinctrl-at91.c | 1 + > > include/linux/platform_data/atmel.h | 5 +++++ > > 3 files changed, 12 insertions(+), 11 deletions(-) > > > > diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c > > index 074bde64064e4..59f2a2d6fbbb8 100644 > > --- a/arch/arm/mach-at91/pm.c > > +++ b/arch/arm/mach-at91/pm.c > > @@ -25,17 +25,6 @@ > > #include "generic.h" > > #include "pm.h" > > > > -/* > > - * FIXME: this is needed to communicate between the pinctrl driver and > > - * the PM implementation in the machine. Possibly part of the PM > > - * implementation should be moved down into the pinctrl driver and get > > - * called as part of the generic suspend/resume path. > > - */ > > -#ifdef CONFIG_PINCTRL_AT91 > > -extern void at91_pinctrl_gpio_suspend(void); > > -extern void at91_pinctrl_gpio_resume(void); > > -#endif > > - > > struct at91_soc_pm { > > int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity); > > int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity); > > @@ -325,6 +314,12 @@ static void at91_pm_suspend(suspend_state_t state) > > static int at91_pm_enter(suspend_state_t state) > > { > > #ifdef CONFIG_PINCTRL_AT91 > > + /* > > + * FIXME: this is needed to communicate between the pinctrl driver and > > + * the PM implementation in the machine. Possibly part of the PM > > + * implementation should be moved down into the pinctrl driver and get > > + * called as part of the generic suspend/resume path. > > + */ > > at91_pinctrl_gpio_suspend(); > > #endif > > > > diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c > > index 9c52130876597..37997e5ab0538 100644 > > --- a/drivers/pinctrl/pinctrl-at91.c > > +++ b/drivers/pinctrl/pinctrl-at91.c > > @@ -22,6 +22,7 @@ > > #include > > /* Since we request GPIOs from ourself */ > > #include > > +#include > > > > #include "pinctrl-at91.h" > > #include "core.h" > > diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h > > index 99e6069c5fd89..666ef482ea8c0 100644 > > --- a/include/linux/platform_data/atmel.h > > +++ b/include/linux/platform_data/atmel.h > > The plan is to get rid of that file so you should probably find a better > location. Suggestions welcome. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog