Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1706780imm; Wed, 6 Jun 2018 22:17:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVVGCyX36ltkLbTHPilTowk50cezNqfd8tQA1oHTYVD6K9AuFCFZUfKdmfLGzPkcLQWTZd X-Received: by 2002:a65:5348:: with SMTP id w8-v6mr356378pgr.247.1528348635914; Wed, 06 Jun 2018 22:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528348635; cv=none; d=google.com; s=arc-20160816; b=SZZ9Xzw3UPLNJB8uycSUvDkiTVBw81g/mtmtmUOfJ81M0l7O/X4DW2qljcN0T4hz0+ CzuFyZADm6Gl9UJQagIqidpVhF0gIj24QXtg2nr2sUUccakD8D0RGdDvtPwxCnqwT3NQ psgYY7zXTwSapmPGFjWX/1lZJ96pblWCG1o1XNBZ7ojTMszaXfQwW5vQyUGmoNeUhXXx +3c7FEPYVrdOYGCHzuXdXjlbReDjcspUI7BfOr6YMJ6f6GZXg3ac5w7yNyDD0GwSI/+S D34gr7KzDSXWv2IpH4pQK7wSz1eBOgYXZd5EMeaZL/aNnEQFeZ+JX7pNr0Zd96jwxJZS WYKQ== 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:dkim-signature :arc-authentication-results; bh=T6cMgT9Hi0s/ZSriMEJ1/E7XQx5AFKeemrAYgNTbaNY=; b=m22s7CLWGlsPblvrVQ+CJycyPeDDj6N/BgyELSlhK2tNlwgWRRCRoPtPfIExQ1uRPB s80gf+GnRyRbSVTtAmIxiMr/kDveOniFPp8Zn7vE+70pGOy9iFDTQLezLC8FBNZpXyNt lxH706m94YdsNzCF1ycEjrzVXL4YC+U1++gF9hnFfSw6bsKeG2t14niaBNJklZh44x43 ocpZYVI/cF5CInlnVxjoIgzsaX+urIW7XkMi9XPIVnHAO9gfxA0RSnJLW4UQ6cODFdkD ecXGg3Ghl1VGJw1ydwzSLLaDTS5qAYg/EXTWOzjJWiug7fmRzeCkBe1DRn90dkoxt0UJ mRjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3Nsm4/B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w134-v6si7006550pfd.313.2018.06.06.22.17.01; Wed, 06 Jun 2018 22:17:15 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=X3Nsm4/B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567AbeFGFG5 (ORCPT + 99 others); Thu, 7 Jun 2018 01:06:57 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54683 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbeFGFG4 (ORCPT ); Thu, 7 Jun 2018 01:06:56 -0400 Received: by mail-wm0-f67.google.com with SMTP id o13-v6so15275876wmf.4 for ; Wed, 06 Jun 2018 22:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=T6cMgT9Hi0s/ZSriMEJ1/E7XQx5AFKeemrAYgNTbaNY=; b=X3Nsm4/B47DVt0Fq7ScmbTd0pEnRbzgFw2wWmeiusq4MVQFUAHA0XviWKB8W89ZKbe rDGu6nBfBChAl3aQ+WAvg8jl7SBoLBETCAQXcsQk43R1gbsnbQgTzEotVUeaFgOad0NO FwzhCAfbxA+i3JSy6jApaxbiJr/V5aaT8OTWk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=T6cMgT9Hi0s/ZSriMEJ1/E7XQx5AFKeemrAYgNTbaNY=; b=UowjAIjCfyio83BkCAXkwDP1wWAGyzITEf8kIcL8L/8vCcmutnXcNrFauB8LhMJlig bhnrpHmbcv0/yFMF4ci450yYe3f86MpkB32c9KpFLFunPXALSduOVLnQfM+WLjGjVkBx YgV0GirtJ6Vgb0IVIwuB/0VYBi/qDhR5ArKQHCADP7w8xo9LQZd37v7s1i+qHovA++O6 rru4GubGvku5igYZZHXZahJdRT+5bjV4zRzFBGkKm9/9HkVTimfT48jKrFREwSTABNSR 7gU+8Q8iuk/7zbtsPw2++hrCa5SFX2e/F9n3EAB1SkiP7p+mJMZBL5ubzp2zAK9lOVis 5XCw== X-Gm-Message-State: APt69E1MVRh5PrJuvn8z6TprFw4rJptzkpHc3iNty4CWkhgCSM0GFIcb M15d67+QXRtjW/b7cPsb0vyecw== X-Received: by 2002:a1c:7192:: with SMTP id d18-v6mr418568wmi.115.1528348014980; Wed, 06 Jun 2018 22:06:54 -0700 (PDT) Received: from dell ([2.31.163.53]) by smtp.gmail.com with ESMTPSA id t66-v6sm935630wme.6.2018.06.06.22.06.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 22:06:54 -0700 (PDT) Date: Thu, 7 Jun 2018 06:06:52 +0100 From: Lee Jones To: Thierry Reding Cc: Arnd Bergmann , Maxime Coquelin , Alexandre Torgue , Benjamin Gaignard , Fabrice Gasnier , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pwm: stm32: fix build warning with CONFIG_DMA_ENGINE disabled Message-ID: <20180607050652.GC21163@dell> References: <20180525210843.1821071-1-arnd@arndb.de> <20180606081827.GD11810@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180606081827.GD11810@ulmo> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 06 Jun 2018, Thierry Reding wrote: > On Fri, May 25, 2018 at 11:08:30PM +0200, Arnd Bergmann wrote: > > Without dmaengine support, we get a harmless warning about an > > unused function: > > > > drivers/pwm/pwm-stm32.c:166:12: error: 'stm32_pwm_capture' defined but not used [-Werror=unused-function] > > > > Changing the #ifdef to an IS_ENABLED() check shuts up that warning > > and is slightly nicer to read. > > > > Fixes: 53e38fe73f94 ("pwm: stm32: Add capture support") > > Signed-off-by: Arnd Bergmann > > --- > > drivers/pwm/pwm-stm32.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > Applied, thanks. > > Lee, I applied this on top of your immutable MFD/PWM branch because it > depends on the capture support that you applied. I wasn't sure what your > PR timing was going to be, so I thought I'd do it this way since I'm > pulling in some last minute fixes for v4.18. I don't see a problem with that. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog