Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp113056lqo; Thu, 9 May 2024 14:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL5STepYe0ftK0C6X7XHRaiLtF+Nut8OmTEyokcrnosDqrcPtY/P2AUvfcaaC1L2BfMNZCGQP0eoFlxhw2leM9ePBIPc8ssGOWz6j8Og== X-Google-Smtp-Source: AGHT+IHL1my9sP815NvdcR/Qwm2+flNIZhmHFE4Xlz7Ck1oJ/vi+0prUs8OXVwrhkKh6jPE50xId X-Received: by 2002:a2e:a590:0:b0:2d8:2799:fbcf with SMTP id 38308e7fff4ca-2e5204ccd9bmr4233621fa.34.1715290034892; Thu, 09 May 2024 14:27:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715290034; cv=pass; d=google.com; s=arc-20160816; b=ADrEO2A1OhwZBA1svvKwPpfrUfE5UiURgo7xt6eVU+bVPZjQncizPnpyGb4stvIuVx WQ+CBm2LARjkdoP6ehkBfRprU1UihUosc5Rsino1qgPC2BAY99NQS0KAsHIPtutl4ntU Q45Fw8FbsBf7p7Al0n5TKfgqMw9Dkcs/xHuuyz1jybOo4npHBpv5fwJ1u4AwTKbn0d6n hplAPaeVJmdaG4Xpln6KZGDIQa4lFHhf2RbGVp+Tu1GqOkCi/gP16OWx0D3+hdmYMwoq TxXRvtZD+nXOyhsacJ72PPVXoecGTfN3UY2rpDL0VRZcyhEwEwUHfwrAZOQ9y6MKFh1s AtpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=uJpnYp9Gok3jjEaTByhEx/g2RIutD08xBpO53TQkyBA=; fh=EUs33QDwqf4O4uNh+LncY7WNE2fGvTkCilYzT59hMvk=; b=whZCQhAezDTiVsjrEHZ6mb/4MhuG4Pi6s/SjtlT/tHXd+wmh15nC7GpScQiuhXqQy5 aTu/gwhN6TZ1kAg4smGOy7yrpXf+3u6T/nFKrlZA4UiC4l/tHMZrf+kUNRjV4XKxJyc+ Ipc8VCrcij0OXv5uRjt7ZU84qrNfhQhySILk9VOLtQnemPLSQWSnGa97XJD9tMWaYYwm GNni4juni6gzx9LCQeQskAwMdbB6nch0PTWUgnPW4KwioSycWkBKuqLSH/jJ7oW+RLL2 McyjcfSBtRxis8p6OiUcaxjqoMvyu9EMenhYB5yB4KMUSyoaE9sHJE2OEJ//qfVb1JuQ y3cw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=SvQCTsBu; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-174992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174992-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36d4dfsi1134973a12.536.2024.05.09.14.27.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 14:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=SvQCTsBu; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-174992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174992-linux.lists.archive=gmail.com@vger.kernel.org" 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 39C3A1F222A3 for ; Thu, 9 May 2024 21:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF2D61272DC; Thu, 9 May 2024 21:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="SvQCTsBu" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 653697FBBE for ; Thu, 9 May 2024 21:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715290021; cv=none; b=oft9zod0ts+vNqQTZasWDfbFoOeTgSEHXi5lsK4N627ke5U3fVOJeMKUM33U/BPv6HV9P8VzKWnz8dD6gtNgqYCPe/ry69MYHuIScTMDFUNDYeYKxC3Y3EliUNUM39HuZTnVv7oBJlJS8l0GsGdsWG2y2R0nvh2ySkKzTC58aDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715290021; c=relaxed/simple; bh=sh2RVcH3kYXx3pxWSDGSev2r56o7qSVgAC52eozUMkE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=qhzSzOaI7ne1XWA3i8xd/fOz3VO1ebXSXAssduKLGdMo0YX5yAUHaYSESalmUP7ikp2x2CIycQv57qis5NFQ6INZGuN7h1ZLy3tNwtmk7S1wvwFjKvhKe9SVUVPlfRIuUCKsUv2tfk4ZZs0wF0v99FMUlqhIE2X0G9o0uksCaQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=SvQCTsBu; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a59c448b44aso341804466b.2 for ; Thu, 09 May 2024 14:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1715290019; x=1715894819; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uJpnYp9Gok3jjEaTByhEx/g2RIutD08xBpO53TQkyBA=; b=SvQCTsBuu9qYbfTyxs3r99RzaTnjBQyOb9AbGUAGwSU6PvO6IKULoplLnnYOcEi4lm 7uve9FtRUWnD1D/OoxXL54vWkU6gxdW5fRILK+MpXDhrDyh+kXK49S4Goc+QhBoOP/vO ViFCamhIdClhN0tuwRO3TqThqoRY0wLj6CJ/otNCKPuCNCVvnBH644uxNGk1rBRvVc3u 0uXFgip7VOU2jdyZqCNBdY9eVd4LcwkAx3y/s1mzCI61nb2gAjuXWvcejeeoOCvJ0d5y TUGh6b1cLBP7AC8mVdpEuXjadJtHMShTNzt5sFB+xqP+958DDHuNl/3JGFMDdYfLWyKJ LgRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715290019; x=1715894819; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uJpnYp9Gok3jjEaTByhEx/g2RIutD08xBpO53TQkyBA=; b=OrPFtS8gOQVRYT4NZkZ1uzJjaQrB/2VEudAZX1k2UiZqxRTQQ2WAvwdhXkmdGvybx4 t+PDHVMaZ98o3Jataz34qMfyyrYOQv5FD/wKPOcvW76t+RTIkAE0WGp1vHF4//28ZiaA gNve0nmUBoIyLzZrXTSkNWIZVF5MhIVDo33TKiXAV7oxea13B191tDjmiHV/jhiSGK1P gN+kIXnk5/ndDNytA/XNUaMl6wugoqEuMNXTOI+I+if1n6D8LFCZ0KFlO4h7lho9ACCN oGsjd1hLmwOkqnJGFzPC8MlU3CX7HtDT8qsMj6kCpWok9njnKBRxSHWyojua6oFhLsee 2Vuw== X-Forwarded-Encrypted: i=1; AJvYcCVHAD7e0uOrl/pvYWUqw2SJmGVtExGcdKdN92zp9CXWKj+0XB+G/oP8/NCdoWj9GD3ZFo377XBQ0H4uUnMr8SmBIRCw7WiJrMy7VCfW X-Gm-Message-State: AOJu0YyAbZihtndhAWzgyeMVJgu680SDjNcYBBM7uX5uLMUpAF1VaKRU NZA4hGDhWNI6vujiRMe3a/V2frcB1FAxZm78oP2/EiRlukF4l8A6h88rsQCh+q8= X-Received: by 2002:a50:bac4:0:b0:572:9f40:514d with SMTP id 4fb4d7f45d1cf-5734d67aadbmr523850a12.29.1715290018651; Thu, 09 May 2024 14:26:58 -0700 (PDT) Received: from smtpclient.apple ([2001:a61:aa3:5c01:9c2d:df77:ab3f:a592]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733c2c7dd9sm1065430a12.69.2024.05.09.14.26.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2024 14:26:58 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH] net: smc91x: Fix m68k kernel compilation for ColdFire CPU From: Thorsten Blum In-Reply-To: <98259c2f-b44a-467e-8854-48641984e468@lunn.ch> Date: Thu, 9 May 2024 23:26:46 +0200 Cc: Nicolas Pitre , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , John Paul Adrian Glaubitz , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240509121713.190076-2-thorsten.blum@toblux.com> <98259c2f-b44a-467e-8854-48641984e468@lunn.ch> To: Andrew Lunn X-Mailer: Apple Mail (2.3774.500.171.1.1) On 9. May 2024, at 22:36, Andrew Lunn wrote: > This seems like the wrong fix. >=20 > commit d97cf70af09721ef416c61faa44543e3b84c9a55 > Author: Greg Ungerer > Date: Fri Mar 23 23:39:10 2018 +1000 >=20 > m68k: use asm-generic/io.h for non-MMU io access functions >=20 > There is nothing really special about the non-MMU m68k IO access = functions. > So we can easily switch to using the asm-generic/io.h functions. >=20 > So it rather than put something back which there is an aim to remove, > please find the generic replacement. This _swapw() swaps a 16 bit > word. The generic for that is swab16(). Thanks. I will use ioread16be() and iowrite16be() as suggested by Arnd instead and submit a v2 shortly. Thorsten=