Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1805370pxk; Sat, 19 Sep 2020 02:57:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEfITExx+lbPlKsyzNRjjIajDzmDYa+D3oGszBl9SjMmvoLIr4Z4I4jhd5DJsRGEZKb6La X-Received: by 2002:a50:fd19:: with SMTP id i25mr43269828eds.142.1600509465762; Sat, 19 Sep 2020 02:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600509465; cv=none; d=google.com; s=arc-20160816; b=cHZqCMOyrIk1Cb0oMNKGDiqpJJ/aYOLSBGG020NDYtG/x1v0TuJ78Qhg2ZfxigTDPn ORtk0cVQtbSoZbQ+VmwObGrhzZL85oL46GBOdC4MkfLeWTAuYKyCqI4L7RLs1VkMWoJD hm36qPGcokZLxEEqugaiasN1V64mnDP4pCUkw7ArTwd/EC59mwcVG3wLrc2XYTpqkHMW eMCJr2G+ZRd8e6Xpor2OpyqNgWC9JXqHWFvqxnMdyzaXgV/LQNFHx54xJ2A30WCSgGD6 ZK6Upgm7sd6oCte2EFuf/oh0vRroxEFAl0AW6UjJ8Gq1zCCxUYXXqNwchKkC2jRWhDv/ UPiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=oaJhSwsgR0nmnF72ycl1uHtJEchr4eb4XEnAwjtoSQc=; b=D5qRoTU96+1MLEdXu/mzDFVkkDfstSeKe03OfVs90c7z9rr5dXygjScIn64gOlAI4/ wkwvqRz9W55F44/l3r2YkxKycK7Xl5ecWgbtUtXJabi1Jw9YA1ipXB8NKeJuzALs2OOd 2LjnenLb7mdf3PI1H4k6gNPBP/IpBQKiOvx7/IbGSHId5xvL2voe3YOfhHdgdKlg9lrk j/SfQiE1mByL3PSG42pUm/DNbIGjBLH/FCFZH7qV3N57xCPVMDu9rUInx2ePkWvmrXpg WEaPEnBluWcHpS4Jf6vuf0JL8Y9sEhrepXelbGCJUVRMXTWuASJLnG1L/cf29dMWPF9k CKbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi17si3762137edb.582.2020.09.19.02.57.21; Sat, 19 Sep 2020 02:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726168AbgISJ4U (ORCPT + 99 others); Sat, 19 Sep 2020 05:56:20 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:44530 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgISJ4U (ORCPT ); Sat, 19 Sep 2020 05:56:20 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 15EA31C0B85; Sat, 19 Sep 2020 11:56:17 +0200 (CEST) Date: Sat, 19 Sep 2020 11:56:16 +0200 From: Pavel Machek To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: linux-leds@vger.kernel.org, Dan Murphy , =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Rod Whitby Subject: Re: [PATCH leds v2 03/50] leds: fsg: compile if COMPILE_TEST=y Message-ID: <20200919095616.GA14795@duo.ucw.cz> References: <20200917223338.14164-1-marek.behun@nic.cz> <20200917223338.14164-4-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <20200917223338.14164-4-marek.behun@nic.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2020-09-18 00:32:51, Marek Beh=FAn wrote: > This driver can be compiled on other platforms with small change if > COMPILE_TEST=3Dy. >=20 > Signed-off-by: Marek Beh=FAn > +++ b/drivers/leds/leds-fsg.c > @@ -16,7 +16,13 @@ > #include > #include > #include > + > +#if IS_ENABLED(MACH_FSG) > #include > +#else > +/* for COMPILE_TEST */ > +#define IXP4XX_EXP_BUS_BASE(x) (0x12345678 + (x)) > +#endif This is _way_ too ugly and I'd have to read the driver to understand what prevents it from using this address and corrupting something, somewher= e. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2XVwAAKCRAw5/Bqldv6 8s+DAJ9yZPWsnilPO6oUxxol1S6NKoTVQgCdHpNcrf1DKv4OWZreFG6XSBZeJis= =BX3v -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--