From patchwork Tue Feb 6 00:13:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 770569 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 2B15C186F for ; Tue, 6 Feb 2024 00:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707178435; cv=none; b=YD08MO44KjExGFeztyguCP9dHFuXUbgnZROrjGwt+esFJUGsm707ut0Wk9Ign7+1iEGSAktBDWc72AfGBR/n74OzwYIlXkTwVErYl0EMoUvDoKR37OCqTRQOHHgaT8cUQyYjNhEpbZ5mnyI9cXUvU4XDjg1jI1ho46I0y0wUGTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707178435; c=relaxed/simple; bh=qgTGi7JidDwUNcALuXCs/Aobj1U/WF9E3H5PaXfigWg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=K11OtkabNR14z1k0eEjZHSjm3OlxtRVTpy/oSZrLvjGOB70+Wmi7Hqm23wO7T2W+pYoxAHrkseLLDevBm43bvtpfAjgUDeRnHh3dq2OScJi06QNbop0FiNTHLbEjGEvBRyl/Llk/7UJoOVuBk5tc34WbUR/b3sE0VBBoPP6vtss= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=smile.fr; spf=pass smtp.mailfrom=smile.fr; dkim=pass (2048-bit key) header.d=smile-fr.20230601.gappssmtp.com header.i=@smile-fr.20230601.gappssmtp.com header.b=C9l7b7H5; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=smile.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=smile.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=smile-fr.20230601.gappssmtp.com header.i=@smile-fr.20230601.gappssmtp.com header.b="C9l7b7H5" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40fb3b5893eso40954285e9.0 for ; Mon, 05 Feb 2024 16:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20230601.gappssmtp.com; s=20230601; t=1707178430; x=1707783230; 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=r3al5hoYNZZk10PcQ0r4e5BeElcwyRKIKSa+2Ek/7S4=; b=C9l7b7H53KP2v3EvJyWesaJRo+r7zP9Vb3KnwAWxnLdta9YrUg5xGQ+ve1f8cR2Oby wpcRKQdD9Pmgq4CuDpgM6+shndCKj40IU3NldDQfGbjleLsjDqGaeGcliVneVqmtEyuj 0Mf+n+dyXRhq2FxAhUCxkBVgXnZpMTJq7NOd9ZGBvfwQVgAmLTWe1easadqQCBPzqrNX PsXl/dIOm5zIF3Ma0iz9nVrZ+Y2+b3U9Qa1GKTxkb0cVJAx2GbFwh8ZQpUg9OOu/3i9x 6rbw1rRTjh8P5UlPX9QL4WMgrfhFsmYeyGb6KZn/PGalbB8Td4TFJB533rY8GD6vOcUc xBTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707178430; x=1707783230; 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=r3al5hoYNZZk10PcQ0r4e5BeElcwyRKIKSa+2Ek/7S4=; b=fhyBUVg8w82lDc154UY0Rj8qajC1UejaMqmUTfU8Jb8yNzopGN+ZEFXYx/uhYZpziT lQKGxmZVaA5+hRJ4eHPmvDxMXL0G7CSoYDcKeGTzTebr4wQOLaTeoGxDtx9gDdse1f4G 5g0qxt2AHOA17FfjgOZCO5t8EKLuRTqE62rS9pFEe3l3ICNz5RMtqB65rZ8vwiINKa5+ lYcQJzTkKaUboACw43FwE1Vo9UXH/DeptkTlnfyBoOt83szg2RWRzY/NMCZ4MMVoxj2G 5PQ8ExBMTDw6FW6hPu3GW/V0zVefw96Md7mdNFQ6ssPql4YBOH1yS0q4QCPgu2SQdIiJ zk5w== X-Gm-Message-State: AOJu0Yx3oWfunRKYqKdlF2Ep7e3bbNNy+UWG7gob8CnzuRs61L8j/0ih cxEOXR1FkIEXwPTC3y8S6mwM9k9VTId4XRjjhLMGpHQfJt02ldU8l2uCUyOf9oM= X-Google-Smtp-Source: AGHT+IFCim5OUOcgfTPcWA7Y6IOO0/nwwMYeV/LjPUpF6aS2P1E1QUN/ct8OXNgDJGo/eorbjUfFDQ== X-Received: by 2002:adf:e6cb:0:b0:33b:150e:627a with SMTP id y11-20020adfe6cb000000b0033b150e627amr32907wrm.70.1707178430299; Mon, 05 Feb 2024 16:13:50 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWGGbZtGrR24l8gipVeG/n2/q6+R1SUf1M+MXyjypyn/mXeEuLCRm8v6kFtLpF74IY1NWbBNfY1X5T6nuLBRJysUAaAisMwjmSLp4Q5PwOEGmkvlybNBbMv9J3Q8dRxcOXD9sKaM/KK6C+eqomNABkluk6ej4SEGTkgxwfNxfGEb5CDl/oRNsnJJ2ql0767ogdYZRVh6u8gBKBeyehf7TojNfgS7PvqUhReBu/IAc78fD4vJAMAMY6rTYcHtg6Hh1wu3omiZffR+c3FXSQTIaAGS7wvvtKvO2o+Uvg/bWkecdP1AmdouvpaZowkyFYqufk8+G61B3KfaYfSbAylpsdeqiUN9hWQgJ5k+Z2YZkRTHdJrLjlIYPEWw491FYaF3kYgjJa6FSQTPJl0BKLqP3XUD3uZcNlyuyBe4bwyl8gQyh/j73myH9PXLdtox7QsJMNqWczKpXTV2dy1DRoAsCUL86ED+wM2A2t+DfWght/gIDhAoL5PLawCMsyR65D4TGyimPDUyzkW1HgIOZqCo42te6zULDk/ueCWSJGwnWW5cxZac71XlvK2nJEbvFAqTZpgtoDBzOQaH/1X9Pns27uRorZrx4mWcV92/97gRRpDhq4QRuAVzHeRTdnbZagQJa+7w026zTjHt1TPIpvsjSl1l5ElUDBOtkTOB5Uit+HPV+cLo9+I1cNtQi95nAfG4ATctArhvsW1se3lAmojkuuNE/dYjCN4dYdhjfxPMYMtbDTQfuOVaBiRiIfupQXscuRpQC3nlnkEjzqNz4uvYPXzECMIjeo= Received: from P-ASN-ECS-830T8C3.local ([89.159.1.53]) by smtp.gmail.com with ESMTPSA id b17-20020a5d40d1000000b0033ae7d768b2sm686959wrq.117.2024.02.05.16.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 16:13:50 -0800 (PST) From: Yoann Congal To: linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, x86@kernel.org Cc: =?utf-8?q?Andr=C3=A9_Almeida?= , Borislav Petkov , Darren Hart , Dave Hansen , Davidlohr Bueso , Geert Uytterhoeven , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Jiri Slaby , John Ogness , Josh Triplett , Masahiro Yamada , Matthew Wilcox , Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , Willem de Bruijn , Yoann Congal Subject: [PATCH v4 0/3] printk: CONFIG_BASE_SMALL fix for LOG_CPU_MAX_BUF_SHIFT and removal of CONFIG_BASE_FULL Date: Tue, 6 Feb 2024 01:13:30 +0100 Message-Id: <20240206001333.1710070-1-yoann.congal@smile.fr> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series focuses on CONFIG_BASE_SMALL. The first patch fixes LOG_CPU_MAX_BUF_SHIFT when CONFIG_BASE_SMALL is used. The second patch globally changes the type of CONFIG_BASE_SMALL and adapts usages. The third patch removes the now redundant BASE_FULL and puts BASE_SMALL in its place in the config menus. Thanks everyone for your reviews! :) Patch history: v3->v4: Applied Petr Mladek's suggestion (Thanks!): * Keep BASE_SMALL instead of BASE_FULL * A patch changing the type of BASE_SMALL was added. v3 series was named "printk: CONFIG_BASE_SMALL fix for LOG_CPU_MAX_BUF_SHIFT and removal" https://lore.kernel.org/all/20240204232945.1576403-1-yoann.congal@smile.fr/ * Patch v3 1/2: * Reviewed-by: Masahiro Yamada * Reviewed-by: John Ogness * Reviewed-by: Petr Mladek * Patch v3 2/2: * Reviewed-by: Masahiro Yamada v2 -> v3: Applied Luis Chamberlain's comments (Thanks!): * Split the single commit in two : one functional fix, one global removal. v2 patch was named "printk: Remove redundant CONFIG_BASE_SMALL" https://lore.kernel.org/all/20240127220026.1722399-1-yoann.congal@smile.fr/ * Reviewed-by: Masahiro Yamada * Reviewed-by: John Ogness v1 -> v2: Applied Masahiro Yamada's comments (Thanks!): * Changed from "Change CONFIG_BASE_SMALL to type bool" to "Remove it and switch usage to !CONFIG_BASE_FULL" * Fixed "Fixes:" tag and reference to the mailing list thread. * Added a note about CONFIG_LOG_CPU_MAX_BUF_SHIFT changing. v1 patch was named "treewide: Change CONFIG_BASE_SMALL to bool type" https://lore.kernel.org/all/20240126163032.1613731-1-yoann.congal@smile.fr/ Yoann Congal (3): printk: Fix LOG_CPU_MAX_BUF_SHIFT when BASE_SMALL is enabled printk: Change type of CONFIG_BASE_SMALL to bool printk: Remove redundant CONFIG_BASE_FULL arch/x86/include/asm/mpspec.h | 6 +++--- drivers/tty/vt/vc_screen.c | 2 +- include/linux/threads.h | 4 ++-- include/linux/udp.h | 2 +- include/linux/xarray.h | 2 +- init/Kconfig | 15 +++++---------- kernel/futex/core.c | 2 +- kernel/user.c | 2 +- 8 files changed, 15 insertions(+), 20 deletions(-) Reviewed-by: Masahiro Yamada Reviewed-by: Masahiro Yamada