Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp249066pxb; Thu, 12 Nov 2020 02:52:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7SoXpseRPgAgeM/NyQEAZNuciuELBNr51EnMjGqG4Lb5gNQWWE2QdYOjKXizmx9hh2T/9 X-Received: by 2002:a17:906:d20e:: with SMTP id w14mr28999262ejz.479.1605178333646; Thu, 12 Nov 2020 02:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605178333; cv=none; d=google.com; s=arc-20160816; b=jLc8B/FSbwk26aoK98qsLzC1xe+v153o3kx6muF9fuusGjCMo97zr0wOrXt7DZnJ1a VPLHzvurWvyDg8fu6XY0z2b/XSrhzrLDdKBbOt3vjrOQ5xOK1dXk0SqRBfV/cfQXtiDW B5r1jJoNIFhVsNmWH2IB2tqY5qXGupDT5uV3EwquWr/zGjSiKVTXW7V7cjzHd7n+xejR muXosXybWu84AIKo5AHPKWsdB5AFY+HWYvMeVSlTAofQoELeWiZyhXSCwUSL+kboWyU9 T0ZURFHKCBb8S2pdQ7EOAIpVjb2WAGzrkQn0QS5L14ekI6cRXPbMNKJ7RzU9kJRdOORD /FdA== 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:dkim-signature; bh=tPHs26tZVzjYTtDdN/JsS0EUnogdFtiSHtkC4AZzcV0=; b=V4S8qivtsKuqZjG4njZBI2KBm5i/wE7Utgn/KjuyLuQ30V6ecAWDa+8PHdlSzgi5ij Zb+vZZzjgO7KPh49GzCqzNuJ1dQxxG+PpUYFIivgJiPSijpIJfzcL3fSmxRM1yqvBjw0 UO4ZAUjXVISWjxtD7vE38GZbuwb+lqm59QT1aMnHROYeBnIHz7RCD2kRqbf6rSj2cVZb oDZ9Jue9F1otLa9XrSv5B3ySHX10Oy6yORzon+EcFryWZnSIxtbXBAhpW33bMaq6gnPc OpoA2uV7uY0Nnlr54SU2+t3i+hn5XzyDAf55ubpjDhu2BerHGllfPD9xMUZ8mhjetAxQ K3qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JbcZc2KM; 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 dx6si3387646ejb.698.2020.11.12.02.51.51; Thu, 12 Nov 2020 02:52:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=JbcZc2KM; 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 S1727920AbgKLKsR (ORCPT + 99 others); Thu, 12 Nov 2020 05:48:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbgKLKsQ (ORCPT ); Thu, 12 Nov 2020 05:48:16 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66AB6C0613D4 for ; Thu, 12 Nov 2020 02:48:14 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id o15so5485571wru.6 for ; Thu, 12 Nov 2020 02:48:14 -0800 (PST) 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=tPHs26tZVzjYTtDdN/JsS0EUnogdFtiSHtkC4AZzcV0=; b=JbcZc2KM5Zvf4uoQzgfwxcB0lbhWGxGNY9TEFLEBbD9ZCA1xtJ9YeXdFnZV67a88bq K8C2Iu/kY9bnzQb5Kpc8EVzrVmC0EL51sMYY3bpTfEr5qxC73cJHf37FAVHObafN2+rX 5uB84Zzx5SKIrijPGRPd3sa0wmukSEoyFZel+HhvAy5soadpoOws70Z/jifAm0O/0IhU t1gy7JAmL2i6JYnJUQlMDK4MzUZWvK63CEmxz5FbhwZn402GgIC31QrbVv+eQLuwzI+0 Adeg0VSAvYxXXEK+lua91QJDNezFDblMrwA8tOs9CwfPK4l7MT/f0gsPqrWg64b0wFU0 VTng== 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=tPHs26tZVzjYTtDdN/JsS0EUnogdFtiSHtkC4AZzcV0=; b=mcT57Qb7+YRfGEEQ25HodB1qDL4YDBNS/6L9nLEYcXjDzeRMKUt0VpsxuCyPXYSy4c xarr13ImJ8bPiDEx/Nd1qKL5H/fohOiITME/voVt0dhUtDBZAnpcOP6HpY0t+Eq/c4/S bTm/98Ktxqdr+yhJVDxXLf/36UCF7eqlQ/2PabIB/C4GwS0SpmBLPT0FqTvSFvYkF3AU qP852IkcSv7KBlZ0icDEJoj4Z3+A9gH+fuxlrsAcQzY1foFG07k+fK7Ngy3+jInG7lQN 3jm4bVU6DLIs0g1fZGZBWdTQUq+UZWvhp4qjQ8IFX7Dawfr7v6vgOP+LgeqUYhBbPVq0 /nuQ== X-Gm-Message-State: AOAM531UoWCDpVmxKmtVn1D9NNJhH1E8I0ECaiHJ8G5nXN4WvwhCYmKY tmOLQhKlONT6XiM426DtKGWqUw== X-Received: by 2002:adf:eacb:: with SMTP id o11mr24600043wrn.208.1605178093161; Thu, 12 Nov 2020 02:48:13 -0800 (PST) Received: from dell ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 89sm6300574wrp.58.2020.11.12.02.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 02:48:12 -0800 (PST) Date: Thu, 12 Nov 2020 10:48:10 +0000 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 v2 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header Message-ID: <20201112104810.GH1997862@dell> References: <20200713144930.1034632-1-lee.jones@linaro.org> <20200713144930.1034632-17-lee.jones@linaro.org> <20201112093918.GV2063125@dell> <20201112100731.GC4556@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201112100731.GC4556@piout.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog