Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp2026113imm; Fri, 6 Jul 2018 10:27:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcVJhOENK9clyVWt1InEdy0End8cU/UpdaB8V75EXjeNTzoT1myoZ9zYzauS8AFQVCptzP3 X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr6664933pfc.56.1530898068103; Fri, 06 Jul 2018 10:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530898068; cv=none; d=google.com; s=arc-20160816; b=c/MxUIsR3ixsB3yQXS8GNSo8uEYTvlg/9ilbvsNrxHf3B0LHM6J4rIqwwhhgSEoiP6 GcC9ExiNv6riySWl30SSKy53YtboyYKuJNXyER3d4M9YvfnQSC9ey2gRx3CB6tcn/TVd XSoYJl/bRsGc3rj440fb4Z9qVCtr73fdqYFfTVs3Y5LZS1EeqkPAu926Se2rVCRPKy2q XbP8EnS8OzJU1et2qE1kXVlUimmnnK8+X0c4v+LN5PCw7/MwtelvPX6AwufoHbI1WHd3 iUk9Khe8FPcw//lEAh/yi21/j6heLgi6mmdmXT2dmPqY04FNDC6vKfW1068JDMLf1qFg KaXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:subject:from :dkim-signature:arc-authentication-results; bh=KVSGAMk8PzYf2xqSo1Ib/l/kZA0cXfIVD0uMzjSioaY=; b=txgiN3TurzjU66OQOqJ7+L84OZc+xxXkvXJzZ+GPxeGhYWCUCizBwL7rBlzR+HQTYw EDpOSgRhDmHIX6htesbkikLqG+DS4SzZyWMoem4rotmtGqQKh6ApMQ2OtQElHNQOFKu+ ZTA8nqisYnXifgRoXMBsdv4jJxEDOFgBXE7mmr6xbMA1N+USiENFgslFIRMRhn1eVGPY VrGjKQIlEXNKklwjVirNtUBMLyEcZoEAVgfl0veBPG5YC58aNGCX2Y4d0Rw6rNQPcRDu AkeAX5vAJGx2bSh8Ct43R+s6YveJ0GCKZWlFbvBrqX6cKvrZ4lbnKX+8aFWWpro4wxf/ EnTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=h6vwmyL7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23-v6si2792241plo.354.2018.07.06.10.27.33; Fri, 06 Jul 2018 10:27:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=h6vwmyL7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933881AbeGFR0q (ORCPT + 99 others); Fri, 6 Jul 2018 13:26:46 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:60294 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932834AbeGFR0p (ORCPT ); Fri, 6 Jul 2018 13:26:45 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w66HOO9i162594; Fri, 6 Jul 2018 17:26:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : subject : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=KVSGAMk8PzYf2xqSo1Ib/l/kZA0cXfIVD0uMzjSioaY=; b=h6vwmyL7L+C+kNs702BNQFa0O7t19DC13ZVtX+mp2RhqDxQhvKPYzzSp8R3hhrtfdBJT khuN0Ues1w6wmT79jObkKSEkVo+poRGN1ZTo7oV/UExRAtzqoHqI1Z8KMB8emBXnlNhS U36+ar4gC7nvzwCeBA3QjWvThWKlysafpwBBbqtWX88bgH+leXu2/wYi0P7m0uCd6S1N noqafdkz65RmzzGQ0doC8ZpiXkzfao6f08cStyFiENkrV2N4ZcabFZ3wbvN2g/6pf4gG aO+Eblxk4Zl3KdKFS1Wrjsg+XzdogP/mufZpZG9M08nsxhA9szTgI9+5igT6uoWT1wGw kA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2k0dnjtj82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Jul 2018 17:26:24 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w66HQOYV017633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Jul 2018 17:26:24 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w66HQNRI026183; Fri, 6 Jul 2018 17:26:24 GMT Received: from [10.209.243.127] (/10.209.243.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Jul 2018 10:26:23 -0700 From: "santosh.shilimkar@oracle.com" Subject: Re: [PATCH] soc: ti: wkup_m3_ipc: mark PM functions as __maybe_unused To: Arnd Bergmann Cc: Santosh Shilimkar , Keerthy , Dave Gerlach , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20180706123651.2792927-1-arnd@arndb.de> Organization: Oracle Corporation Message-ID: Date: Fri, 6 Jul 2018 10:26:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <20180706123651.2792927-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8945 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=633 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807060193 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/18 5:36 AM, Arnd Bergmann wrote: > Everyone gets these #ifdefs wrong, leading to another warning here: > > drivers/soc/ti/wkup_m3_ipc.c:547:12: error: 'wkup_m3_ipc_resume' defined but not used [-Werror=unused-function] > static int wkup_m3_ipc_resume(struct device *dev) > drivers/soc/ti/wkup_m3_ipc.c:539:12: error: 'wkup_m3_ipc_suspend' defined but not used [-Werror=unused-function] > static int wkup_m3_ipc_suspend(struct device *dev) > > The easiest way to get it right is to remove all the #ifdefs and > let the compiler drop the unused functions silently after we > mark them as __maybe_unused. > > Fixes: 7a872b6fb7fd ("soc: ti: wkup_m3_ipc: Add rtc_only with ddr in self refresh mode support") > Signed-off-by: Arnd Bergmann > --- Applied. Thanks Arnd !! Regards, Santosh