From patchwork Tue May 31 06:18:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 9143437 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5456F60761 for ; Tue, 31 May 2016 06:24:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48B0228187 for ; Tue, 31 May 2016 06:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C86528213; Tue, 31 May 2016 06:24:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE2A628187 for ; Tue, 31 May 2016 06:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751462AbcEaGY3 (ORCPT ); Tue, 31 May 2016 02:24:29 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36620 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161709AbcEaGU3 (ORCPT ); Tue, 31 May 2016 02:20:29 -0400 Received: by mail-pf0-f196.google.com with SMTP id 62so12152819pfd.3; Mon, 30 May 2016 23:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yCVCVSt0D2yy0eKg6MIcCf9YAOYJAS3NVeXmPCGOs+w=; b=ZMTc8ofPet32O/wI0g0sJgToNRkkA35IgwQOWSD+XIQyUIte1EllfKK85027GWul7C CSSfIG84551Snwy0ASF8QimmruXvzSZV/we5+gjgiSg60u5WvJ+kZ0eHbf/6uzpfagAq U5ZfNnlyE0Ppp43pqC7mZJnpMF2luR6cVHDp6gyp531SQ4E69ZBN/XNBrcvLJPFhCGDT POfpHr3L3WmR7wPi6kwjuMobMHZV8yXZO8OZv8sQgsJQ6QyuYn7yq/6T/PL5VsyA75cL JBMlQ6dWnqAP+0hZDZfEYDve243YPBcMfgK7rLfQUzLFGSF2sK+Tgv5kiM4hGQnB/4fm GDnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yCVCVSt0D2yy0eKg6MIcCf9YAOYJAS3NVeXmPCGOs+w=; b=NjhUcVFC3GV0qHa/ZA4BIbg1kZ5TpXFK6iZocpVa+bcJiYAEoUYzvodoVsACXD+QbP b5DzctMsl4gGX/yWN+XRmah1MG3iOn4sqfx4oTxtj40Zk+hefLIOvG4xF7RpF0yG45MH PFKAOeQq8C1r4zwENucBbFmF8ZP8xQLFLoLkNIIMp0cIMfuLmDlil/i8PDCAh+fdDSAw N82+rea4kE4VwssnBBEohYa556lpQaK3BQe2yZLk5klsWoie1AgdrJq/mpYDHCQ19tVh e+sNBLaJLbGbdKpMWmS9MjzwKhO2M7aGyIqz89+ebASiJLuc5Kjcv7JTWvJYXrQxR/YQ v1Eg== X-Gm-Message-State: ALyK8tJHZcbTqsnZOiSCKzSbkbEamjxfKBepFDa327pRUyKJ1ymNgKae6oqW7KSUa2o68g== X-Received: by 10.98.82.77 with SMTP id g74mr42764767pfb.113.1464675628098; Mon, 30 May 2016 23:20:28 -0700 (PDT) Received: from localhost ([2601:b00:c501:3660:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id a17sm37127705pfa.70.2016.05.30.23.20.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 23:20:27 -0700 (PDT) From: Eduardo Valentin To: Rui Zhang Cc: Linux PM , LKML , Keerthy , Eduardo Valentin Subject: [PATCHv4 35/48] thermal: core: add inline to print_bind_err_msg() Date: Mon, 30 May 2016 23:18:42 -0700 Message-Id: <1464675535-2433-36-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1464675535-2433-1-git-send-email-edubezval@gmail.com> References: <1464675535-2433-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Given that this is simple wrapper, adding the inline flag. Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 460220c..c1908c4 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -771,8 +771,9 @@ static struct class thermal_class = { .dev_release = thermal_release, }; -static void print_bind_err_msg(struct thermal_zone_device *tz, - struct thermal_cooling_device *cdev, int ret) +static inline +void print_bind_err_msg(struct thermal_zone_device *tz, + struct thermal_cooling_device *cdev, int ret) { dev_err(&tz->device, "binding zone %s with cdev %s failed:%d\n", tz->type, cdev->type, ret);