From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 0BD3216EB51 for ; Tue, 18 Jun 2024 20:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718741273; cv=none; b=j5Ti9zSOA0rFTr90A6Hx16zmo0zSflbqkEcGZevQ8xhHypz3TA54U5DV7jtFO6h1o+uW9QEpi2RVBPOUK5s2tJp1BmWmHqFHM+Q4rUDhL1bumBM912S7PQp1HliI7Dn/87WJfwPXueq8RLXIFoEY+nLGv/cVD8/YHwfqWuwHIVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718741273; c=relaxed/simple; bh=GS+MYpzkl/bTjJ1KKsJRovOoqGznlFU6k1AlD8YflpQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QxcXQNd8Y3+G+2g0Q+DZQt6W+UbYfBcOyNgKrNvAtj0ZuLSmRlJIIm3bEJdMllYmnnS8BEsW2b+GP/PNOMtkRpOjB9vFuQ4TRNzmXYItFnDGLLupKCFgCUcYbaYKoHPik3RtsVRGUvR3u43CmCPETdGu0O9MCaZ34Yet4Yz1TfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=0pybXPiM; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0pybXPiM" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-705bf368037so5305915b3a.0 for ; Tue, 18 Jun 2024 13:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718741271; x=1719346071; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=DW1DlL1DLq+3wP/n1jncS7W2woNiKogvRNYb00e4Mms=; b=0pybXPiM3J1MqqjuPScK3RK7ekLiueihWGIpp1gjS6A5wGiwogus8wwh4SI5ZTrjOa pk3LaCBp3IQZCr8HsHObErlFY0mF2o5rmOqXhKfQLqV1C3HuHsJhjGbMxdzwdnwVmspH dzCGvZm5exO0QjkquuxNTszixpxwYTXV9jIrNNlCYx3RBuCthCwm66Ioi3hIlhi01SD5 dEzyIaswibyQc11Pk+5pLcYIGFwIjGgUnJAa3d1jueNx8kMgjyRCY4P9JpM1NA7Fuz0K d40YdaNDrI2oio9X8AZ3Umb55jawLfsHnAc2uFjd8DUyO0sieg3TZgju3BrveD9TfMAR Xu5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718741271; x=1719346071; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DW1DlL1DLq+3wP/n1jncS7W2woNiKogvRNYb00e4Mms=; b=X9ABUOXfrdSulOVymhJWF+RKd5+Hny7OPJoi+e4YT2O8uhDjQWuANvwHZlYwqLtM5A ajlWWyIaIh/aXQ8068HOm2AIX47ev2xb2FyDJMwuCDkBwxghNs14wMkY9At6ZWqjbT9s 4tvdQ/4pePvd41ncpikjUNx0u2i3b4wEIAaEVfT7V57ehlOzZpZHaVM7lgzQtBmVQ2gg g080AVmUhEKrDV3U5DLgHTzHEELw2bE88Ztut0PiAqJ2G9OJQG7hhyAy1zUhErDqoWqZ 0+kKNhtutTIwOlch2hkSjQTuig/ZdWl+LczocjRTwFlaKhRZKrAN+tA4JgaemNjcv0Ip EkDA== X-Forwarded-Encrypted: i=1; AJvYcCXNBnDNyV+6yc9gb3zPni9FUEjMOpPvNon0fRX0wcZ0PAE9WyghTcNMAItGFEasckVua9No7vRsIBtFkE6JFniOEpy0iDzuih7dsKeW2w== X-Gm-Message-State: AOJu0YwTYHZ7bNa0vBjM/L07QHQFD4+tg5rJ/CIZvo78sf+NLuqkVSgn C4bCGuihGcVLUgnrRVNGnMGNcibGHDdeg9D3ez3EnD3CQhU8BOWmZcBhn0fNkg== X-Google-Smtp-Source: AGHT+IGBxEmS/OHXtQQIWsc9ie2qVIzWvAZxfV32t6UbMfyp2e8b6CplgcXOur2GKUnes5dpMCsXtA== X-Received: by 2002:a05:6a20:1aa7:b0:1b5:ac9b:a59e with SMTP id adf61e73a8af0-1bcbb55fdd0mr544609637.32.1718741270996; Tue, 18 Jun 2024 13:07:50 -0700 (PDT) Received: from google.com ([2620:0:1000:2510:5dfa:e7d1:8470:826c]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6fedcf35688sm6992723a12.13.2024.06.18.13.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 13:07:50 -0700 (PDT) Date: Tue, 18 Jun 2024 13:07:45 -0700 From: Sami Tolvanen To: Masahiro Yamada Cc: Luis Chamberlain , Miguel Ojeda , Greg Kroah-Hartman , Matthew Maurer , Alex Gaynor , Wedson Almeida Filho , Gary Guo , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH 13/15] modpost: Add support for hashing long symbol names Message-ID: <20240618200745.GB1611012@google.com> References: <20240617175818.58219-17-samitolvanen@google.com> <20240617175818.58219-30-samitolvanen@google.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jun 19, 2024 at 01:47:13AM +0900, Masahiro Yamada wrote: > On Tue, Jun 18, 2024 at 2:58 AM Sami Tolvanen wrote: > > > > +#define barrier_data(ptr) __asm__ __volatile__("": :"r"(ptr) :"memory") > > > > > I know this is a copy-paste of the kernel space code, > but is barrier_data() also necessary for host programs? I tested this with Clang and it worked fine without the barrier, but with gcc, the code no longer produces correct values. Presumably this is a load bearing data barrier. Sami