Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp613550ybl; Thu, 23 Jan 2020 04:48:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzZulBAqyj/FOgvF0EPGSTcQcoaRxjYwO9IiUxHjrgnC3dBZwh/yEsDQlMMVkyq1Pto/lOX X-Received: by 2002:a9d:6b89:: with SMTP id b9mr10797305otq.298.1579783716071; Thu, 23 Jan 2020 04:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579783716; cv=none; d=google.com; s=arc-20160816; b=h0kkwhyx71y0vagqdYYRvLRIzcdwwlXjygyAk9fH879d6o4q3Kt9zQ6QGEZGdHe7Rc /M+4zOcBu8Q7n6t0HBNc0/0DXOiCdobwyyo8cI+zUBOFSmVHtk71pUeOJT5Q5zykHl1Z 4MTTd213xcMaOalNzv9yZpCXL1wskPeYKxAwADFoazYKmoIQKNT/ov8JJ5nV6OL+5eO2 9GHLhEbq09W1aSgSNFu7KJSHapIXlkebUQNEbLzyxw7lha+kIdhE5NfSQfEI3K6SkyLF btFUSlPs4zHgwM2pZK2pUluxz9Q11JlFu+NDGXil+eC5Sw9CB8y8NlaFJaekNl0RPw4B 5Hmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hWWOH3j1hO+f6B2LiLZ8+M6Xm9ZL3e2ulS5HUNOL2FM=; b=evCeyeTSPYm8SdF2W0YccglWZq7UQZCojQPOylzw4i4HnikKKgIYWVtPjTBzKJDEo5 sd0ZeWurZ4CNHNgM0IsPlU24HyjsgfYWNWJJQwzJlOrXp63F/cE2oojS8lBqY3qseWK9 ZvrcmlpibVHCLwE3bBseByzw/x1hwbbpKkY5e37ulBWzvVIZqQZF4bbsMoqnrgV5wtxR NGBPgW7FSltyIKxSxl5ILnLzgAUF9mkGfCSnr061aYXo2eGvuPEuNRUQBvoSOKKsQ5G4 Qea/omEw86Bfj0bNRizy7vPImXPdWXV3DR0lHRVvArxvXwQVRpvu/AMcavlxf3Vrt2Ez GXDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si1027441otr.88.2020.01.23.04.48.24; Thu, 23 Jan 2020 04:48:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727235AbgAWMq2 (ORCPT + 99 others); Thu, 23 Jan 2020 07:46:28 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58203 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbgAWMq2 (ORCPT ); Thu, 23 Jan 2020 07:46:28 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iubsM-0004im-Jb; Thu, 23 Jan 2020 13:46:22 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iubsI-000588-JH; Thu, 23 Jan 2020 13:46:18 +0100 Date: Thu, 23 Jan 2020 13:46:18 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Wolfram Sang Cc: Krzysztof Kozlowski , Jean Delvare , Jarkko Nikula , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Next Mailing List , Kishon Vijay Abraham I , Greg KH , Stephen Rothwell , Geert Uytterhoeven , Linux ARM Subject: Re: [PATCH v2 1/2] i2c: Enable compile testing for some of drivers Message-ID: <20200123124618.ijzasifjbbmzyh4d@pengutronix.de> References: <1578384779-15487-1-git-send-email-krzk@kernel.org> <20200123091228.GB1105@ninjato> <20200123093120.GA2365@pi3> <20200123094107.GD1105@ninjato> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200123094107.GD1105@ninjato> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 23, 2020 at 10:41:07AM +0100, Wolfram Sang wrote: > On Thu, Jan 23, 2020 at 10:31:20AM +0100, Krzysztof Kozlowski wrote: > > On Thu, Jan 23, 2020 at 10:12:28AM +0100, Wolfram Sang wrote: > > > > > > > config I2C_ZX2967 > > > > tristate "ZTE ZX2967 I2C support" > > > > - depends on ARCH_ZX > > > > - default y > > > > + depends on ARCH_ZX || (COMPILE_TEST && (ARC || ARM || ARM64 || M68K || RISCV || SUPERH || SPARC)) > > > > + # COMPILE_TEST needs architectures with readsX()/writesX() primitives > > > > > > The list of archs neither looks pretty nor very maintainable. My > > > suggestion is that we leave this out of COMPILE_TEST until we have > > > something like ARCH_HAS_READS or something. What do you think? > > > > Indeed it does not look good. However having compile testing allows > > kbuild to run sparse and smatch which already started pointing minor > > issues in existing drivers. > > > > Yeah... pros and cons... I don't have a strong opinion to keep it. Since > > patch is important, maybe let's just skip this part? > > Yeah, let's skip it for now. If you or someone is keen on having it, > something like ARCH_HAS_READS (<- needs better name) should be > introduced so we can use it here. But that can/should be handled > incrementally. Isn't this "HAS_IOMEM" already today? The driver compiles for me on amd64, too, so ... Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |