Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp615886lqo; Fri, 10 May 2024 09:23:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXASEXDr2r9jr/XGeagYwXYFTwoGIR+XOq/jK4jjSg77kF+HENDp45L8pIzXq/MmPUrjRFCO+EgQGJm3iCsMm3edwNa9UvvruN3m1scQg== X-Google-Smtp-Source: AGHT+IFeywZuN8VbciXLz36vOdaRqXGvvfeC3PHS3vHP1BpgJYgHSa5rH65rtFfR6qFproINQBrJ X-Received: by 2002:aca:1314:0:b0:3c8:47a3:3cb5 with SMTP id 5614622812f47-3c99704c1demr3308984b6e.24.1715358212398; Fri, 10 May 2024 09:23:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715358212; cv=pass; d=google.com; s=arc-20160816; b=CCGGufUDulzNKlwHZ+EiPIOva4njLau/I5nAH+k3mFbRSQLkPEF07ffeEoK0S0mpML V3W+4aPbYbCulQkg2Yw88CZ4iqEACZI8MGhis2Y/UY0JIZg/uFKpEh5dp8/0UJIPG5Be c1i3XqN/kgB+ojzY6wlgrMTyVQ6kZaEks49B18bDfG5cqioFMvP6+VzTbtEEQH2aFJN5 k8AdV/BHO+0k8L3tdKxWHkg1s1fEuwrJLyn+cROqZ3W8LX6ftev7IoLnCJaUJgbrYhvh RPq0TDI8qC5oTum1ohzyF3p74oKBzlxFLcNCiB0UDUYXuTEScfBSuKW32YVixkoWxurj Ou7Q== 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:date:dkim-signature; bh=jteZ0Puod1sISdOydEueJECfJg+J6qXBz+kx/rQs/VY=; fh=f+1FFUICrHnRJVLEdmkL84kGSQZSlCt4AHgqxUrUDGs=; b=UXzw+xGnHIQeSrkGdQXzyybiz1/eiPa0/j3n/KssyWFZ3U+h60iWBG61uHQGdNY9AY SFxnHpEXWIkxSXuwaRVhTsm93G1Ie7KcA510ekaz3DlwiJY2KrWETicar2ML6JdSDI9R KIIRDuoK0J7ab8FMmMYWKQ7VfMoQkFAEViOXvMJlGERPlsL69sOnFNZqvSeRYxY3wrbz CxRFexwKlO8VZR8ayWdoRePjKMwIIwKWlYhAus4d+jk08Po1IyGAQ71MkAXIs/JlJAp0 ddhRZDUaPsdLNXFLe2h32c2qVR01f2prqJmUhAh39c9TWihNV4MnFda4tBdwYwdGoRp1 NHOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i0d056CB; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-176009-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f30b6b3si39069466d6.609.2024.05.10.09.23.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 09:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176009-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=i0d056CB; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-176009-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176009-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4DBEE1C24B48 for ; Fri, 10 May 2024 16:22:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4E12174EEB; Fri, 10 May 2024 16:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="i0d056CB" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 154B5446BD; Fri, 10 May 2024 16:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715358141; cv=none; b=gOTJNGjJnavmxX9uRZ0N/WeyDJVS9dyJ9EpxJAKzhA9xTJkQvcN+niuJz4ocUlXQsfeW6cqi3l50f1uUpKIkGppXsv5qF5ITvDdGSCoXZns5D1hufXFM9oD+T1XXsh58KefjEuMZYOrhXRwW/d25czbmb0xdxQ66VJ9Yk7XfwQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715358141; c=relaxed/simple; bh=f5Lyl73/buxOPCrNGhmeGwJJGuEKE+nFnd9kTzyxINg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gu2fNfHlwcJxcmLwigU/XTEVj6hJS1VYj5gZtDcCiw/D5SEdFL5dziN6D2LAO3PT8LB3eTVB2PBR1JYjaJMEGtDDQSKinOW2/gtptvYKLc8JmZSw3P73DOzbpjM8nwa7MkXkt3hSBLhgikshBGc8krkyNUO+NiG9BvxQz/yiNH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=i0d056CB; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=jteZ0Puod1sISdOydEueJECfJg+J6qXBz+kx/rQs/VY=; b=i0 d056CBXtLAnuBEGPK3M2nRjkWiCBcubeqSymv+R03oAd2lBoif2/NnxOGH0XbGDpgKDKNCaBcKJnG RO9MkWAdG5HP+5fNWXcRneBsNoWVn3OrRzP8+bMAB4IYEpY66FmHUGkutW9vwPb16cMHR2h1jFWRG c+n+Sy75kioeUFs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s5T0J-00F9SY-It; Fri, 10 May 2024 18:21:51 +0200 Date: Fri, 10 May 2024 18:21:51 +0200 From: Andrew Lunn To: Thorsten Blum Cc: arnd@arndb.de, davem@davemloft.net, edumazet@google.com, gerg@linux-m68k.org, glaubitz@physik.fu-berlin.de, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, nico@fluxnic.net, pabeni@redhat.com Subject: Re: [PATCH v3] net: smc91x: Fix m68k kernel compilation for ColdFire CPU Message-ID: References: <20240509213743.175221-3-thorsten.blum@toblux.com> <20240510113054.186648-2-thorsten.blum@toblux.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: <20240510113054.186648-2-thorsten.blum@toblux.com> On Fri, May 10, 2024 at 01:30:55PM +0200, Thorsten Blum wrote: > Compiling the m68k kernel with support for the ColdFire CPU family fails > with the following error: > > In file included from drivers/net/ethernet/smsc/smc91x.c:80: > drivers/net/ethernet/smsc/smc91x.c: In function ‘smc_reset’: > drivers/net/ethernet/smsc/smc91x.h:160:40: error: implicit declaration of function ‘_swapw’; did you mean ‘swap’? [-Werror=implicit-function-declaration] > 160 | #define SMC_outw(lp, v, a, r) writew(_swapw(v), (a) + (r)) > | ^~~~~~ > drivers/net/ethernet/smsc/smc91x.h:904:25: note: in expansion of macro ‘SMC_outw’ > 904 | SMC_outw(lp, x, ioaddr, BANK_SELECT); \ > | ^~~~~~~~ > drivers/net/ethernet/smsc/smc91x.c:250:9: note: in expansion of macro ‘SMC_SELECT_BANK’ > 250 | SMC_SELECT_BANK(lp, 2); > | ^~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors > > The function _swapw() was removed in commit d97cf70af097 ("m68k: use > asm-generic/io.h for non-MMU io access functions"), but is still used in > drivers/net/ethernet/smsc/smc91x.h. > > Use ioread16be() and iowrite16be() to resolve the error. > > Fixes: d97cf70af097 ("m68k: use asm-generic/io.h for non-MMU io access functions") > Signed-off-by: Thorsten Blum > --- > Changes in v2: > - Use ioread16be() and iowrite16be() directly instead of re-adding > _swapw() as suggested by Arnd Bergmann and Andrew Lunn > > Changes in v3: > - Add Fixes: tag This is for net. Cc: Reviewed-by: Andrew Lunn Andrew