Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp607662lqt; Thu, 6 Jun 2024 12:41:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNLH7jhoYbc/RXT9hC/7s69udG75Lsx2LVnELjIWhJaN5sSqpu2pbM+Tlk0E+kBSu6BRaDEPRWPO2ueCIL73jNsNAnbDSJMM1Y1XzHLw== X-Google-Smtp-Source: AGHT+IHtsQiBO5dm3eiP/UG6nNJKjKBUz0WMgcJNxOzH9CUd0Pe9duM5aXlHZ3Zz0KWHlnXIjeTQ X-Received: by 2002:ac8:5dce:0:b0:440:7de:1bbe with SMTP id d75a77b69052e-44036221415mr60208371cf.11.1717702868553; Thu, 06 Jun 2024 12:41:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717702868; cv=pass; d=google.com; s=arc-20160816; b=hCWr5umc/zqKRkga2EtVbok3Uu+yUNB8bz018q0jlZNxPjc2XaAtvayq4sDa/qyrEu SMyOjftVAessIDASPfepcGIlaYRLpDSyeCmKT/aJEfX2gRSnsmy7484CK+VkdClYQ16X qvFB7TZFmP76tuRWH3BcO5VDBTivhsq7DB8QWmC3b2rDtNitu4g68Nl/VD8FkA1xRbR9 x5EQpNKN/qtcA39L2F99ZQyledyOIbW8vhHT6Nr1fi8hBQ4CUCMtJXTkpX5y2N7Mpwnw awXS2JScAdqC0hYr3zZ142ad+t3QGxLe5ozgusDL4OnaLpjjEGKrYF7j6yHwuBCFynHh uB5A== 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=eMRXXzQeW24r8GaqJHGXoIgaMljSxkuiM6e9jAW3pTw=; fh=oDWkO4618otHQU2bxvFdzMHMozdXdiDjVtyFgZpndsw=; b=RSDHRZsrmt5aSYpX9nHwRRovCIk9q8s3epVOsoQCkDgYEP/0B7dqSg0ZURKcSga7k7 MrMTOp6vwnPgqv+VuArLUrsggW3dLyhYrhn/YLaDsvdfUE495kYRahxpQmwOOBOtY4oA TPOpDNMOpYKemypIM5DAvvzzKkOo/LiEbsbulNGdxmJlmJZJZVXmLxlvjGeL/C2PyuzK TkIE+jsZ1bcyCP0I0sxLG/RkDU7YpWnpoMVWJqmPMfAo//ICKh+vuPv2rDoeYKTVEQzp hdgfcOeoP33U+ox6AMrJ2EgQ/vEksA4CHO0/Icn5y/bxMMCyMqDX4tQmBhN58Pnw9lLe IlAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=he6berez; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038a6f54fsi23744291cf.126.2024.06.06.12.41.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204949-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=pass header.i=@gmail.com header.s=20230601 header.b=he6berez; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-204949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 4A7B01C25355 for ; Thu, 6 Jun 2024 19:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 818976F099; Thu, 6 Jun 2024 19:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="he6berez" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 180934CB4E; Thu, 6 Jun 2024 19:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717702858; cv=none; b=pT1t4kebPSi5wHO7Dh5c6yJScDbwA+sANvg0ditn4z+WeVZBz0uZ5iCdPIzdmGe2bk+puDOAe2bLGdddEAshhzwlv0hC7at4shd+xcm+eZQFZaxW852RBfj0iNWl4kPdi1ZjJM2CZuH+lujpHtcdX2+OKXjxgcaM+KmsfeQ+dDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717702858; c=relaxed/simple; bh=nqmuZAXsgJT3L7yyO+ZftJF3F/VTtxhZgZWGgav0uu8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NwnFQLHWDZjMHmHDNMcgRRKfzC3CaA4qiFG21abQwq0TJCJR/O/X5b6TTFNcnvXMlbF5qmXkMxRumAfJY4ny6wQu3q72IHzrjKsSegAXHkmQ6XQxHEqQfZ3Sx/mxcD7OcnmiQ4N8Sa9VXV7gxwdTevixgK3IBHelmfev+eFHovs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=he6berez; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52b840cfecdso1605875e87.3; Thu, 06 Jun 2024 12:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717702855; x=1718307655; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eMRXXzQeW24r8GaqJHGXoIgaMljSxkuiM6e9jAW3pTw=; b=he6berez0DEV7GfkZLNyvgX/2KIDou2WtqF2zd0WtoudQh7twXCMr9cQizS1GfHW/k YhcJZ+FklNHiOiOjpNbV4asYOlndm+eaVsPVc25NisQOFYE+3wJGkZ10bUVQbe6XRrBh zuNdLbRJ+LiFc2maeYxQLaOO8t7ipmKgPbe8Xh+kdPjKystN6VEdeT73/92DNhjNpvoC a6UTBAlQ2nJp+CnW7utSzl5SMwpZ/wEbgUe3AEVOepT2XtstA/UON4ul2CUmXRIuFnpH 48TZt11qwjzmZLU/PPztNiSxmCFVv13WsfFXoRVqDqIi+M8TG6lcsIICP4VajoYLQ/IM kvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717702855; x=1718307655; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eMRXXzQeW24r8GaqJHGXoIgaMljSxkuiM6e9jAW3pTw=; b=Rl54dmV0gBw+wigkOIZCCGmGljDWoTlpvNHw67nKi6ZJR5jQ3J5mUxl2buUm4pIqxD BftnlrteQTCeTmGmtqsoYsXdr81rlpeKVB9ERusuuK0mrOQMNW+Mn/qfoJGyilL1QSMF Aw7jexUx0xYVpDFwmu4INMljiafc1eEM48bVmQMztd3k7PmaSubYGaD0UU2ieVEnzyEX boiWYdQ0ja9/3ojY8rje1dhjPjlSy2ralKO7FlcMokrDtlGDuAq0AQMYYy1B7fxwZEZg YB6GfL/2uuNFUUd+qEJidIk7nYFiVgGIQzIjRmWc0xWwyMHOfecAknrk/VQ4Cf+q9RGh UfkA== X-Forwarded-Encrypted: i=1; AJvYcCV/Iy2NW2rlTi1t8ff2Pis9CaHZpCbOrk8bxza5Xds/aRb/YvM7m8KyclD3ql0x7EmaUKZsFoUsL8gQ6vkKRM7+YvfGOPX3PLHsYut+ X-Gm-Message-State: AOJu0YzhU5VH13MbAfOsOcSLh5e++5tqxPEvVEpeeWLavqWBJbvYjFr+ PCePjers2QRjzv1V/NR+O4m2uNZQ77bmXSK+JM4xGXlYfck6V5xRiAMYmqUKiCXsd8G/7zHdeqJ yRcgTTGF+fdO0BW636yWbNn6bzZBM0WNfyDE= X-Received: by 2002:a2e:9a96:0:b0:2ea:8037:29f5 with SMTP id 38308e7fff4ca-2eadce28272mr4399651fa.14.1717702854962; Thu, 06 Jun 2024 12:40:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240606183921.1128911-1-masahiroy@kernel.org> In-Reply-To: <20240606183921.1128911-1-masahiroy@kernel.org> From: Vincenzo Palazzo Date: Thu, 6 Jun 2024 21:40:43 +0200 Message-ID: Subject: Re: [PATCH] modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nicolas Schier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable LGMT, thanks Reviewed-by: Vincenzo Palazzo On Thu, Jun 6, 2024 at 8:39=E2=80=AFPM Masahiro Yamada wrote: > > Building with W=3D1 incorrectly emits the following warning: > > WARNING: modpost: missing MODULE_DESCRIPTION() in vmlinux.o > > This check should apply only to modules. > > Fixes: 1fffe7a34c89 ("script: modpost: emit a warning when the descriptio= n is missing") > Signed-off-by: Masahiro Yamada > --- > > scripts/mod/modpost.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 937294ff164f..f48d72d22dc2 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -1647,10 +1647,11 @@ static void read_symbols(const char *modname) > namespace =3D get_next_modinfo(&info, "import_ns"= , > namespace); > } > + > + if (extra_warn && !get_modinfo(&info, "description")) > + warn("missing MODULE_DESCRIPTION() in %s\n", modn= ame); > } > > - if (extra_warn && !get_modinfo(&info, "description")) > - warn("missing MODULE_DESCRIPTION() in %s\n", modname); > for (sym =3D info.symtab_start; sym < info.symtab_stop; sym++) { > symname =3D remove_dot(info.strtab + sym->st_name); > > -- > 2.43.0 >