Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1796400lql; Wed, 13 Mar 2024 08:23:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMra68e3LxXKKagqXQqA9m1Ua8AiRvCwysmyxjEb54LHzVYs0tNM3hbsMsXfF1Tr2ilwsQBX4KjMH/s/l1/x5r60dP17pUSvznvgAWgg== X-Google-Smtp-Source: AGHT+IFMSP2s80kPxcVrgx1dXX8HkSrdbyMqBZ9kpCpP0VITWjTETSmuI6ADXG7Oy7lNoq9jivpb X-Received: by 2002:a05:620a:135a:b0:788:2375:24f1 with SMTP id c26-20020a05620a135a00b00788237524f1mr159565qkl.19.1710343412314; Wed, 13 Mar 2024 08:23:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710343412; cv=pass; d=google.com; s=arc-20160816; b=jpc8e853r0nktEmEXU6ZO80eRyakvffxi88k9kZFSjmSP2MXCfy1K16cW1MsJL0bh5 MmcJUqBqY1nkvU1N1kaj3w/P54yIfHUeh9segAE6RMQml2qEz2NmBMHWmfJNy8lgPX6T TjtOvq0qRZ2VAHu88CDN5t2kuIsivDjkPBQPD0BE+gHWK2do8anmt2xD3yGNxpGtNPBm hRktjPboAqISSzHZwAWFiXl93XWIhxWJf0SBVwmmzJwuBtobOfA/Q0PeTwsV+CdLEdgG ecp4UBhxjrrXxa8EoyN95o+Q6xOZ370IcuKvz/lsXxZNi00bsBt/cJBlT0/hkxjNn4f/ r+9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vfnfzV6fYF9TrtZxqYOYy3zicXQ8RJQ3ioetlPvOBFQ=; fh=vSIlrhISvkV2OwApMFlYe5Lf3zDX2RfrO/QNPUTkfYU=; b=XVsq4/XtpB2d1IhK0/2FUozZMxDuaO5P5krcgbYmP3CNbAwuO03q3K8u/0ysgXLEuI y3yoeay+uGdFV0z4m/K6hKjqgMe9K6eDPwLZuvRCxZHZv4JG1APe4cQUcjyjVr4lqI9M aT/lJ8h2Y9Y6DDCSY7ffwVIQgwiglfATlD1Yu1a5oMQDGL632jxS3fwyxY+aOVIfzrm7 ovaRxdlS0VMPdgc9nbsLcYUA69Rv7YigVi1Y/DkhZTo1kWn5Gy+Krpj89JtLiG+7z6bR 3VDTDs3Ar8fu0pT03+nHkf3lE0GkCxnMYmiopdHIBqreM5pQVIDtPTKCIzwGtqMwFdYU p5NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tq8pgzb5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101672-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 i16-20020a05620a145000b0078838fee369si9714836qkl.75.2024.03.13.08.23.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 08:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101672-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=@kernel.org header.s=k20201202 header.b=Tq8pgzb5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101672-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101672-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 0E61A1C2238F for ; Wed, 13 Mar 2024 15:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E624654F; Wed, 13 Mar 2024 15:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tq8pgzb5" 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 11212446B4; Wed, 13 Mar 2024 15:23:24 +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=1710343405; cv=none; b=uSmQQgtwhkzSyYElNhq8yRmees7NbcbK0OTuJqVuG48rs+upd7G0UdwTBKtEnDOOWQ37N3rsr6JNNiCmp+RdQrQd9vBMGz1wHysLo6FNuBXNkVbfO98JmMIy/N1jBGxWnO0G6SmDaScrru93zOiGgi88I3YIrktBkRSPJ5O70fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710343405; c=relaxed/simple; bh=+YgZIjLJQQfyctWkc/iSSuJ6jcLN8FKPMklQVQbuw2Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HIHup++RnS0sh0D/5JlMQKP08pAj9lOWDHqzsHmgfNdjv+sZKWIzwyxNlW9lXmddW2NwA8HXhPMBQZ3YTeo7tCkIXNhMoro8Q4xD0kHpAlcCpQ1MwusUddJiH8x0nWcF0tiAuSQTAs3qd18DMMWrXPr3DbMCdrsMY4+NI4Lajeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tq8pgzb5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EE69C43390; Wed, 13 Mar 2024 15:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710343404; bh=+YgZIjLJQQfyctWkc/iSSuJ6jcLN8FKPMklQVQbuw2Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Tq8pgzb5DD0nX/2aGbUB2kIBqw/7oPmyjy0oQt0eazOvdPSwUKeqgLII7/YHqqFR0 18pAf06Sw5VX5gHoIHwpcraUISShn4/yTcgtZ26S2HmngKWkV4xDJxaSgf9krMJ8OB UyCF6OX102dac7O2h/V8639AYBs9QxPvbs0dvj5lwHCbNRcG15Zp3qciz/0r01f/6H JsdLxKNZYgGx8dCszfbebizaEP3m17jRsz+Z2JUGFeY5x/5W/bgo+uQrNE7C90XDqT 7H344HkYDv5Vk4l6twyNB7kYJR9SfedHK0RVG8Wo2Q7yQQfwf/J/6gp/Tp06LKV+xA VLdc6F41pGrtw== Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513c53ed3d8so1354017e87.3; Wed, 13 Mar 2024 08:23:24 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCW6Hrq54L+IyYWdbLakNjhmRCxlwgqpv7bynGH6qLfcvxeYcd+pEsn/RaEUVyQB9wyW0Wzks6N9SHTaiRu4FgL3HGZ2bxtdxwXvtnaMwIgrcXafUofoRlgNCZE4mpDfvWf9un+Y+aBv4ttSOuPlTNYW++U5aSRwXeyGrM9Cf13unKPTUfia1Q== X-Gm-Message-State: AOJu0YwPTMsN2XMgIuEiLJ/roPLBP3ht88jf7BSB0z3WmpyHYfLdcdJQ zoXPs8C5Z7Xtn67xrrECvPsLTD3FjBqg/qywKcDL60timI66cn5hTHek16ldRZatT8qqeXg7580 hth3BUvj1OVu5lCc6PdNi8dvwfdw= X-Received: by 2002:a05:6512:3b0d:b0:513:ccda:bc86 with SMTP id f13-20020a0565123b0d00b00513ccdabc86mr471271lfv.4.1710343403145; Wed, 13 Mar 2024 08:23:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240313150728.12e20208@canb.auug.org.au> In-Reply-To: From: Masahiro Yamada Date: Thu, 14 Mar 2024 00:22:46 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: build warning after merge of the mm tree To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Stephen Rothwell , Andrew Morton , Nicolas Schier , Linux Kernel Mailing List , Linux Next Mailing List , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 13, 2024 at 6:01=E2=80=AFPM Uwe Kleine-K=C3=B6nig wrote: > > On Wed, Mar 13, 2024 at 03:07:28PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > After merging the mm tree, today's linux-next build (powerpc allyesconf= ig) > > produced this warning: > > > > Use of uninitialized value $ENV{"abs_srctree"} in concatenation (.) or = string at /home/sfr/next/next/lib/build_OID_registry line 38. > > > > Introduced by commit > > > > 325f7b0aaea6 ("lib/build_OID_registry: Don't mention the full path of= the script in output") > > > > from the mm-nonmm-unstable branch of the mm tree. > > Actually the warning doesn't happen on 325f7b0aaea6. The commit is only > problematic in combination with commit > > e2bad142bb3d ("kbuild: unexport abs_srctree and abs_objtree") > > . This commit suggests to use $(abspath ) or $(realpath ) instead, but I > fail to apply this suggestion here. > > Obviously > > diff --git a/Makefile b/Makefile > index 5e09b53b4850..f73a73a125e0 100644 > --- a/Makefile > +++ b/Makefile > @@ -39,7 +39,7 @@ __all: > # prepare rule. > > this-makefile :=3D $(lastword $(MAKEFILE_LIST)) > -abs_srctree :=3D $(realpath $(dir $(this-makefile))) > +export abs_srctree :=3D $(realpath $(dir $(this-makefile))) > abs_objtree :=3D $(CURDIR) > > ifneq ($(sub_make_done),1) > > would help. > > Any ideas how to properly handle that? Would the export be ok? > > Best regards > Uwe Oh well, you are making a lot of effort just for a C comment line. It is trivial to achieve the equivalent thing. use Cwd qw(abs_path); my $abs_srctree =3D abs_path($ENV{'srctree'}); I would just print a fixed string, as this is not important. print C_FILE " * Automatically generated by build_OID_registry. Do not edi= t\n"; OR print C_FILE " * Automatically generated. Do not edit\n"; --=20 Best Regards Masahiro Yamada