Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4008934rdb; Wed, 30 Aug 2023 12:29:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEX4+ardnACLBEFmQLOp8jEwEY63N7U6lhB91iJXt0ZSbHNX/8BLXHp5rCSBy4nHhqUWWRv X-Received: by 2002:aa7:8883:0:b0:68b:fb93:5b48 with SMTP id z3-20020aa78883000000b0068bfb935b48mr3693371pfe.18.1693423773480; Wed, 30 Aug 2023 12:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693423773; cv=none; d=google.com; s=arc-20160816; b=Z4vmdVsFDpqyK4RfC3hdkw/AvYexCEO7dd0kjo594HKRTLNx720k7ZfFBPZNMgv97b dfXNjaqkT3z4+nlZLKVHAtjX94IGWfpDwgkKhxSCBCtjldXR7bjxbTVRYfjfazbsEm9N J8Dij7HNpjB18M5/Z1RHwTJA4x5TVU2a7gUVV55CUHEolTiVmI0q6ajost3E5qHkyofi hKUWsDpkmH6TzZG8ZJN/Ozdg4U8gBAbryLc4PYL1UD5v2AOT1KlOdVb8jzyRlky0x6ln l6Ocn/ce1C4FFc4TFFjWLRTnVEyIMlUmL5HpHBdSwN/LLXntbuQMNdj2LS8PkDH3VTgX o4LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nY6mVvv6rW6BhL4MqzQFYP/NvGfCvBh5V3UfYUMt3Qc=; fh=fv9I9pLLhl+FguqDXqr0U3K09DBL8+tgBtDkAi83nWw=; b=CUlBk4UW5AbKsyhHJFnnjqeQUPDxPcNjGY1Ro5rQsAXki1Joclhs+GUMx8Evh/5u0g 5uCwGahpDxiUQes4UX8lIyBqKnPOxF2HRIvRESWM7zRcybQNAmb6jPduW/5wH1zoPnJB sNMQee1R4wwbMeyGo1nzO7nYl3sCv+w4yChBISUufp1Bjdt/s0yz8jxImj/OqB1dPVq4 NgB7yjzvfj684vzOwnNz4Ju2gmMFnOz4rOqUKA4YQpWN7h6n1NJlG+78IzCCnHR+yA/a MT8fCxE0d784e6E8Xo0Vpdm9zwDyDuN8Ciw8EX6d3HmN0w1zyHhxEI+8dF5e3tZ7Zxox F53Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=STvijXg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s69-20020a632c48000000b00565f22f2347si12314302pgs.319.2023.08.30.12.29.17; Wed, 30 Aug 2023 12:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=STvijXg8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244406AbjH3TVY (ORCPT + 99 others); Wed, 30 Aug 2023 15:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245273AbjH3PBQ (ORCPT ); Wed, 30 Aug 2023 11:01:16 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92FE1A2 for ; Wed, 30 Aug 2023 08:01:13 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37U7gEVE026115; Wed, 30 Aug 2023 10:00:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=PODMain02222019; bh=nY6mVvv6rW6BhL4 MqzQFYP/NvGfCvBh5V3UfYUMt3Qc=; b=STvijXg8VhtiCnXcKhtViWah2cFCb2w hipYvB/Xhno62yxDTxCb6e3aVIsWXxLZUZNFWT/GD+/zdGkhZ788C2Xvwo/4NxEL JsNf1URvi2HaZGcLV6rdAdmltF274DDr7/rqu4ij5nO9oQsC5DTcPlO/jIa49Brn FLx23DwLcoKNY3ruu0L+X4ZdR1wwGVKWO3J7u3B3nWUyzvUIb+IK2IjCje5yTbC5 kklzbWUq+RqjJ6WQVrGMBxwg/RRo3hGmC2lVkhwA6F0xsNCjYogRtZp5H732XwXp aD63dgYXQAXq2MbOa6p0zdraSuSbmf6zOxPE6/bepdaruNFaVWbR1XA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3sqesyd38v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Aug 2023 10:00:40 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 30 Aug 2023 16:00:38 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 30 Aug 2023 16:00:38 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E6F183561; Wed, 30 Aug 2023 15:00:37 +0000 (UTC) Date: Wed, 30 Aug 2023 15:00:37 +0000 From: Charles Keepax To: Takashi Iwai CC: "Sudip Mukherjee (Codethink)" , James Schulman , David Rhodes , "Richard Fitzgerald" , Lee Jones , , , , Linus Torvalds , Subject: Re: mainline build failure due to ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver") Message-ID: <20230830150037.GW103419@ediswmail.ad.cirrus.com> References: <87cyz4he2u.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <87cyz4he2u.wl-tiwai@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: NK8Mq90hyYK6qZ7mtTDHX5VrG2uIuS3d X-Proofpoint-GUID: NK8Mq90hyYK6qZ7mtTDHX5VrG2uIuS3d X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 30, 2023 at 03:09:13PM +0200, Takashi Iwai wrote: > On Wed, 30 Aug 2023 13:29:57 +0200, > Sudip Mukherjee (Codethink) wrote: > > > > Hi All, > > > > The latest mainline kernel branch fails to build alpha, csky and s390 > > allmodconfig with the error: > > > > drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function] > > 1138 | static int cs42l43_runtime_resume(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~~~ > > drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] > > 1124 | static int cs42l43_runtime_suspend(struct device *dev) > > | ^~~~~~~~~~~~~~~~~~~~~~~ > > drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] > > 1106 | static int cs42l43_resume(struct device *dev) > > | ^~~~~~~~~~~~~~ > > drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] > > 1076 | static int cs42l43_suspend(struct device *dev) > > | ^~~~~~~~~~~~~~~ > > > > git bisect pointed to ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver") > > > > I will be happy to test any patch or provide any extra log if needed. > > Adding __maybe_unused for those PM functions should work around it, > something like below. Could you check it? > If it's confirmed to work, I'll submit properly. > > This is probably the correct fix: https://lore.kernel.org/lkml/20230822114914.340359-1-ckeepax@opensource.cirrus.com/ Just waiting on it to be reviewed. Thanks, Charles