Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp270552lqo; Thu, 16 May 2024 06:05:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUpL4PAIIHzQ6h8zCbXgX0ouT6og+hBsgix4DQ9yhaAXYsLCYR6Ouj1pcdRTjpjcZhybXTlPpq8kgB+9sPQOfJZVkh2P0z5kwxTev70AQ== X-Google-Smtp-Source: AGHT+IFoskvOaBin0uQXKvhqdXHVHafdXE/rsEkMoWfpFJQJfz0muFVg00A0TqeLwphgghQiFVrN X-Received: by 2002:a05:6870:8c05:b0:23f:eb80:2f0e with SMTP id 586e51a60fabf-24172e13214mr16679776fac.47.1715864702211; Thu, 16 May 2024 06:05:02 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 71dfb90a1353d-4df7c07eecdsi2555759e0c.192.2024.05.16.06.05.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=OOcUatqx; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-181066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 43F861C2263C for ; Thu, 16 May 2024 13:04:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1A82147C72; Thu, 16 May 2024 13:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OOcUatqx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6C6B1474C6; Thu, 16 May 2024 13:04:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864680; cv=none; b=psc9HerjxmB+Ulo0JFfOtEYsnIQgZtBhHBOXbVKq1jH1mVukMTzpaykw+D6DroyAXVXUXEYMMLuwE9901x4vh0dxgdTle0CXNnRg2PA2NzcI8crqf/1hwrZYQSC6uh9454q2HcWzAM4/UY9K4Gj7F5R170UhWxivtE55BEvanT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715864680; c=relaxed/simple; bh=lANF33hHhvZlC5k66NZieznEujRydEkMTcg2oIOZf+0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ULWsLef5egD39ezsKePMUR4til+lFmmMijTEgfe3cd2KSgD/68p792AvMZEa9yNIpFl1/hk4sG+q4QUdf7FRHUHT7eH/HrdoYbpJ8JLon0SzEUI5uRdEcVPx9rtdcmVsXGBUWNEd4rqNCqass5q8FuWwwxh/+PK0hIjPXZH5RA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OOcUatqx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AD1CC2BD11; Thu, 16 May 2024 13:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715864679; bh=lANF33hHhvZlC5k66NZieznEujRydEkMTcg2oIOZf+0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OOcUatqxoX1Mo/CcGPvfT3OJXCa2Q0HX4obZINi03Qk2mH4IhDoJiqR2g8tNYKOVY roHwMxJrBJfDzHxwQh++0N5i4M0yNC+ftPOLBCi9GJpdYxiINpufLKQTrONeQOYu+/ btnFmOMT25BdDPUu3s15ZVw7IEsvgQ+RvZ840YzguGlF7TPpXhBqltjpSff8CQArOZ jVMFoAMzViKf5HQFrE/jQMD0F5/wTsRgXChGEa4zpf4NpbY8KDrSN3LhCgGOmaukCZ o5gCkyDdTp4dJ60JHbD8ovfstF3d29iwhCSxCoXxBp7nW9KkDH5Uif0LNlI2cbxBuH CsKDkXblzkkwA== Received: by mail-oo1-f54.google.com with SMTP id 006d021491bc7-5b2f4090ac9so40553eaf.2; Thu, 16 May 2024 06:04:39 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWiLvnBCNC9tnVNGcbCxfkrA3UwXrwUtRXV16efljod9xzkRP8SJ++X6OZj17LbyS2MwAMVk4/6U6iCoNoo9BtFNXqwW/sxRlXo9RuNsZ+NRQ5bVloFIxHJwUD0M3kCY8wsrDWbBUo23VpYq4C9FBdf/rq4RBP/COqzqoMMxHoW7NouW9F+LRlWNol3rcMkcp3zPoWLX7CDtFmnNW/xluNpYg== X-Gm-Message-State: AOJu0YwTpYnPh000f9BZaXxtwO25jAD7hTBkwFtoSOGiLgipEaHbK0WO ISU53E+DyPOIAjQVT14mC7nkDRC0quP29yoqH63dU/QEPYQdQ0ytTr5cULDobt1VfwUj9lkioWH /CZV8ivtvF7uQZ85mNIXKncPZ2PM= X-Received: by 2002:a05:6870:2153:b0:22e:dfbc:4aae with SMTP id 586e51a60fabf-24172a7e835mr21408284fac.2.1715864678677; Thu, 16 May 2024 06:04:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240516124317.710-1-tzimmermann@suse.de> In-Reply-To: <20240516124317.710-1-tzimmermann@suse.de> From: "Rafael J. Wysocki" Date: Thu, 16 May 2024 15:04:27 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ACPI: video: Fix name collision with architecture's video.o To: Thomas Zimmermann Cc: rafael@kernel.org, lenb@kernel.org, arnd@arndb.de, chaitanya.kumar.borah@intel.com, suresh.kumar.kurmi@intel.com, jani.saarinen@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Hans de Goede Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable CC Hans who has been doing the majority of the ACPI video work. On Thu, May 16, 2024 at 2:43=E2=80=AFPM Thomas Zimmermann wrote: > > Commit 2fd001cd3600 ("arch: Rename fbdev header and source files") > renames the video source files under arch/ such that they does not > refer to fbdev any longer. The new files named video.o conflict with > ACPI's video.ko module. And surely nobody knew or was unable to check upfront that there was a video.ko already in the kernel. > Modprobing the ACPI module can then fail with warnings about missing symb= ols, as shown below. > > (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_= unregister (err -2) > (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_= register_backlight (err -2) > (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol __acpi_vide= o_get_backlight_type (err -2) > (i915_selftest:1107) igt_kmod-WARNING: i915: Unknown symbol acpi_video_= register (err -2) > > Fix this problem by renaming ACPI's video.ko to acpi_video.ko. Also > rename a related source file and clean up the Makefile. If you insist on renaming, rename it to backlight.c (and backlight_detect.c for consistency), because that's what it really is about. > Reported-by: Chaitanya Kumar Borah > Closes: https://lore.kernel.org/intel-gfx/9dcac6e9-a3bf-4ace-bbdc-f697f76= 7f9e0@suse.de/T/#t > Tested-by: Chaitanya Kumar Borah > Signed-off-by: Thomas Zimmermann > Fixes: 2fd001cd3600 ("arch: Rename fbdev header and source files") > Cc: Arnd Bergmann > Cc: linux-arch@vger.kernel.org > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > --- > drivers/acpi/Makefile | 5 +++-- > drivers/acpi/{acpi_video.c =3D> acpi_video_core.c} | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-) > rename drivers/acpi/{acpi_video.c =3D> acpi_video_core.c} (99%) > > diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile > index 8cc8c0d9c8732..fc9e11f7afbf7 100644 > --- a/drivers/acpi/Makefile > +++ b/drivers/acpi/Makefile > @@ -84,7 +84,9 @@ obj-$(CONFIG_ACPI_FAN) +=3D fan.o > fan-objs :=3D fan_core.o > fan-objs +=3D fan_attr.o > > -obj-$(CONFIG_ACPI_VIDEO) +=3D video.o > +obj-$(CONFIG_ACPI_VIDEO) +=3D acpi_video.o > +acpi_video-objs +=3D acpi_video_core.o video_dete= ct.o > + > obj-$(CONFIG_ACPI_TAD) +=3D acpi_tad.o > obj-$(CONFIG_ACPI_PCI_SLOT) +=3D pci_slot.o > obj-$(CONFIG_ACPI_PROCESSOR) +=3D processor.o > @@ -124,7 +126,6 @@ obj-$(CONFIG_ACPI_CONFIGFS) +=3D acpi_configfs.o > > obj-y +=3D pmic/ > > -video-objs +=3D acpi_video.o video_detect.o > obj-y +=3D dptf/ > > obj-$(CONFIG_ARM64) +=3D arm64/ > diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video_core.c > similarity index 99% > rename from drivers/acpi/acpi_video.c > rename to drivers/acpi/acpi_video_core.c > index 1fda303882973..32bf81c5773a4 100644 > --- a/drivers/acpi/acpi_video.c > +++ b/drivers/acpi/acpi_video_core.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0-or-later > /* > - * video.c - ACPI Video Driver > + * acpi_video_core.c - ACPI Video Driver > * > * Copyright (C) 2004 Luming Yu > * Copyright (C) 2004 Bruno Ducrot > -- > 2.45.0 > >