Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1013240pxb; Fri, 13 Nov 2020 01:42:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRUo0uenXNU5DwF4zXtbL57NvWXJDQDgm88Vbs1wtZoJJYt9jIKpQkgsb3pkl8zfFLSD1E X-Received: by 2002:aa7:d801:: with SMTP id v1mr1585732edq.250.1605260552435; Fri, 13 Nov 2020 01:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605260552; cv=none; d=google.com; s=arc-20160816; b=jolUorCv2vrKzpSwGCalfAnIZbhvUe4lzPS3O/1r1j0owWeyhn0wWbHncGv2ftqQ4D TMbz1Tt7otQ72U6DI8tW6NH94woZTPQq4v8uvb/H8F38YBoFOKQc4/pGFuXUQEgeXPWa L62HN8VwAkOQA++6xxP9iTutQa9hofpXGokvt4nT2lOpuCcKg1MvUs/ZCovIRytemTLf w4PBKiomlDKGN9iKEWDeL9xy6sSysDdeRqzE0ccuSIBgAsTE2VDWLF8PTxDqQbcjg/rg yXAsMX5BONTskNjTSXVWVEPG5jj1aaH/CQt3EHiaoz9SWETYCacf5DwcmEgIGY33q/ei lLJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5j+C8IwpHirZRjbgr5ZDbwxn4e+CNKkok0KoO2xX+wI=; b=vt5sbCMeCStDiaoi4p9Pip+fm1m87avpGzreu+QBTcN6no/RKxsqjCnmVtB5FR3uAv /MBfBXJ4rbxxp1kATjSaQsSojUCgwoXeT22nKVjMSWxujuX279UeouJc0CGG/dlY0bqB bmuxlwAluQI8FHLS9g/PBi+t9V+I3nd3AMQQp3u9tmeF0b7cB+uerRZgPMIqPcTdr6ax tKn9/JwUGERKAWK+vZG/8xQ6jxzHvyiByqvy+zX5mzbBsnOyNEOUXL8tYDFPIwtH56Ny D6sMY50dyE7PikrBnJUoZJNxCgZjsdXWMwlgTKxKIuskip0SuEOGYFnofAGDzskdyrCR tMYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si5230459eje.696.2020.11.13.01.42.09; Fri, 13 Nov 2020 01:42:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbgKMJj3 (ORCPT + 99 others); Fri, 13 Nov 2020 04:39:29 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:17979 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbgKMJj2 (ORCPT ); Fri, 13 Nov 2020 04:39:28 -0500 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 1DB2F240004; Fri, 13 Nov 2020 09:39:24 +0000 (UTC) Date: Fri, 13 Nov 2020 10:39:24 +0100 From: Alexandre Belloni To: Lee Jones Cc: linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Russell King , Nicolas Ferre , Ludovic Desroches Subject: Re: [PATCH v2 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header Message-ID: <20201113093924.GI4556@piout.net> References: <20200713144930.1034632-1-lee.jones@linaro.org> <20200713144930.1034632-17-lee.jones@linaro.org> <20201112093918.GV2063125@dell> <20201112100731.GC4556@piout.net> <20201112104810.GH1997862@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201112104810.GH1997862@dell> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/2020 10:48:10+0000, Lee Jones wrote: > On Thu, 12 Nov 2020, Alexandre Belloni wrote: > > > Hi, > > > > On 12/11/2020 09:39:18+0000, 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 > > > --- > > [...] > > > > diff --git a/include/soc/at91/pm.h b/include/soc/at91/pm.h > > > new file mode 100644 > > > index 0000000000000..0fd5093f7f73a > > > --- /dev/null > > > +++ b/include/soc/at91/pm.h > > > @@ -0,0 +1,9 @@ > > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > > +/* > > > + * atmel platform data > > > + */ > > > + > > > +#ifdef CONFIG_PINCTRL_AT91 > > > > Shouldn't that be a header guard instead of depending on PINCTRL_AT91 ? > > I copied the same semantics from the header it was taken from. > > Happy to turn it into a proper header file too. I guess that would be better. How do you expect this patch to be merged? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com