Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5001266rwl; Mon, 10 Apr 2023 21:59:50 -0700 (PDT) X-Google-Smtp-Source: AKy350YcAJqRS98HnP+mJrBS8jLt8Cx0WIHCM+1jXwmJ++/mq6xHSASlLMcTHiXRkvVxatrnPUzV X-Received: by 2002:a17:907:1c1f:b0:94e:ea7:4efa with SMTP id nc31-20020a1709071c1f00b0094e0ea74efamr1976289ejc.51.1681189190205; Mon, 10 Apr 2023 21:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681189190; cv=none; d=google.com; s=arc-20160816; b=zmLTGkOfhT10iQoFAAqCcHQHxV1JPVDU2YpsD2RiJH/pE1LXmaHRInVs5/i0flDuf7 ePu9A0b4iPhvJEvkwlETcmuA7+RLoVQNQ+pebv4dWWFgbJMOrP2V+mlhfffjq+k2M5Ld RUERUnLiIQPzDxA+G2nCHOoXhBAizAqv2XUuadfGvm4y0AFt6psUseFukr7gYP6yW+72 AytwmUcgPBlxLzDhsuUlzVpPBFk3WK/HcOZJsGSKpX86L2cuYta8OC+NqhHj5MA5/bXP +DTiSUUvRjmqE1mjPc3mjVya0JAMp5LWItuYbjsE0M6wyd+7K015fxoYVL7irf7uYhf8 DhkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=WdSzwCZdNIk1Z37Sc1D9XVh7arO8HT97XygbtDMgy60=; b=xhIiTu1lqhF7FBajaal6gM8PbOZdqFI7E5l/dCn3htXnFhKJKFzucdRH7Y82rhgkk7 FtGieXiIALi8eqQyGs9sNJUknF4tqLlqFykvIAKNdQwIaWrFkz34z8FcrI4H3wBcGBE4 1B/bDlnaej4+X8qABoVEXK9HPgJ5Tg1pQPxOAYHTFJGNsz5g9m0SpvD2zaGymyZroOdt 9kOrfb4iMZFzfoBAG0ImfJ7OoATOx7xSLZFQiTSs1o1IL0fm1LOISHrF2PJ990UzqszV BmwFZW9IFcvGo9DxecksFvqfuxk3P89xUUMLaIoxQrN2ubngw5dyW49mB/o6fJJPMn2V OtEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=uYMLANMP; 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=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb39-20020a170907162700b0094a83346b76si4924540ejc.772.2023.04.10.21.59.25; Mon, 10 Apr 2023 21:59:50 -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=@canb.auug.org.au header.s=201702 header.b=uYMLANMP; 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=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbjDKEiU (ORCPT + 99 others); Tue, 11 Apr 2023 00:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbjDKEiS (ORCPT ); Tue, 11 Apr 2023 00:38:18 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7975310FF; Mon, 10 Apr 2023 21:38:16 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4PwY4P6hPMz4xDh; Tue, 11 Apr 2023 14:38:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1681187894; bh=WdSzwCZdNIk1Z37Sc1D9XVh7arO8HT97XygbtDMgy60=; h=Date:From:To:Cc:Subject:From; b=uYMLANMPITzNsdWvDMXmJCKRGFyxfTh+fPL8h3ELKKWRo8qmYu4DXxXvLiVrZYlCp y+MgWLG9pF1pcR/KBJbabELnZpxroDlL0qcfz3k0occz9hs7tQqKFHiXfmmNFfo92+ zrZRIglKt1HsDpcmwJq4rCLvcG9fE8xiYYO7ERYvolZDDbeNnhosjqBg/LIDXP8N3A 7kfHSYlzXGMqa5ppxGFIMRbUo2ZNf8Pzx3tTaC0wyIh4w6zVxlLBu4XQotVasQmvGE XP9PsvpiUlk1Mc5kyayn6qQBYwZmLdnRys4FPN/48lUFGevLJcz+WmNZVdSl9TWXu8 kR9twwQnskM4A== Date: Tue, 11 Apr 2023 14:38:12 +1000 From: Stephen Rothwell To: Greg KH , Dave Airlie Cc: Jacek Lawrynowicz , Jeffrey Hugo , Pranjal Ramajor Asha Kanojiya , DRI , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the driver-core tree Message-ID: <20230411143812.11a4b00d@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/RN2rq.fb+YeY=+.0XxKESjO"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 --Sig_/RN2rq.fb+YeY=+.0XxKESjO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/linkage.h:7, from include/linux/kernel.h:17, from drivers/accel/qaic/mhi_qaic_ctrl.c:4: drivers/accel/qaic/mhi_qaic_ctrl.c: In function 'mhi_qaic_ctrl_init': include/linux/export.h:27:22: error: passing argument 1 of 'class_create' f= rom incompatible pointer type [-Werror=3Dincompatible-pointer-types] 27 | #define THIS_MODULE (&__this_module) | ~^~~~~~~~~~~~~~~ | | | struct module * drivers/accel/qaic/mhi_qaic_ctrl.c:544:38: note: in expansion of macro 'THI= S_MODULE' 544 | mqc_dev_class =3D class_create(THIS_MODULE, MHI_QAIC_CTRL_D= RIVER_NAME); | ^~~~~~~~~~~ In file included from include/linux/device.h:31, from include/linux/mhi.h:9, from drivers/accel/qaic/mhi_qaic_ctrl.c:5: include/linux/device/class.h:229:54: note: expected 'const char *' but argu= ment is of type 'struct module *' 229 | struct class * __must_check class_create(const char *name); | ~~~~~~~~~~~~^~~~ drivers/accel/qaic/mhi_qaic_ctrl.c:544:25: error: too many arguments to fun= ction 'class_create' 544 | mqc_dev_class =3D class_create(THIS_MODULE, MHI_QAIC_CTRL_D= RIVER_NAME); | ^~~~~~~~~~~~ include/linux/device/class.h:229:29: note: declared here 229 | struct class * __must_check class_create(const char *name); | ^~~~~~~~~~~~ Caused by commit 1aaba11da9aa ("driver core: class: remove module * from class_create()") interacting with commit 566fc96198b4 ("accel/qaic: Add mhi_qaic_cntl") from the drm tree. I have applied the following merge fix patch for today. From: Stephen Rothwell Date: Tue, 11 Apr 2023 14:16:57 +1000 Subject: [PATCH] fixup for "driver core: class: remove module * from class_= create()" interacting with "accel/qaic: Add mhi_qaic_cntl" Signed-off-by: Stephen Rothwell --- drivers/accel/qaic/mhi_qaic_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/qaic/mhi_qaic_ctrl.c b/drivers/accel/qaic/mhi_qa= ic_ctrl.c index 0c7e571f1f12..96db1580c72d 100644 --- a/drivers/accel/qaic/mhi_qaic_ctrl.c +++ b/drivers/accel/qaic/mhi_qaic_ctrl.c @@ -541,7 +541,7 @@ int mhi_qaic_ctrl_init(void) return ret; =20 mqc_dev_major =3D ret; - mqc_dev_class =3D class_create(THIS_MODULE, MHI_QAIC_CTRL_DRIVER_NAME); + mqc_dev_class =3D class_create(MHI_QAIC_CTRL_DRIVER_NAME); if (IS_ERR(mqc_dev_class)) { ret =3D PTR_ERR(mqc_dev_class); goto unregister_chrdev; --=20 2.39.2 --=20 Cheers, Stephen Rothwell --Sig_/RN2rq.fb+YeY=+.0XxKESjO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmQ05DUACgkQAVBC80lX 0Gzfawf/V6Ir//QkheAAJFTEKt7tmcD6f3dmgoe6LYBfJMDotCoLMV41HiUwuHwn R78oYX30+Progok1U7tY6mM0nOelwknl7DuGpmZOg7ldLsmzMDRd7wNFvQsW22t/ zSH96sNga0vEZZ1FEdtZEnAsfMZ1aYHW/NgOYYpP4sKDenYkGCIOFmm5xdBwzwr9 F/3AJVl3Fy97P3OCfm+fH2OR7wuvOBuf9U8n0pxlwjorV1jeBlajn0NeJaC10Vr/ UU6XzoZnL+06GbJGW4/sdlib9lLoQYQhN5HPxaWLwU8ehxLWSezJo5F9fPy2s9w8 BZ71ZMWxuwGu1xmxFUMVs3lfsrKfsw== =10Kj -----END PGP SIGNATURE----- --Sig_/RN2rq.fb+YeY=+.0XxKESjO--