Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp94816lqs; Mon, 4 Mar 2024 16:36:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWzH8HNZ6mchvc/9R9KJ/Sk9KB7K/7nKDEmiFOnSAP7LwBBrkwRDn3bxyG8X186/aZojV5ElD3zz3jgRmDCuqZWy+e9ZPey9VdKkhOMqw== X-Google-Smtp-Source: AGHT+IF/VItKUwArk+KepE4JptSkU199tWsHbyUhbqUDvhymuGl+Mgv6hxtzg4PHOoedZHRQaC0k X-Received: by 2002:a05:6358:e498:b0:17c:1bf5:43ad with SMTP id by24-20020a056358e49800b0017c1bf543admr351832rwb.4.1709598973330; Mon, 04 Mar 2024 16:36:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709598973; cv=pass; d=google.com; s=arc-20160816; b=qIFUcQRBm8+0P851Hm4Xa+mVUc2nYDgeTnfM3yDfFv3eA9MAKKSLeii8N/Om0kHd4z /lf4pB4vqzBWNeDRy7g9X3HmlPo2RFX8c6Xx2DL7Fug9NqQuIVVJSMLVcBAS+wcrLDMJ ykHQeWXJeDrWdHBNgz9ZWnpfnoVBfOX7wtYiYuRQLpi5oNQzLuG4F6XSXgKHUf8JZsCV O8d5PxeREkrbhYIVQb2Pk3VvIDOuXQ9BUemN6RWCrzX3A/hU3UxELCnW28d+ZqMtoHwJ uCb2xApFN+wIcCAF53zqABRzal/yqZWPlxBdxeR9fU1sAH4iuK9ATsuED7MlqSZaZCu6 l96g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=UwML5y2vhoh9QVMv6PqKer0cXI4igOD78GFrAVLk9MQ=; fh=QGBjNIdGVpu95nMhp36jWc8yPOu+UDCQKQZqpPCmINg=; b=lwnX4Ppds3rhBPcgjOV8yehp7qymDm9aC3obNz367S91+0Y1onSOxZoRwU87+kzYLk QebDoqeNy8h2FbdWLu+qWeAiXFwrSfaREtcoj3Id6em9vhd7QbBpZnFW+IASo6CDeUJO 8/rIgdbYW8Jd8yu6qPPZJUeoaw+YEGRl4vEUq48IF53/q+U6n5rVEHI+L/nmsPvN5xx/ km4iydOWr4Fzdn9VLLwvJ3P+UF6WqpD36ePZkRCu/VfZn4rwKRvTm3AXMcD8I+Feo7Ej x28RcbXmuJPoKbinYII8RuNte5m+eDuZnrivDM9DGa2+F9lhWqSo+fjsljHw0RcqKk3r iVMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=iJv1f3GZ; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-91458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91458-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y11-20020ae9f40b000000b007883203dbdesi1247234qkl.5.2024.03.04.16.36.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 16:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=iJv1f3GZ; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-91458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91458-linux.lists.archive=gmail.com@vger.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 138931C21E8E for ; Tue, 5 Mar 2024 00:36:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 689614C96; Tue, 5 Mar 2024 00:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="iJv1f3GZ" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 AD9547F; Tue, 5 Mar 2024 00:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709598966; cv=none; b=DW0WmxI5Tnvhyb/pp5PL4REhEo5gVy8PbALZysxEkwMKwRRsTejCABYOqGp3BWDg9EH/DgbX2lTsgoAjRig9elma6nt6+z91OnA9jJZOofF8JoPosg7Tnwstsb8OqgLLPqSePcd6uq0z5C2UyzG7QDmLxyOz7GcbrrOR9qwXCfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709598966; c=relaxed/simple; bh=UwML5y2vhoh9QVMv6PqKer0cXI4igOD78GFrAVLk9MQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=CkDO52VMvgrtEo/335SEETJu9gg87j7Zdl0jlWM5g16++jxTYWwBgQYp9Zm84fJbQyfzCixM9AhSZkmtqJn6A4JI381Dxu334p9S2GphE/SxDWB1ooFiwf6twDEUVRi4DBeQd7vytA+KdlxerAulQydUoDnablBdSVqfPGd7tnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=iJv1f3GZ; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1709598961; bh=UwML5y2vhoh9QVMv6PqKer0cXI4igOD78GFrAVLk9MQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iJv1f3GZr/p7GDoeFB+pZsZ364q4CQlAYiYSxfEmvNfLB4Gw87GIqIHKh1R2F30M4 sqrsDwyT4MupBNrTX8NAR3sFWHtL5Epk3gpkrUCFmPyzkYJA9CmJTksaa6beXbKS3z Fl+DMzFLxQvFY2e4YJiMAhvd+ktC1IRpxKDv7kEz8tGIEwnKgLAAQHe3p7I0EhVFJZ oArdiEhn/cJgn1NJA80cXbRqq45qv46aRzQXIQnig00yVq0uN25Mi/tRTdRAQCu59f KzabnInMntq+4BH18bdbKU2zMH2CdW9MFl+FZgYR5PKhEcqZ4eDGbpzjoxi22F/urg YvK4SFNifvE2g== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Tpc743tdBz4wc7; Tue, 5 Mar 2024 11:36:00 +1100 (AEDT) From: Michael Ellerman To: Christophe Leroy , Thomas Zimmermann , Jani Nikula , "linuxppc-dev@lists.ozlabs.org" Cc: "linux-fbdev@vger.kernel.org" , Helge Deller , "linux-kernel@vger.kernel.org" , "lkft-triage@lists.linaro.org" , "dri-devel@lists.freedesktop.org" , Naresh Kamboju Subject: Re: [PATCH] powerpc: include linux/backlight.h from asm/backlight.h In-Reply-To: References: <20240304095512.742348-1-jani.nikula@intel.com> Date: Tue, 05 Mar 2024 11:36:00 +1100 Message-ID: <87frx5plan.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christophe Leroy writes: > Le 04/03/2024 =C3=A0 11:32, Thomas Zimmermann a =C3=A9crit=C2=A0: >> Hi >>=20 >> Am 04.03.24 um 10:55 schrieb Jani Nikula: >>> Removal of the backlight include from fb.h uncovered an implicit >>> dependency in powerpc asm/backlight.h. Add the explicit include. >>> >>> Reported-by: Naresh Kamboju >>> Closes:=20 >>> https://lore.kernel.org/r/CA+G9fYsAk5TbqqxFC2W4oHLGA0CbTHMxbeq8QayFXTU7= 5YiueA@mail.gmail.com >>> Fixes: 11b4eedfc87d ("fbdev: Do not include in=20 >>> header") >>> Cc: Thomas Zimmermann >>> Cc: Helge Deller >>> Cc: linux-fbdev@vger.kernel.org >>> Signed-off-by: Jani Nikula >>> >>> --- >>> >>> Not even compile tested! >>=20 >> That's one of the cases that's hard to catch unless you get the config=20 >> right. >>=20 >>> --- >>> =C2=A0 arch/powerpc/include/asm/backlight.h | 1 + >>> =C2=A0 1 file changed, 1 insertion(+) >>> >>> diff --git a/arch/powerpc/include/asm/backlight.h=20 >>> b/arch/powerpc/include/asm/backlight.h >>> index 1b5eab62ed04..275d5bb9aa04 100644 >>> --- a/arch/powerpc/include/asm/backlight.h >>> +++ b/arch/powerpc/include/asm/backlight.h >>> @@ -10,6 +10,7 @@ >>> =C2=A0 #define __ASM_POWERPC_BACKLIGHT_H >>> =C2=A0 #ifdef __KERNEL__ >>> +#include >>=20 >> Thanks, but I think this should go directly into chipsfb.c. I would have= =20 >> provided a patch already, if our mail server didn't have issues this=20 >> morning. Let me try again. > > asm/backlight.h needs it for struct backlight_device > > At least if you don't want to include linux/backlight.h in=20 > asm/backlight.h, then you need a forward declaration of struct=20 > backlight_device; It's preferable for asm headers not to include linux headers (to avoid loops), so a forward declaration would be better IMHO. cheers