From nobody Fri Dec 19 22:07:41 2025 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.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 CF8162D3A86 for ; Fri, 20 Jun 2025 15:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750434423; cv=none; b=Y9Se4zPJGhI8rEHE1jlIAME9GkkwfO/jrtiGkQiVhdI+YU2mJuG7jd8nSFBrolxWFV5h3RQoKoQRT+yWDwQiEDRhfuoSu8SfmtQs+BmIzakXIj3lVd8HOhNVJ32096hdzZmH5pj7xqbRRucaVOTnNzIDi+3u814BYHi5E9ANgG0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750434423; c=relaxed/simple; bh=buqInb5mqkNDwL+7hQIeuQgXeAKtV/p8V+7Iql6hX8Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GTLEcG2lX70Snv+3NZ/FMW3+YaFLZZpeTLgSExW3QQ1nrIMzX4Qg0YCWU9MOMxiPEetgfht0g03XrBHDd8Y0CzBpbOCCf3DrU0bi3taMAgCXEKxcinh1f2JB1L6KkyZ7UdFxmFeSgiPf8DK4XccJRACeL8LTgHMwyuJ8dTpsXA8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=QgYSFcVM; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="QgYSFcVM" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-451d41e1ad1so15231445e9.1 for ; Fri, 20 Jun 2025 08:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1750434419; x=1751039219; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PWO2G/DbpRwwDVi2ObC8ypf7TcnofMBz/4xVPLOm7vU=; b=QgYSFcVM+qtX+bYBHHiUvopNXM9Ya6ujRbKuCcKraZ5JKjbVk36l4Aa0jWZ0WRuBGu vCRv8WnlH6vzfvrqes22EdTigaRyRgOQZiQQDyZPaWjOiZGWMcY4F5u/7sEFoRc2xTZB oaiaPoYXfc7VNCdmt3+N1ZXGSAa1AWyPm1HtquIUveu7GALlvfhMluTCdm9fINNYaepL q3+iaZgtDilKA36Z7twzhzlKbWT0WM2Qqdaad6z4kXH4o8o810EU63X8lVBrINbgj5b+ 0Ggh2M1ltPZNvTJ1BUahDS6AhyVE+d8Ktgffx6NDhEEXF4BFkWAFMadkWQqTr5bLjrve DRIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750434419; x=1751039219; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PWO2G/DbpRwwDVi2ObC8ypf7TcnofMBz/4xVPLOm7vU=; b=nIhD9bjnBh7x9vuy8uSnyeGUaE4jtiu+f7gDurwmlU4WA6GkIQCqyKU7bGAIOM8HiW cyuUXUoSMR/52ynsNssDp+cVd7wm3s1Dlj5oEgAaczIhsDBVlLMtezVh0w2REWLbIimS N8Tte62iq6kFK1swAqqWPnVLSJDYQ6s8L5w2v6oi4BtM1gNvVYpKlgNXHOwhs6adhv0F kvlYO5qB308n5yw22Hu1hRSpA1yObpjNjn80xBTeGoFmuyE/vuiUMoqImZw0E8dGzoiG A1Re+EX/Ost25HNfL/JMWdiMKDN64wMSwT9F0iRnT7QHsgCpiHrMCIpU+AwyV7IQmmwd IgkA== X-Forwarded-Encrypted: i=1; AJvYcCUXvlQqbQiOJTM/fT1BgyBO5QdljCESVnncuOIho9F70NDr3BBptb1e7gmKGPa2BWffxwt9hZnws8kQGh8=@vger.kernel.org X-Gm-Message-State: AOJu0Yzh7hzTKtdNRz66I5uD0CC7QcOSsAoZM/tYnmjdKxeZcNkInL6+ Su5Fq1CoxgYhSJoJjcZDAnwD9Xlk7EowKp42qNfgh7nPwXG7UllbyqxzThLHtcVN/Nc= X-Gm-Gg: ASbGnctlz0lRD2QGB3QZxXOQ8qAyOcDHBpRrwdjQBt6sAlwHu3Zb0kMPke92AatyzMT QZR+O4WN3zAl12YiC2k7VPQQqADcaQhm2M7yg9iyWMPreCZuOY+BSXBz9Ia9LyISPVWfCgI+shE KV/HXAt0awf/k1cjnIl4+YIMeVJVbEQqGDf8PrnVHdzXAvvlx++m9A7zZiWGzeeeh+kJcUdhS5s 4jqO8txgF16DqhBeeBk8zx+kyvgX4K8Y4NcC8QlW/aA5CzJKeBnTgesqiPW+JSZzvh/sAKyL9sQ PAfxIcgaSh5hRz3Q4Diwd78ybPs4J0uiRwrAV/BfIHfHbrRkFdgP5tRF8xb/pg== X-Google-Smtp-Source: AGHT+IG+CZmZfbLPrVn3DthMJ9P4F7yBCo2NT+F1A0hHwe66P2j0wSF6m5Ao5UpWm9U/Nvwk9K1L7g== X-Received: by 2002:a05:600c:1546:b0:453:1058:f8c1 with SMTP id 5b1f17b1804b1-45365392159mr33025775e9.3.1750434419139; Fri, 20 Jun 2025 08:46:59 -0700 (PDT) Received: from zovi.suse.cz ([193.86.92.181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-453647071f4sm29390755e9.34.2025.06.20.08.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jun 2025 08:46:58 -0700 (PDT) From: Petr Pavlu To: Heiko Carstens , Vasily Gorbik , Alexander Gordeev Cc: Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Pavlu Subject: [PATCH] s390/boot: Use -D__DISABLE_EXPORTS Date: Fri, 20 Jun 2025 17:45:49 +0200 Message-ID: <20250620154649.116068-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.49.0 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 Content-Type: text/plain; charset="utf-8" Files in the arch/s390/boot directory reuse logic from the rest of the kernel by including certain C and assembly files from the kernel and lib directories. Some of these included files contain EXPORT_SYMBOL directives. For instance, arch/s390/boot/cmdline.c includes lib/cmdline.c, which exports the get_option() function. This inclusion triggers genksyms processing for the files in arch/s390/boot, which is unnecessary and slows down the build. Additionally, when KBUILD_SYMTYPES=3D1 is set, the generated symtypes data contain exported symbols that are duplicated with the main kernel. This duplication can confuse external kABI tools that process the symtypes data. Address this issue by compiling the files in arch/s390/boot with -D__DISABLE_EXPORTS. Signed-off-by: Petr Pavlu Reviewed-by: Heiko Carstens --- arch/s390/boot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/boot/Makefile b/arch/s390/boot/Makefile index bee49626be4b..0986c7c67eaf 100644 --- a/arch/s390/boot/Makefile +++ b/arch/s390/boot/Makefile @@ -19,8 +19,8 @@ CC_FLAGS_MARCH_MINIMUM :=3D -march=3Dz10 =20 KBUILD_AFLAGS :=3D $(filter-out $(CC_FLAGS_MARCH),$(KBUILD_AFLAGS_DECOMPRE= SSOR)) KBUILD_CFLAGS :=3D $(filter-out $(CC_FLAGS_MARCH),$(KBUILD_CFLAGS_DECOMPRE= SSOR)) -KBUILD_AFLAGS +=3D $(CC_FLAGS_MARCH_MINIMUM) -KBUILD_CFLAGS +=3D $(CC_FLAGS_MARCH_MINIMUM) +KBUILD_AFLAGS +=3D $(CC_FLAGS_MARCH_MINIMUM) -D__DISABLE_EXPORTS +KBUILD_CFLAGS +=3D $(CC_FLAGS_MARCH_MINIMUM) -D__DISABLE_EXPORTS =20 CFLAGS_sclp_early_core.o +=3D -I$(srctree)/drivers/s390/char =20 base-commit: 75f5f23f8787c5e184fcb2fbcd02d8e9317dc5e7 --=20 2.49.0