Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1805526ybv; Sat, 8 Feb 2020 06:23:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwRvX0Umf/EW+zD6kk+ZHnlCDPbjJ7+mxPudXC2QVIMcf4km1Fi2yAh33NHq6yGsu1UIVB2 X-Received: by 2002:aca:4ace:: with SMTP id x197mr5586214oia.23.1581171785691; Sat, 08 Feb 2020 06:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581171785; cv=none; d=google.com; s=arc-20160816; b=UgD14Df5VWyCtnB3jNgrlX0wKmORiORlQbsmPUKYflIV8MUvM97j/Zcn5s4cVU76/w 3GKx0lEaI9gMe6z5Nk3a/1EQfwgQL7wW8tTQ+MsNGdIhud+Tbrk4pJTkLNRLuzcKrxoL pYxDkV2GtmEbONN0BNHZnrLekrKF1QS0G0nkd3UlopDvsxyn+uCeT1jas4478+86Y1Yt 0zIchCa1TiMdmNxV8P6zaARWpE4NvRv6FR0OI4OCq3wqQ4++97AdNsusYClI31M3fJ0L 12MFxGxnqHFuRdZTtPzNa7qsP5FO9Bp+QfgYsLZyij+RbOOd6C/2KPfpZ7A+DjSnLJxy wx2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GK86kXCsfmoEzp8e7PHMoIFZ5dmpQddgzx3iX22JpLM=; b=QU5e7iDDW6AAyD6dPnCrMYsIjcpzF0L76a0DI5xYQfi3XVI2EEQfMRqvi7vd4qBF96 Ft1DK0M5lDcYJApgdvgJ7tnaozScRUxQwrd2ZAQukBy/ACntCNpDZ/7hbZFq2Hzk+J1B f+rkdwLde/Wp2YT1UAgr8oKbyMDFLnWiHSKav0PKlFISAbzNXYDt6oB9NAO1LP28I2Uz UsEG9Vdrh4l9T47OzJHSbZaQiy8ocqRaJQ0zaVDGY30MRt/4IDlyhEF5jqMz8ZI7Ofhg 0we2zaCnqH+j8yWQOynIy9ZawZIwv09orT0Fbenrv5VBXs6T9xZ0G6Pf6AVD0Wnn7pRo TXmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iliZFfld; 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 w23si1831207otm.256.2020.02.08.06.22.51; Sat, 08 Feb 2020 06:23:05 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iliZFfld; 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 S1727335AbgBHOWu (ORCPT + 99 others); Sat, 8 Feb 2020 09:22:50 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37395 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727162AbgBHOWu (ORCPT ); Sat, 8 Feb 2020 09:22:50 -0500 Received: by mail-pf1-f193.google.com with SMTP id p14so1294726pfn.4; Sat, 08 Feb 2020 06:22:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GK86kXCsfmoEzp8e7PHMoIFZ5dmpQddgzx3iX22JpLM=; b=iliZFfld6Yb+NUC0MA9B2cyfEzrqjeK06ngz8vxLV16ctWDk3gmns2p3o2KQ8BsOqI H9eqDJE886ivcJiTDcnS3zkkdLUzEeoZf1INNiCWO6MTC0HAvo/12WttRWjZ40gAwIBC 6Ku0hDZcg9xnMnriuNyLaudZ4sGK9lPPoyd9gRFWmUhpCnlKmrnFkKA4sqXq06kBE9Tu LX84D4+V/sHzKutUC66tOdr5uU5o+rgOz8ZuVAlR4GfEMFpUHoJhZpIC9diWnNyHSARy GER2q66yWClSGIYIZSaTxSwaUbqdrzj8Cz1yB31ET/W1yLT97crgxeAOTmqtMIVYiGuy FPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GK86kXCsfmoEzp8e7PHMoIFZ5dmpQddgzx3iX22JpLM=; b=ExQV+BbNGxUU+s5kJs5XOH2N8+2lqP963DxiULD2vsHBJ61BpZkZe/KW6DqfspjM7H ybWLCdMjJA20hiDxOgrTBA+fdbuktgIJrts/L7IT2yB344epm3QWv6CCcWrRazOjFKBb dATmsXIzm8rtoELGdpobih3e6PHZEnK9LtFVVLHI2wNcsS39ErQDT18DJ3VoMDmeZrLs X/T0IfquFnPH0gX7l6KMweGsAAeeIkroGVHuG7dpSJL0rokCOSodWhDX9te7Z3nRhvCF uZDXBa7vJpTWoO80tcFkarKK8IW45G1xPgaFoHh+HxIFCvbr4BbVoVc8Wl2o4KSPycKH lBtw== X-Gm-Message-State: APjAAAXMCS4m/EnbLFlFNR5n+cpF33wN4YFrF6pXPZbW5y3DvvH2YdzT JQrhW+Vhv1OfRsGSDAtG6H0= X-Received: by 2002:a63:cc4a:: with SMTP id q10mr4843324pgi.241.1581171769224; Sat, 08 Feb 2020 06:22:49 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u2sm6589682pgj.7.2020.02.08.06.22.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Feb 2020 06:22:48 -0800 (PST) Subject: Re: [PATCH] watchdog: da9062: Add dependency on I2C To: Marco Felsch Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Thomson , Stefan Lengfeld References: <20200208130803.23387-1-linux@roeck-us.net> <20200208140152.op4dplfvljosnlvb@pengutronix.de> From: Guenter Roeck Message-ID: Date: Sat, 8 Feb 2020 06:22:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200208140152.op4dplfvljosnlvb@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Guenter