Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp165109imj; Thu, 14 Feb 2019 17:46:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwnAD/DoZgHhlFrlW75fcis+RTN62SCKm4NcDByMTUROLXfnsAUsBNTbCHrZI6+5hfQMa8 X-Received: by 2002:a17:902:8f83:: with SMTP id z3mr7268797plo.328.1550195203191; Thu, 14 Feb 2019 17:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550195203; cv=none; d=google.com; s=arc-20160816; b=fhz6VtcvLAEQ78PjoMViihOV59xbfkVkjukdsi1R//UVvc6K86cxeYmCL0bf7tecYH if2uQI588G+wVZZjSpqJ98tTBw9O/i1/8fjXBCzUpN1PAgoy92D0PwfzZtuv0oa0vmCE 8mffYNEHLFtaF03541gsxH5R79vYNHU+x39l+O8lOZac0Wf+OB6cYcNfftXvMYZJEHh+ q0h8bmp4/zvJ1JR+EPZOeXgLfoV/y2MmXn5R+Bo7MHmGZJ3qiR4LdF+wZnNsxUetggCX +ZAiA2iJ1vV+L/z9aqEzLUzSabGvmHYxQ13CGlVehiRl/JoJfyeFCXs6pQbO5fe8pEwy SY1w== 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; bh=TEzrBqMLgFPVnf/SXg6Y7hjPdLVUaonVkw86CHiCcIo=; b=e+uh6OcN5u0PzXd9EhPqitXnfA1NrPCQAjV6p8ErYVnBoeXH7WKKvhKI4MRxQz5keo It08qXH2nkY11dAWCtLqDxwPIGTpx1Qx7tag4SH7vR74tkMr1GAKV+1tHiP/xiCOMYuA 5F58Oca0lAgrglLjFIbVN6ISieldkYac7KS+qd2w4Ymw5aSOyUv0pltD/90Xlp/MMDuu /W8mrXL3ROQ+r7dP5/MrlgvkBBm4pGDBAktOXko8YQGnO+KJnuinX2py9S0ttZoYUTQd 8pV5ZQOWfHzGnTZeWmjQ0WtekpZq8tQG/HVOm5jbTKsUFlDvGD9Z5hr97KbC9ct0JtH+ sqVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PRVRvOC+; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h38si2367782pgm.345.2019.02.14.17.46.27; Thu, 14 Feb 2019 17:46:43 -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=pass header.i=@chromium.org header.s=google header.b=PRVRvOC+; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391344AbfBNSaL (ORCPT + 99 others); Thu, 14 Feb 2019 13:30:11 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45355 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfBNSaK (ORCPT ); Thu, 14 Feb 2019 13:30:10 -0500 Received: by mail-pl1-f195.google.com with SMTP id r14so3563834pls.12 for ; Thu, 14 Feb 2019 10:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.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=TEzrBqMLgFPVnf/SXg6Y7hjPdLVUaonVkw86CHiCcIo=; b=PRVRvOC+Iy0iJozUW655DtumItSHb0BZor2PsXfOjaVKXvD4hg9qRN1z/eZGNnt8tb 8i1sWgler8M4k7c6oxmrUemeDCVfKt/j85o6/qIeG0Igr3RJIi5wQIGqSaoJzOHtBGvO vfd7FD5KUMxlYXXrxZJS07juJn7RuC3nPEH+I= 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=TEzrBqMLgFPVnf/SXg6Y7hjPdLVUaonVkw86CHiCcIo=; b=fvW+Mhymvm9TiKCYWIGrODOSFhYr8BT6v6/KQM6EH6I1jleQWnF65hZNWzlUEBiscx dzNPTdO+jsaUFiFbA5IBKIzrVpUAG1SkvvM3LhNJk8AIMhPBpINleT7gePJzqfkR+hkf nOiejzQ+baqNs33eZuXDi7KLiytx3YIifbvKg3/aZRvCv7hs0xXq514jXqHJWdRC8qC6 nAK5sOzuOC8035liw6ooCwScrBdo9yyXZZMiUNyJBCWZ5h/EPsbCK+pW7CoN3MlFBVS8 QPqFIVEX92GxtG32Y+drfpcQjneGTbuWMOFmCIZyHnEfPxBok/mAsg8b1W2Y77xLTR9y H7ug== X-Gm-Message-State: AHQUAub1n0dvXMKwaXb95Jm1npok0AcnLzk77aSi7JI2zQI38JA3Gw5N xFkXO1hnBgPBUFIBI6+lXD6nDQ== X-Received: by 2002:a17:902:2aaa:: with SMTP id j39mr5675495plb.335.1550169010207; Thu, 14 Feb 2019 10:30:10 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id v11sm4837183pfa.49.2019.02.14.10.30.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Feb 2019 10:30:09 -0800 (PST) Date: Thu, 14 Feb 2019 10:30:09 -0800 From: Matthias Kaehlcke To: Chanwoo Choi Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Thierry Reding , Jonathan Hunter , Linux PM list , linux-kernel , linux-tegra@vger.kernel.org, Lukasz Luba Subject: Re: [PATCH 3/4] PM / devfreq: Add devfreq_governor_start/stop() Message-ID: <20190214183009.GA117604@google.com> References: <20190214013042.254790-1-mka@chromium.org> <20190214013042.254790-4-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 14, 2019 at 11:12:55PM +0900, Chanwoo Choi wrote: > Hi Matthias, > > Looks good to me for making the function to remove the duplicate code. > But, When I just tested the kernel build, following warnings occur > about devfreq_governor_stop(). > > In file included from ./include/linux/devfreq.h:16:0, > from drivers/devfreq/devfreq.c:23: > drivers/devfreq/devfreq.c: In function ‘devfreq_governor_stop’: > drivers/devfreq/devfreq.c:619:17: warning: format ‘%s’ expects > argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] > dev_warn(dev, "%s: Governor %s not stopped: %d\n", > ^ > ./include/linux/device.h:1380:22: note: in definition of macro ‘dev_fmt’ > #define dev_fmt(fmt) fmt > ^ > drivers/devfreq/devfreq.c:619:3: note: in expansion of macro ‘dev_warn’ > dev_warn(dev, "%s: Governor %s not stopped: %d\n", > ^ > drivers/devfreq/devfreq.c:619:17: warning: format ‘%d’ expects a > matching ‘int’ argument [-Wformat=] > dev_warn(dev, "%s: Governor %s not stopped: %d\n", > ^ > ./include/linux/device.h:1380:22: note: in definition of macro ‘dev_fmt’ > #define dev_fmt(fmt) fmt > ^ > drivers/devfreq/devfreq.c:619:3: note: in expansion of macro ‘dev_warn’ > dev_warn(dev, "%s: Governor %s not stopped: %d\n", For some reason the warnings don't pop up in my 4.19 build and I missed them when compile testing upstream :( I'll fix the format string in the next version. Thanks for the review and build test! Matthias