From patchwork Mon Feb 19 15:39:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anna-Maria Behnsen X-Patchwork-Id: 20605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1363514dyc; Mon, 19 Feb 2024 07:40:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUH9I8F9t54PuX79TJAw5X081iVC4awKA3ykY1SGW7yZ40atPqTsT7VMaMWpBRyTo5Ayw1mHa7gSNKWqVaNs73jG8xx1w== X-Google-Smtp-Source: AGHT+IGyJqCc4B6bA7GPvLD9/6gEbALzrtVi/aGu9syv2LZHvRYunKI3b5WIg8OmJv65X1vSg6ay X-Received: by 2002:a17:906:fc05:b0:a3e:c245:9a6d with SMTP id ov5-20020a170906fc0500b00a3ec2459a6dmr1465560ejb.46.1708357249082; Mon, 19 Feb 2024 07:40:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708357249; cv=pass; d=google.com; s=arc-20160816; b=py1yI89km8AG51f42Pm4RtHbuxx65pY7Mt80U6vM7Jvr21Hxv75PP86leP5NPrPLZM XFL3EG95hy2jFz7RWEZjQiGibsfgDiEbVHVqXTasJLFZLgxjKXim9EcLFtR+N5iSByM2 yEijAabkwA8kcTQdY7jgqFdSMktY08oeFHRa0AjI/nlKHaq6PKwXskj4YPsN83OnBRDt l5NRAtzmZ86amV3jKEQ0qLI/hCrXjIXvyCuipnBKvdXLoRCFiu2WV5hSsrrhGMawQijd hqLUsPvxpzX57+9zgnN0AKc6hc2o5OBgNU/R/FjVjPJkP7B4ZEhiK41zMrM/UwB1RlN3 OMxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :dkim-signature:dkim-signature:from; bh=YgcJpPFNarJHeRkyGaRjyPHvVYb0xflkH2hUr0RoxxY=; fh=7nx5oR7euHLtaDcHkbIp35ocMFmibozVif+FdERjWO8=; b=Qk5Ll7EEpb3BIVpVjiV566AowBxQXa1CBqBb+uNH0+oxFhhEolK7qGh4ggnwnBjmh2 rG3VxiUkmuLi3SD55IOGgEng8Y7LYUpQN1QJ69qemCfueWu/HbCIC3/nAgft3N/bYzD8 j2MggHqs5vKmPftA4h+jq1jwT6zgwxaFdTgnt98rBySb7RCp3JxwbXtrILiylSjSURSR 6KdpiQZg6BvxFYLXhWr6pgEhskSID2quVZYFnZ178SHmqyrNw2EMX9WHIzSG7ev1Sqy3 H1qT3xYw1giZE/qcwzxnNn/dLe5vZ0bKJldYI4PAKyu98hMKSJqgyr9R3OKPs5Mn1D5j BWgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=d2qxBNZR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71595-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71595-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mp11-20020a1709071b0b00b00a3e7b5a0a33si1293116ejc.713.2024.02.19.07.40.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71595-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=d2qxBNZR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71595-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71595-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 913991F2303E for ; Mon, 19 Feb 2024 15:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC1CC3D55C; Mon, 19 Feb 2024 15:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d2qxBNZR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="owSaFPn1" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 5F84B3A260 for ; Mon, 19 Feb 2024 15:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357206; cv=none; b=P59n4ZlIc76v/epdKU2cSce5sN/3iNVklM1grCQNYzkXfbsxWGD2p5DkO7q/+7jV7wdtAi6NE+jNw4MohFmv4E0EWnsyQnIWEa+hqnjJLRg00ZVBTK3UM3J8TfV0XjLv6BHJpyvOOYWvYPTnLSOHnNrdHHMPI5tWyHroyl62hpo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357206; c=relaxed/simple; bh=AO+vzYiD2Z4LI7zbbqGTvVCPcLgWaBuHm2pmC2aRI4w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=duynUCBrBeUrTJX3kRbYAFhXKhBRvdv4QCXiU+jx3c0Nz2xPzpNDGW85G1SHq20ieHtEU7ZDXN0h/4HkIS9aaj8Kts9tLwU4h2/FZQoFRYzZTfsIt9OiHRHQMoYOA44ZQKJYYIyj/fctwvwRYNt1LEsjRRPBPH6Faz07HokzS2U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d2qxBNZR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=owSaFPn1; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708357203; 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=YgcJpPFNarJHeRkyGaRjyPHvVYb0xflkH2hUr0RoxxY=; b=d2qxBNZR5IFb2I4xtkO+ICSJgjOP6jKiTvleSapkUlA7WZzuoU3SaMg0XADjvzLjQhTbV/ JJXOdvF10nioLLMTCllU5KlR8G7gjqPz5T39VuplCHH2sS5pnme3o0APjUhX0F7K84xRMg dTMyjG3Is6pbjC5LSlHXR+2DoUZlrFch6OgSyGvRbMw9kBJqGu2uDyMP8oE1LSJNApG0MD QgbFK619YAwU4aiGeWCygnN5yEs9hVBwasdiqo3R/8jg84q99++WLs4QCou9avyEdFe8PL ddUapHsIQpuV8SIhhQXFa8xtQvKzK6k+oRpnN8XP56N52qyQVR8RtQ0WPouBug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708357203; 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=YgcJpPFNarJHeRkyGaRjyPHvVYb0xflkH2hUr0RoxxY=; b=owSaFPn1YQNNI1zsdryCykTkOwg1YMTQWBbhcCt0fgUEyXEk4M5RHhI7eUj1I+KTEH4v7t R14esfeOOPG4YaBA== To: linux-kernel@vger.kernel.org Cc: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Anna-Maria Behnsen Subject: [PATCH 00/10] vdso: Misc cleanups and prevent code duplication Date: Mon, 19 Feb 2024 16:39:29 +0100 Message-Id: <20240219153939.75719-1-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791342410943349925 X-GMAIL-MSGID: 1791342410943349925 Hi, the vdso related cleanup queue contains two parts: - Patch 1-3: Misc cleanups related to a comment, a superfluous header include and ifdeffery - Patch 4-10: The union vdso_data_store is defined in seven architectures. Make this union available in a generic vdso header file to prevent code duplication and fix the architectures one by one to use the generic vdso_data_store. Thanks, Anna-Maria Anna-Maria Behnsen (10): vdso/helpers: Fix grammar in comments s390/vdso/data: Drop unnecessary header include csky/vdso: Remove superfluous ifdeffery vdso/arm: make union vdso_data_store available for all arm64/vdso: Use generic union vdso_data_store riscv/vdso: Use generic union vdso_data_store s390/vdso: Use generic union vdso_data_store loongarch/vdso: Use generic union vdso_data_store mips/vdso: Use generic union vdso_data_store csky/vdso: Use generic union vdso_data_store arch/arm/include/asm/elf.h | 1 - arch/arm/include/asm/vdso_datapage.h | 26 -------------------------- arch/arm/kernel/asm-offsets.c | 4 +++- arch/arm/kernel/vdso.c | 4 ---- arch/arm64/kernel/vdso.c | 5 +---- arch/csky/include/asm/vdso.h | 5 ----- arch/csky/kernel/vdso.c | 14 ++------------ arch/loongarch/kernel/vdso.c | 6 ++---- arch/mips/include/asm/vdso.h | 5 ----- arch/mips/kernel/vdso.c | 2 +- arch/riscv/kernel/vdso.c | 8 +------- arch/s390/include/asm/vdso/data.h | 1 - arch/s390/kernel/vdso.c | 5 +---- include/vdso/datapage.h | 10 ++++++++++ include/vdso/helpers.h | 8 ++++---- 15 files changed, 25 insertions(+), 79 deletions(-) delete mode 100644 arch/arm/include/asm/vdso_datapage.h Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino