From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBEB7C4360D for ; Mon, 9 Sep 2019 03:11:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB22121A49 for ; Mon, 9 Sep 2019 03:11:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=endlessm-com.20150623.gappssmtp.com header.i=@endlessm-com.20150623.gappssmtp.com header.b="EA0bJFIw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387406AbfIIDLh (ORCPT ); Sun, 8 Sep 2019 23:11:37 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:41573 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729790AbfIIDLh (ORCPT ); Sun, 8 Sep 2019 23:11:37 -0400 Received: by mail-qk1-f194.google.com with SMTP id o11so11680617qkg.8 for ; Sun, 08 Sep 2019 20:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ysUHgmNu9WMA8zL7iVWv/ObdOdJAcInEBYKpkc9uysc=; b=EA0bJFIwM2SjnvAUk8RI0nFyjwZcV+73V6hkW0nl/potXqj6JTUzUTyaQd7OEzizOv vyHEimncQN7YnHnfEUPp8I/UtaRujv1i5W762CvcziFum4ncZsXhYe+XQRxyw1WeLOLN rSLD8ldV0GUgjGPCvuI8Y4KehrU3PVeG49DxLr19tTb/FohzTLCBu83AEL/ZXJ2smw/L 8s3EOcTJ4h7EQuTEMeFuq4y+mUCxkUEBTC4ggjorkPNRtmxMcf76UDUkfV424/Qy9i2h Bwn92bWrujqZCt04DQmiu+pBJm03Q9wELvxVN+EtcPDS3ikIFtBmOAuQNpEsnIAorRMC 8dig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ysUHgmNu9WMA8zL7iVWv/ObdOdJAcInEBYKpkc9uysc=; b=NEhkSL+jjYx5lh7DTuA48CMyHo32bZnu2y+AklszP3c25l/A2xZXwdh5ViGGDNbUBK UVxnVOBDx6G8mJG3pQxFvZZgWFZD1qusiZkwaRt7BPbxS17ww0Fr9rfJPrPFZqVbNvdt AjfqHQ/uSq3j6q4DmwdNlri51VSWopclNwzlwbSprDvzA7IqzOGafs5RWkCnNpLAP/cE Vsl2ASp7JjpXRDAfx5LTFVB0Za64rjMJ31WYJPhFUWz1dpEPR515VQ2jlsX4vg2Z+4lF gGrBK30XiFgMA1Z9dXdIE7KDzoxO6ljj914JhsU1cun/KANM/i8oJuiYKBX099jX/NnQ MheA== X-Gm-Message-State: APjAAAWBb52wNC7nXE4P2EsLsBBgJiHNjMuDWrOUcRHwBlN6SLBQKDK/ OSKVHFxOFMB66nqtRuqCyNcV3Skc9PaqbIyObOaqwg== X-Google-Smtp-Source: APXvYqxX0B/GZlqSYxDgtH13jNbbY+d3/QJQCEQPxrTROPkHoAlfS/Qfoz+sw1btsfsESznBrLnmdvq6rUNtzvgitZI= X-Received: by 2002:a37:9c57:: with SMTP id f84mr21728192qke.250.1567998695029; Sun, 08 Sep 2019 20:11:35 -0700 (PDT) MIME-Version: 1.0 References: <20190906185231.1081695-1-arnd@arndb.de> In-Reply-To: <20190906185231.1081695-1-arnd@arndb.de> From: Chris Chiu Date: Mon, 9 Sep 2019 11:11:24 +0800 Message-ID: Subject: Re: [PATCH] [v2] pinctrl: intel: mark intel_pin_to_gpio __maybe_unused To: Arnd Bergmann Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , Kai-Heng Feng , "open list:PIN CONTROL SUBSYSTEM" , Linux Kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Sat, Sep 7, 2019 at 2:52 AM Arnd Bergmann wrote: > > The intel_pin_to_gpio() function is only called by the > PM support functions and causes a warning when those are disabled: > > drivers/pinctrl/intel/pinctrl-intel.c:841:12: error: unused function 'intel_pin_to_gpio' [-Werror,-Wunused-function] > > Mark it __maybe_unused to suppress the warning. > > Suggested-by: Andy Shevchenko > Signed-off-by: Arnd Bergmann Reviewed-by: Chris Chiu