Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp247920lqs; Tue, 5 Mar 2024 00:11:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMqZvSlQ8KL6SBvGNzoLZc45pXeuZs91m4zOyp378evreeiUHg7cJcPk4pXRFMKAOGIVt9bCbjtem68j04cqhJhUcSJVxAqXCqH5mIwg== X-Google-Smtp-Source: AGHT+IGgeLvGkCd+yo97NDLwG6POmMV4Vl6fCZWHMYa+YbOkTHhkXkKUwVcjcDku7nckpDCLp/DP X-Received: by 2002:aa7:8314:0:b0:6e6:2017:284e with SMTP id bk20-20020aa78314000000b006e62017284emr4515671pfb.1.1709626310955; Tue, 05 Mar 2024 00:11:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709626310; cv=pass; d=google.com; s=arc-20160816; b=cUjeY3JeWAhMX2dXoeRlp+YJU1F1du2jOE/H36e91gS6IP9HJzpEGkFpVlDERMKjxL vpqWx+4N+VgXeOaUdFxppAPO3ZJ4uIJM4Xpf2uA2A1NjH6nwEp1fgzJ0EOXl7KjyttHL wKPkZMb9O7RtvNyn7CQlWR/dPdp8nC9q+feFyQzP7WMRhdxlhfRK1imNA9LtnGOtoive uY6wnc+9yMVjvsEhMHh3w0lw9LhHgTVLKDAs/UH1eZ85NKoJjAFDbGTJgflPgZ+0cHR6 vy28YSebMjbuSnrJU7oKtxdtXS9uxaq8+9tVkeK2zKslKnTl+13H+x23v6tBOqEo7N8U BFbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=Ou4ipu4JvLMwKiY+NknYCGA7e1SfwwKgdwKwWQ4k/so=; fh=Jdb5cdfr+3Dj9Mwvo+9A3PCoc7je0aASDiNMN8q1EYU=; b=GFM5M18SrClumWrU20DaOX4vmPIqIv/D6yJ+bF24EKQnb68zkkQOdBGoQPtvWwsvJq flnfvQR1CgHcgPx6BNXSLio2QNfOh9G0oVlyFpk6V50MqqotMjVPrLDnto34Gntdau2l vaRLvQZngjxt4+oIZQJO02aqfKCMIeFstyRTxQVsq237wQXsX9lHUggscFv8L+JMgRyJ nY66rR0+KqkAeKQVSCTsEDveWGx7sxbNKlyLWfO1mUPCQvYtr3WE72OE/sP4GxYAAyOV 7UKEI/tyekHMFimQ7H3n4PqXM7k9ITW0dDmyTgToeQDWlTCmNJ7k81wl+wa3BEOeDl+f kxdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-91866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b11-20020a056a000ccb00b006e5c6f03fa7si7136556pfv.3.2024.03.05.00.11.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:11:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-91866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AC943B20AC2 for ; Tue, 5 Mar 2024 08:09:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F5AB7F478; Tue, 5 Mar 2024 08:09:47 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64A3C7EF10; Tue, 5 Mar 2024 08:09:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626187; cv=none; b=bJovsEwq+b8EfI1t9m1OkUcF6WiTOhBdF4z8ycojIyAcJYiJtw1KIITk4F4+fi+zzqhljA7yYoEKj/kyFJcPqY7YGPusguqAhpKnDoL1NS/A68saa4fhqZfnMgkfCmQwsb+umrIBEsiu7JgEzY8OsX56zkJRwJDp9+UYmkLTrGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626187; c=relaxed/simple; bh=qkrnG6n1PL95Lr2YnQjdMv4heNtX82wlLYoLFbdR3fA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=naHGjh6f+AJ0WYHBl4g5Hl9ocvJZlfQyno0qLpBEafYHkeIOshFYA84aIVjljBDDOFf7HCFXQPzNuaidVE5rYFufsnuUawy2jYQ1SLHsCjrbyQhe4ctY/rqB8WFPqSbr1316oQ8KVdRYTwoQLhgqOZ6PcB5tgviCKSZq5lMikVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (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 smtp-out1.suse.de (Postfix) with ESMTPS id A7E56226E7; Tue, 5 Mar 2024 08:09:43 +0000 (UTC) Received: from imap2.dmz-prg2.suse.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 imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 5917713A5D; Tue, 5 Mar 2024 08:09:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id j1RKFEfT5mXCUwAAn2gu4w (envelope-from ); Tue, 05 Mar 2024 08:09:43 +0000 Message-ID: <01d39b0d-ce72-4daa-8628-f47e031af5ca@suse.de> Date: Tue, 5 Mar 2024 09:09:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powerpc: include linux/backlight.h from asm/backlight.h To: Michael Ellerman , Christophe Leroy , 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 References: <20240304095512.742348-1-jani.nikula@intel.com> <87frx5plan.fsf@mail.lhotse> Content-Language: en-US From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= xsBNBFs50uABCADEHPidWt974CaxBVbrIBwqcq/WURinJ3+2WlIrKWspiP83vfZKaXhFYsdg XH47fDVbPPj+d6tQrw5lPQCyqjwrCPYnq3WlIBnGPJ4/jreTL6V+qfKRDlGLWFjZcsrPJGE0 BeB5BbqP5erN1qylK9i3gPoQjXGhpBpQYwRrEyQyjuvk+Ev0K1Jc5tVDeJAuau3TGNgah4Yc hdHm3bkPjz9EErV85RwvImQ1dptvx6s7xzwXTgGAsaYZsL8WCwDaTuqFa1d1jjlaxg6+tZsB 9GluwvIhSezPgnEmimZDkGnZRRSFiGP8yjqTjjWuf0bSj5rUnTGiyLyRZRNGcXmu6hjlABEB AAHNJ1Rob21hcyBaaW1tZXJtYW5uIDx0emltbWVybWFubkBzdXNlLmRlPsLAjgQTAQgAOAIb AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJftODH AAoJEGgNwR1TC3ojx1wH/0hKGWugiqDgLNXLRD/4TfHBEKmxIrmfu9Z5t7vwUKfwhFL6hqvo lXPJJKQpQ2z8+X2vZm/slsLn7J1yjrOsoJhKABDi+3QWWSGkaGwRJAdPVVyJMfJRNNNIKwVb U6B1BkX2XDKDGffF4TxlOpSQzdtNI/9gleOoUA8+jy8knnDYzjBNOZqLG2FuTdicBXblz0Mf vg41gd9kCwYXDnD91rJU8tzylXv03E75NCaTxTM+FBXPmsAVYQ4GYhhgFt8S2UWMoaaABLDe 7l5FdnLdDEcbmd8uLU2CaG4W2cLrUaI4jz2XbkcPQkqTQ3EB67hYkjiEE6Zy3ggOitiQGcqp j//OwE0EWznS4AEIAMYmP4M/V+T5RY5at/g7rUdNsLhWv1APYrh9RQefODYHrNRHUE9eosYb T6XMryR9hT8XlGOYRwKWwiQBoWSDiTMo/Xi29jUnn4BXfI2px2DTXwc22LKtLAgTRjP+qbU6 3Y0xnQN29UGDbYgyyK51DW3H0If2a3JNsheAAK+Xc9baj0LGIc8T9uiEWHBnCH+RdhgATnWW GKdDegUR5BkDfDg5O/FISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zbehDda8lv hFXodNFMAgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r12+lqdsA EQEAAcLAdgQYAQgAIAIbDBYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJftOH6AAoJEGgNwR1T C3ojVSkIALpAPkIJPQoURPb1VWjh34l0HlglmYHvZszJWTXYwavHR8+k6Baa6H7ufXNQtThR yIxJrQLW6rV5lm7TjhffEhxVCn37+cg0zZ3j7zIsSS0rx/aMwi6VhFJA5hfn3T0TtrijKP4A SAQO9xD1Zk9/61JWk8OysuIh7MXkl0fxbRKWE93XeQBhIJHQfnc+YBLprdnxR446Sh8Wn/2D Ya8cavuWf2zrB6cZurs048xe0UbSW5AOSo4V9M0jzYI4nZqTmPxYyXbm30Kvmz0rYVRaitYJ 4kyYYMhuULvrJDMjZRvaNe52tkKAvMevcGdt38H4KSVXAylqyQOW5zvPc4/sq9c= In-Reply-To: <87frx5plan.fsf@mail.lhotse> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: A7E56226E7 X-Spam-Flag: NO Hi Am 05.03.24 um 01:36 schrieb Michael Ellerman: > Christophe Leroy writes: >> Le 04/03/2024 à 11:32, Thomas Zimmermann a écrit : >>> Hi >>> >>> 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: >>>> https://lore.kernel.org/r/CA+G9fYsAk5TbqqxFC2W4oHLGA0CbTHMxbeq8QayFXTU75YiueA@mail.gmail.com >>>> Fixes: 11b4eedfc87d ("fbdev: Do not include in >>>> header") >>>> Cc: Thomas Zimmermann >>>> Cc: Helge Deller >>>> Cc: linux-fbdev@vger.kernel.org >>>> Signed-off-by: Jani Nikula >>>> >>>> --- >>>> >>>> Not even compile tested! >>> That's one of the cases that's hard to catch unless you get the config >>> right. >>> >>>> --- >>>>   arch/powerpc/include/asm/backlight.h | 1 + >>>>   1 file changed, 1 insertion(+) >>>> >>>> diff --git a/arch/powerpc/include/asm/backlight.h >>>> 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 @@ >>>>   #define __ASM_POWERPC_BACKLIGHT_H >>>>   #ifdef __KERNEL__ >>>> +#include >>> Thanks, but I think this should go directly into chipsfb.c. I would have >>> provided a patch already, if our mail server didn't have issues this >>> 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 >> asm/backlight.h, then you need a forward declaration of struct >> backlight_device; > It's preferable for asm headers not to include linux headers (to avoid > loops), so a forward declaration would be better IMHO. The asm header shouldn't include either. I'll send an update to my patch to clean up everything. Best regards Thomas > > cheers -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)