Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp963764rdb; Sun, 18 Feb 2024 22:25:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdz73SXfDyNEBoqill0pbWJQc7TqinZ6+Yj6bNgPMXJUBUIgDH1T972JjZ2EYLIqudgCNWhi+9Q9Oi5/0n988G5HYZk9VyXv8vj80O3A== X-Google-Smtp-Source: AGHT+IETW4DPqCsHOtV4vuV3F0UEuwKHpjKd0aE9M8eALkQY/EZbWVhKALVUq37Q6HGE/7lTwg3c X-Received: by 2002:a17:902:da87:b0:1d8:f129:a0bc with SMTP id j7-20020a170902da8700b001d8f129a0bcmr11750973plx.13.1708323959365; Sun, 18 Feb 2024 22:25:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708323959; cv=pass; d=google.com; s=arc-20160816; b=LBUIpGHAZVFUJUCNPDV6zZS60R1WomXN4SEsfe4R9y/wbQCd41z9+JM5LTT2ZYD42b hQCIU1WyJ53i75OHzWnF6kxWAZpW4zBnG2xVIXBPtyRKVJMA7vneSARB4pkLBoYe7wjK Dyerw4GqqIUomS8fEYQTiwElA8PlEh2K9cVx2o299vHVSXrRUdzchKbHiRgqYocofWf+ +naLJAEI+lF1B7PkvlcdzuEiPuj/5a9zCon+m36mPU9ldevXgQxaEprobeQLuDwDOGAY PcATNaAvmsBEXKte53KBOuW59bmPY4YW0D2jyXgFm/zKtbJ24Arf2TmYiqwHwIW9HQ8F okkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature:date; bh=7d9J/jggDFvXefrkjiCWASipqQmLXrO/7brHX5k4i7E=; fh=NdrHtVXLDq6U9Udi32AthI1r8SzPHF/GfvRqsYEyh7k=; b=dMqt5unM783QoEI8J3A8hddiQg9XJN1LQ3BL90jXi7SqEdyFeD7iz8x7b2KLoY3N4s DytqFqxYSbo4vBeEB9uN+nMtnC0ATrzf0y3NCqI1Y3DjI5kAhAwDn22/SR2VfkNY18+8 1Rvn45PYyTtTsBl+ShYoqyZy7JKQIbN441kxdu/B/uzYnWlmLmaWmjmnGZv/eJZR8qXd 2RMg/ckALyZc0+UYlf2qBUHt5rh6NgO9Ay8oTbYMUaa54VZVYaAwptvzOeXbcD7OagjN UwC1sWnPXnSks3kavrFUOtAw5t+u8oFUYAf0ahEkp2iMr1aun9IYPbsQJjrXbabg+BCk Xx+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TCrIH9Ao; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-70771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y9-20020a17090264c900b001dbe5c1f2eesi1938467pli.223.2024.02.18.22.25.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:25:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=TCrIH9Ao; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-70771-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 19D142818A1 for ; Mon, 19 Feb 2024 06:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4F5020311; Mon, 19 Feb 2024 06:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="TCrIH9Ao" Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (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 6FC63208D7; Mon, 19 Feb 2024 06:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323932; cv=none; b=hyT0xBrUz1+rEbFWEu3035Gdn71fSfpJ8vD6rxJ/e1SPqOANZcDEAnXM2axgVaVdFfM1JCXzEaj0VwAFmU6MpYsdciRyILHhVTq/VBNOcFgqPoWEXsQwPotgaMqUBKzSCXfKU/F+uAZ8FmzIJaa00Ayg6WQW9nRXWtlAseQe628= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323932; c=relaxed/simple; bh=70Ay6BnT3v6YUlVpOlPdzbiXxgRhOAsAQxZhR1uZTMc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u4BodusGdPx5ug/sAYq/yQ9HE42gsnx1wOBGIDYYpxQXVhp4LHoEcraUfLYl8RQ8JTxLllmOmj8UVQ9BZY9SR9BRu4a+J0X6KsTAJC7xCH3TtZXBbRiE04ZxNsLCbXa6YzS2QeHJLqbNzlGzBQkuf3by+xsBAwh10THC4xBs6fA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=TCrIH9Ao; arc=none smtp.client-ip=95.215.58.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Mon, 19 Feb 2024 01:25:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708323927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7d9J/jggDFvXefrkjiCWASipqQmLXrO/7brHX5k4i7E=; b=TCrIH9AoO0q1jih7sKPGtaXv5qAHPl5jLrMi26x+lpZwRDXT/lR26HrhrW9hB12r0tz/oc EsJ3dBUn2+fVuvoJuyNzS4mXYVwv2/bJpHdxsd8/kWPbWklXztq1DuorGHVLqZrf9k2CtS kWH+h8cc+IA5QdmLh2FRWACXLrx+ZoM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Arnd Bergmann Cc: Calvin Owens , Russell King , Dave Martin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "linux-bcachefs@vger.kernel.org" Subject: Re: [PATCH] arm: Silence gcc warnings about arch ABI drift Message-ID: References: <431dd956-ad31-4da8-ad42-34f7380824bb@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <431dd956-ad31-4da8-ad42-34f7380824bb@app.fastmail.com> X-Migadu-Flow: FLOW_OUT On Mon, Feb 19, 2024 at 07:21:11AM +0100, Arnd Bergmann wrote: > On Mon, Feb 19, 2024, at 05:09, Calvin Owens wrote: > > 32-bit arm builds uniquely emit a lot of spam like this: > > > > fs/bcachefs/backpointers.c: In function ‘extent_matches_bp’: > > fs/bcachefs/backpointers.c:15:13: note: parameter passing for > > argument of type ‘struct bch_backpointer’ changed in GCC 9.1 > > > > Apply the arm64 change from commit ebcc5928c5d9 ("arm64: Silence gcc > > warnings about arch ABI drift") to silence them. It seems like Dave's > > original rationale applies here too. > > > > Cc: Dave Martin > > Signed-off-by: Calvin Owens > > --- > > I think these should be addressed in bcachefs instead. > While it's not the fault of bcachefs that the calling > convention changed between gcc versions, have a look at > the actual structure layout: > > struct bch_val { > __u64 __nothing[0]; > }; > struct bpos { > /* > * Word order matches machine byte order - btree code treats a bpos as a > * single large integer, for search/comparison purposes > * > * Note that wherever a bpos is embedded in another on disk data > * structure, it has to be byte swabbed when reading in metadata that > * wasn't written in native endian order: > */ > #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ > __u32 snapshot; > __u64 offset; > __u64 inode; > #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ > __u64 inode; > __u64 offset; /* Points to end of extent - sectors */ > __u32 snapshot; > #else > #error edit for your odd byteorder. > #endif > } __packed > struct bch_backpointer { > struct bch_val v; > __u8 btree_id; > __u8 level; > __u8 data_type; > __u64 bucket_offset:40; > __u32 bucket_len; > struct bpos pos; > } __packed __aligned(8); > > This is not something that should ever be passed by value > into a function. Why?