From nobody Wed Dec 17 08:51:12 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 B26B116D4DF for ; Thu, 11 Jul 2024 16:49:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720716590; cv=none; b=EtgMne+h6cnFBaYHoeiyrPjY5dYAKknjG8Q4i0E0umR6vVAVmsI6EoAltcR91PJMOwtympyYLVlIq1WVH6VXeqZJW4NLH3iZbz3EDGsNRSOmTnbl+WGMCPpy6mucp07GrB8HcNCMv2Hmsn3xlC4WXHXNHKkQjGivgYpCl6iJeTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720716590; c=relaxed/simple; bh=NWmqohwIRZylHC7WbPfEjileGYkGE1Y+HwAj07nPRRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o/jliYe8OnF7nF8OCXdH1amk8vnU3AobOlGC8hz8Z9JItcbTXAq9l5EoJOAGm/Mogx6zKD4gQjFxf8P4XFLrvMHTP++Pxk5UzOcRzHJ8bonrxADZ+0nPQ8K/0Yh3dxO/XxAvvlyayHkdCs+xkMS6IQgEE+vzeM8s17rIgxNGv3E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XvYiJezM; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XvYiJezM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720716587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yq+YuLYbn69og6JbDHnp1cGThbzz3E+7herJsur4YRc=; b=XvYiJezMdPILn3X2fPhq800R8/M0VQbEZL6Dgbc2hQjKnFHO0jjvsybOvRU/olX53GXiqB 0MRT1CKf96lORC11SA3niu0Vgm21E8N6XZtCDGdlcDgSiM9Yt25omm/Ug4sn7HCIAdkIhp AHoz8bBMvPcZTrSeWoZWi384XTtEcfQ= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-192-VnloZP8iOHSDZP49RfrR7g-1; Thu, 11 Jul 2024 12:49:42 -0400 X-MC-Unique: VnloZP8iOHSDZP49RfrR7g-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7EAD51935863; Thu, 11 Jul 2024 16:49:40 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.131]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6342219560AA; Thu, 11 Jul 2024 16:49:37 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Ignacio Tornos Martinez Subject: [PATCH] kbuild: rpm-pkg: avoid the warnings with dtb's listed twice Date: Thu, 11 Jul 2024 18:49:19 +0200 Message-ID: <20240711164935.1369686-1-jtornosm@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 Content-Type: text/plain; charset="utf-8" After 8d1001f7bdd0 (kbuild: rpm-pkg: fix build error with CONFIG_MODULES=3D= n), the following warning "warning: File listed twice: *.dtb" is appearing for every dtb file that is included. The reason is that the commented commit already adds the folder /lib/modules/%{KERNELRELEASE} in kernel.list file so the folder /lib/modules/%{KERNELRELEASE}/dtb is no longer necessary, just remove it. Signed-off-by: Jose Ignacio Tornos Martinez Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor --- scripts/package/kernel.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index 4b7df76076c4..74355ff0e106 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -83,7 +83,6 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/li= b/modules/%{KERNELRELEA done =20 if [ -d "%{buildroot}/lib/modules/%{KERNELRELEASE}/dtb" ];then - echo "/lib/modules/%{KERNELRELEASE}/dtb" find "%{buildroot}/lib/modules/%{KERNELRELEASE}/dtb" -printf "%%%ghost /= boot/dtb-%{KERNELRELEASE}/%%P\n" fi =20 --=20 2.45.2