Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B35C8C76196 for ; Tue, 11 Apr 2023 09:55:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14EA610E02A; Tue, 11 Apr 2023 09:55:26 +0000 (UTC) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D4B710E02A for ; Tue, 11 Apr 2023 09:55:24 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-2ef70620b9dso594270f8f.1 for ; Tue, 11 Apr 2023 02:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1681206923; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=qjwT/tg0Il9N/eZxuQXGAWsNmLhCbQOBOXoq9lsOf/U=; b=LhR2tDt6FPotjaySQ6Sf6tz9AG58+vuUcuM1yAZgHkm1xiEQJEHBRofim1m6IDozXv VI57GGn+P7smvIJg1ibAhWImNuu+0ChlA3+Q/1cNs3y/ZP+RcJBoiDNuZfGklAtqnP9v JkVBhuPRD66yy7XkwBawBfXNfPQUiNNhIMddg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681206923; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qjwT/tg0Il9N/eZxuQXGAWsNmLhCbQOBOXoq9lsOf/U=; b=yqxTFGrmT0NRjQFiCQOnqibI3gE/Ny/FtzvE319nPtKDx55L0lOhS8jbrF4Aj8XCba gRSofoQeqCfUkwDS0ve54GDyuKMkq3W1wy8riDqS3bY2qhFfIlGmbhzCaAfDd7q8XsFe rqLDpDjH/HuhICmxJmq/PgtxXH63YcgMz04MeEMM/O+u1vXGp+XAWjl83NM/dYiVPdvk fJ9wgW8IUXNMe41Df1W4JPFjYWiYRnnFUsQ9awrKPdz3x455n2Ik9Q2jWbWUmZRCHSCA 2vBqwvEOggA/AIAlJNeF5NyHd1p9nthzQXfvdahr7xTii2W0dg3nebKj8WgU3zuRY2Zq u1vA== X-Gm-Message-State: AAQBX9dZUV5znHaM5McevF+N+kCVS5qAUby/5ww2XF/8dhzPOcYJ7V++ aBCSYFRrQl23u0G+t11xkcrLfw== X-Google-Smtp-Source: AKy350ZXTk4qisD5Dt7crpTUypd1u94LzlFsvk6oecu9nShltuKwhWFouDQ/FBGSmrfdK/RUJbOObw== X-Received: by 2002:a05:600c:1991:b0:3f0:80fe:25be with SMTP id t17-20020a05600c199100b003f080fe25bemr6991447wmq.3.1681206923005; Tue, 11 Apr 2023 02:55:23 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id iv11-20020a05600c548b00b003ed29189777sm20723241wmb.47.2023.04.11.02.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 02:55:22 -0700 (PDT) Date: Tue, 11 Apr 2023 11:55:20 +0200 From: Daniel Vetter To: Stephen Rothwell Subject: Re: linux-next: build failure after merge of the driver-core tree Message-ID: Mail-Followup-To: Stephen Rothwell , Greg KH , Dave Airlie , Jeffrey Hugo , Linux Kernel Mailing List , DRI , Pranjal Ramajor Asha Kanojiya , Linux Next Mailing List , Jacek Lawrynowicz References: <20230411143812.11a4b00d@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230411143812.11a4b00d@canb.auug.org.au> X-Operating-System: Linux phenom 6.1.0-7-amd64 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jeffrey Hugo , Greg KH , Linux Kernel Mailing List , DRI , Pranjal Ramajor Asha Kanojiya , Linux Next Mailing List , Jacek Lawrynowicz , Dave Airlie Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, Apr 11, 2023 at 02:38:12PM +1000, Stephen Rothwell wrote: > 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' from incompatible pointer type [-Werror=incompatible-pointer-types] > 27 | #define THIS_MODULE (&__this_module) > | ~^~~~~~~~~~~~~~~ > | | > | struct module * > drivers/accel/qaic/mhi_qaic_ctrl.c:544:38: note: in expansion of macro 'THIS_MODULE' > 544 | mqc_dev_class = class_create(THIS_MODULE, MHI_QAIC_CTRL_DRIVER_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 argument 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 function 'class_create' > 544 | mqc_dev_class = class_create(THIS_MODULE, MHI_QAIC_CTRL_DRIVER_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 Thanks for the fixup. Since Dave is out I've made a note about this in my handover mail so it won't get lost in the drm-next merge window pull. I don't think we need any other coordination than mention it in each pull to Linus, topic tree seems overkill for this. Plus there's no way I can untangle the drm tree anyway :-). -Daniel > --- > 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_qaic_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; > > mqc_dev_major = ret; > - mqc_dev_class = class_create(THIS_MODULE, MHI_QAIC_CTRL_DRIVER_NAME); > + mqc_dev_class = class_create(MHI_QAIC_CTRL_DRIVER_NAME); > if (IS_ERR(mqc_dev_class)) { > ret = PTR_ERR(mqc_dev_class); > goto unregister_chrdev; > -- > 2.39.2 > > -- > Cheers, > Stephen Rothwell -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch