Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3501263ybv; Mon, 10 Feb 2020 00:54:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxoATbI4/EOGVIuQexyQmNAkLUM2mGZR6lSPueT4GQhYNTyJ3/emo0yE3/VmZMv6xMDNNz+ X-Received: by 2002:a05:6830:10a:: with SMTP id i10mr264038otp.365.1581324887376; Mon, 10 Feb 2020 00:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581324887; cv=none; d=google.com; s=arc-20160816; b=V4LSbht363/Df7CAwwp6+sTsYay/pDIHCC2SDzQfKK94rG5XwE5rlwJOUkysh3AR2w pMle8K6WXE+bu1sK5XrWlYuYoysMKNXLV4q62JxWaf3iTcmiZgvZ/q+iD1fYyANRw8vz 4fRnk1MSVUC3TXUpPD8i5hLrThWWOIg81hytpZpGU0ql8cK/idGn3Pep9QIDyUIjjGEx CVKEMfEuw5JpH/5rU+o1OudySKYeOuNJBF5j8nKeOaDIsaR/NjyIkmGbmYLhAx6p/mRK W14Nu3GZ/hCbEwaWgMwwaT4q9bwa9xYSaTcyhzhVHn6trHP6Mzt6N1MZp89Wzfb2fnDs BlXA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DdYCzo9RGyP+d2bfg9wmtv+a2Qo9f8QQkM0dmcs0qhw=; b=p56ST8GIGLpMhbQjLbmb/0Y+T4RJDyBqeKV8zTRaARrGAdXF8uQjKbSgEbu73ggbUY u92ATCN+B0KahVhDv82KYzmJSY+a3XL6t0GrJN9632QwUZrAYjHZQl82D3xoGYI+KWIC 6BgSd8HLujl7b9SZbVrUUfbJmjx1/tNneH02hz/+1rQ5WhUZ+s0icXUqwDS4UsKV5DmM rO2YkJmjPYcxmZbQrHfcc3PdHXSR0M/rOlfvcQCwRzmAsWZh4Com74rbS9njEkyaFTY7 gJruOITwQd7jMeuRC6SbkNIIBhlxxMYuI2n1JB+qblX8+i8nA4kfmckV8FVWai7+77hn F7Bw== 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 z62si8086401oiz.271.2020.02.10.00.54.34; Mon, 10 Feb 2020 00:54:47 -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 S1727582AbgBJIxM (ORCPT + 99 others); Mon, 10 Feb 2020 03:53:12 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:38709 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgBJIxM (ORCPT ); Mon, 10 Feb 2020 03:53:12 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j14oX-0001oF-Kk; Mon, 10 Feb 2020 09:53:09 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j14oX-0000tK-B8; Mon, 10 Feb 2020 09:53:09 +0100 Date: Mon, 10 Feb 2020 09:53:09 +0100 From: Marco Felsch To: Guenter Roeck Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Thomson , Stefan Lengfeld Subject: Re: [PATCH] watchdog: da9062: Add dependency on I2C Message-ID: <20200210085309.vv47s2i5kg4yyagi@pengutronix.de> References: <20200208130803.23387-1-linux@roeck-us.net> <20200208140152.op4dplfvljosnlvb@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:48:54 up 87 days, 7 min, 100 users, load average: 0.12, 0.09, 0.02 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@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 20-02-08 06:22, Guenter Roeck wrote: > On 2/8/20 6:01 AM, Marco Felsch wrote: > > Hi, > > > > On 20-02-08 05:08, Guenter Roeck wrote: > > > Since commit 057b52b4b3d58 ("watchdog: da9062: make restart handler atomic > > > safe"), the driver calls i2c functions directly. It now therefore depends > > > on I2C. This is a hard dependency which overrides COMPILE_TEST. > > > > I just wondered why it doesn't complain if no regmap support is on and > > surprise it provides stubs ^^ Is it worth to add i2c stubs too? > > > > I'd rather not go there. In practice it doesn't make much of a difference - > it just ensures that COMPILE_TEST can run on architectures which don't > support I2C. I think 0day only finds it because they select COMPILE_TEST > and then selectively disable I2C (and maybe other configuration options) > to catch problems like this. I know, just saying that this is a bit confusing for a reader because the deps are handled correctly by MFD_* and REGMAP_* symbols. Anyway thanks for fixing the bug I introduced. I was a bit to busy last week. Regards, Marco > Guenter > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |