Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp73648ybt; Tue, 30 Jun 2020 15:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhdjJ22E0XmkLViyXPL++Uagr5Lf6lPCCsFN3ZGkcwOQ/at4oqLrwwkCnyZsE/pBGSyP45 X-Received: by 2002:a17:906:1187:: with SMTP id n7mr15193208eja.161.1593554478464; Tue, 30 Jun 2020 15:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593554478; cv=none; d=google.com; s=arc-20160816; b=RS+PFGGzbpbc6aXoUXbgWRzlj/Vg1KgF+6yttX/xd0xQVN0iIWG6GC4bWWnqaEFhPL zhWwFJGAVkJyjA9hdU1+zaSMYkIax9yEw+dQ7dkWaPOXTwyJg3z6Rjkn++9ReZoXuEWv wfjWywjUy0+hMopjiTBRzD4m4iyO2K+hFxdDAEWto0Hfv5y82KdCYSYcE6sdm27ObWyT yaCB04EDJFBtJq/Z5xBEqd6MUOvDWXCJpGwz7mVv/o/dp2ZGuKp2QcQNq6KWOUL3XVXw mB7jGhTUz8KZnYvaHRpoKbJuvKos8QeglVl0yMV0dwRNtnZQ8zqkrfv+CXm4kvT+SuDw Zuqw== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TztK3Rxr7Fn5cSwLph8w89UZSXGdiaGuD8YdgAZBLhc=; b=WFdpohKre9SQvDYvloZ7IpM/a/P7q1NVuObuMHg0n4KD+eDYpBeuw6NIaLatQPZ79w RnAb7OUW+aUXp269c/sCv47vfDv2OeywJaxGiTLr4h8iEJy28J4ng5T0l/ldY2R5Hr/a FSkeJ87RXyuOY55buZWMB87Z4SzdVz8F1rnNsxa/kMi+8ef/fSD8fwsdZHBr0bGPXA2R aZ6JNkTeRJpj1VUOiOL4UXKSMYJzJuWUXqwBlZN+neLz/9ouSVw+gyZzwKWd+40Cyr3T tZb2A9kXUaQFx+BkYB6KERQ1fQOR5oNgzNzjVNvTGU3HHomgzxl21JWqioKSH/BkTch4 VY7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oQ+3Bpe1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si2508251ejf.344.2020.06.30.15.00.55; Tue, 30 Jun 2020 15:01:18 -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=@gmail.com header.s=20161025 header.b=oQ+3Bpe1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbgF3VIE (ORCPT + 99 others); Tue, 30 Jun 2020 17:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbgF3VIE (ORCPT ); Tue, 30 Jun 2020 17:08:04 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC70C061755 for ; Tue, 30 Jun 2020 14:08:04 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id j1so9951581pfe.4 for ; Tue, 30 Jun 2020 14:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TztK3Rxr7Fn5cSwLph8w89UZSXGdiaGuD8YdgAZBLhc=; b=oQ+3Bpe1J49+YLFni4XKFQ3sa+QK/5kDOZgXHaTp/mNo/nfT4Jl8WEoDZoGiqe2yqY ztdhanr9s4Em/BqMGX5oakTrwq22JKROPHNQHFkPnhIUEMxk3eg1TQViyJtSnP5gEcmC NHLbYmEGMn9WmX3NI2dl+MGasn+a6NsvaEl5/w0gyCrQmWIq6SbbNKalnU08ZxlgE5Fm vuZ4lT6Q0V/jBEFPYU+2Eh04WgRyaxmAgtU7zBejXK3+O0bNACuLgAAzHfIeFFlPA89s 5PMCVE2hyQhbSCnqR3L++ETZb7lAJ4ZhydHlk0E5mQCGnZaxHA8Mm3QIj//j3xKCBD7h 4ZiA== 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:in-reply-to; bh=TztK3Rxr7Fn5cSwLph8w89UZSXGdiaGuD8YdgAZBLhc=; b=mZXPCgfIJctAPvHe+R9WgfJ4PlKmHenxrS7JtW2mytJED7VR9/9/wwxrwGRBcRMVie 5RPy4UFYoUiDt4fDN4c9MdsqT52x/mfo6TIQMTEzFlVXutFNksRz8FTeUw7eIE2Pk67u fdE9XhYyENUIh9LQ/WK1EkIUGaiphYJAzTQMpqC171tRqdevEEcSvyJE4rZHZL1e+8co CIcq5kriwpa7t3t8sgUYK3omf9WcAuWmfpw8u82vbLPYHOxi0BOWJ6ign0+Ao4KLJ3wO /ozpJiGT5cNTHf3kXgqgW7sO+BY1UsnzLDpkfv4cptgDKY7G4a8L5vbxhcwU1lbU/vr8 QgKQ== X-Gm-Message-State: AOAM530iAmgoWizcTzrul/KGMeoNpMF1y74R8/lc51nlXkY+RGDZRSE0 cCUqbbpN5c53038TjrTrc7g= X-Received: by 2002:a65:67d0:: with SMTP id b16mr2083343pgs.60.1593551283634; Tue, 30 Jun 2020 14:08:03 -0700 (PDT) Received: from ubuntu-s3-xlarge-x86 ([2604:1380:1000:7a00::1]) by smtp.gmail.com with ESMTPSA id s15sm3548300pfm.129.2020.06.30.14.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 14:08:03 -0700 (PDT) Date: Tue, 30 Jun 2020 14:08:01 -0700 From: Nathan Chancellor To: Aisheng Dong Cc: Jassi Brar , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Anson Huang , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] mailbox: imx: Mark PM functions as __maybe_unused Message-ID: <20200630210801.GA3920527@ubuntu-s3-xlarge-x86> References: <20200623010403.517691-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 02:14:05AM +0000, Aisheng Dong wrote: > > From: Nathan Chancellor > > Sent: Tuesday, June 23, 2020 9:04 AM > > > > When CONFIG_PM and CONFIG_PM_SLEEP are unset, the following warnings > > occur: > > > > drivers/mailbox/imx-mailbox.c:638:12: warning: 'imx_mu_runtime_resume' > > defined but not used [-Wunused-function] > > 638 | static int imx_mu_runtime_resume(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~~ > > drivers/mailbox/imx-mailbox.c:629:12: warning: 'imx_mu_runtime_suspend' > > defined but not used [-Wunused-function] > > 629 | static int imx_mu_runtime_suspend(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~~~ > > drivers/mailbox/imx-mailbox.c:611:12: warning: 'imx_mu_resume_noirq' > > defined but not used [-Wunused-function] > > 611 | static int imx_mu_resume_noirq(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~ > > drivers/mailbox/imx-mailbox.c:601:12: warning: 'imx_mu_suspend_noirq' > > defined but not used [-Wunused-function] > > 601 | static int imx_mu_suspend_noirq(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~ > > > > Mark these functions as __maybe_unused, which is the standard procedure for > > PM functions. > > > > Fixes: bb2b2624dbe2 ("mailbox: imx: Add runtime PM callback to handle MU > > clocks") > > Signed-off-by: Nathan Chancellor > > Thanks for catching this. > > Reviewed-by: Dong Aisheng > > Regards > Aisheng Thank you for the review :) These warnings were introduced by a patch in this merge window, it would be nice if this patch could be fixed up as a fix for that but I understand if it is too late for that. Cheers, Nathan