From patchwork Fri Jul 3 17:41:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 231475 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2595094ilg; Fri, 3 Jul 2020 10:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvvVZjoHBl4UyM8/LPaqRd9cuGzpnlygRQZNaBTR2dn85gCJ97gPHZPi6NEmska2TRF7fR X-Received: by 2002:a17:906:2318:: with SMTP id l24mr35266846eja.291.1593798174493; Fri, 03 Jul 2020 10:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593798174; cv=none; d=google.com; s=arc-20160816; b=Hp/rDp+06YaHlJGrnNyD44Gto//BJd/TnH95QadDZXyjJUa/EHApMKf1Gs77EG4SC3 QfsBAS8pDpDCrElWPyqqwcBMdUMrz9IEww33Qpm6vTuT0Xr4/mW2OJvB4FDlO+v4BAcr aJJUWJV7mPXPcYhhZkIj92NlKmO3bEQDP6aKJ3Sej5J9/A8kTg78kvRdHQYuNheJu1S+ ifGhdBI40ORBfwRCFlmZlgPyuaeDJvxOAj/zVYmjIJdSYvL2ZtCmI8Lx03zrjtjM+wXg u9MuNttuH5rm+MmAV13+BbqVmAFhRHK1oLN1PX0zbmM7Emh0lhlWO12kigbf3ZF45WdF NjFg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vJCnefTtfM/FBJNDBw7Za4SdXSiMtlhk/VCZxXdb06o=; b=az2d9P1BpSI5/gAQihAgrfSkvpCJvs9GHkVcHTWPrEV9T/4swKPtd6s3tr85oQb7Fw TmF/CzelRYnV+MjsdU4mE4jAPxkjQUU86NeNmHQS0VwGg58gOwGfpvQ0JWWTGNU6qiZJ afjYHttvvxiL0tt7HzE1xNbiny2gsrhzTcCvTf6LnY4LaG4Qma096x1LbYeoRTc6ErUe jrJ673UwEOrMew0b+1untkvGP+7iPiWEgshr8/CvJFyGaVawOPQrrOPd2PaXSPJduJtT 0npdWNu9KBq1UNbDftpMqd//WalrkOezbyj6LGQK6W0aMSnbBCXBTGhyTf1o+9y1ZKZF 5KLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uY+ZNl+v; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-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. [23.128.96.18]) by mx.google.com with ESMTP id e5si8102636edl.520.2020.07.03.10.42.54; Fri, 03 Jul 2020 10:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uY+ZNl+v; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-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 S1726995AbgGCRmx (ORCPT + 5 others); Fri, 3 Jul 2020 13:42:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726989AbgGCRmv (ORCPT ); Fri, 3 Jul 2020 13:42:51 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82AF6C08C5DD for ; Fri, 3 Jul 2020 10:42:51 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id o8so32746262wmh.4 for ; Fri, 03 Jul 2020 10:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vJCnefTtfM/FBJNDBw7Za4SdXSiMtlhk/VCZxXdb06o=; b=uY+ZNl+vJh/8ZKEUOcnoazw3UlFZGm64iZn/WQXAwEShl1+iT+iTmIwEf/Jx8IskjI qBGw7nEY6dEUOrexC4u1LRiL9SdnCegSf0mmgfxfcOWxwdeLf3ed6L/OqNpxGK26weBn P6pJRNCWqcN47c2iFGRdlwjvm8DQ+zhYqMhC9+oOVs11vB18NiKjt4ivDufF1t9LyG6c 2Vqb/BytWBtmCSbCzXvhZ7vvo8HHeT2aQdv9LAr4huXaOY+bdb3hBCPNb6vxYp2qU/FE /eiep166NE/4yENCBpA6DvdVcZ9Sjm38FZTnd9C08GGzcfk6owQqxVxS4TUlvGJ3iMH6 yhvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vJCnefTtfM/FBJNDBw7Za4SdXSiMtlhk/VCZxXdb06o=; b=MOt0AnIxcV2oXHYTe75Jc4hG0OKzu+vw7r1vz9vXNyWBQRadYU6bTvUHo7rZhvHN1c //SdV2A9rGcnDmSTQW3vJr8N3zQfgTBuPDcMWwg32rrdKRpaEYxZswUG2YbZDZd/GDPN JyVISNIbWMb372NVpDSWJJrdg8jr+XuJ0c2vMxcqXYTL8wvmKjaL5fR1PFzULW5oxhlF rZJHYt87Ijc5/T6vS0vzu+SEz1uqUL2lBM20pK2osC4NhtMvAfHzqZk17bIv7KPFaMLy FWWk2hs+jkJzMKjFoCUGjY26XXJ0KcyJEuTWE6RcgFsjR1Cn2FXkJTV8RQ0TUcm30aIJ CRRQ== X-Gm-Message-State: AOAM530s4Lvc1TmKYI174vGJMuqn+YSz/5FOpNSnprUJqbMXEzHr8LgB V5LXfgN3xwoD3Ktt27/CTCI4XQ== X-Received: by 2002:a1c:398b:: with SMTP id g133mr36497818wma.76.1593798170305; Fri, 03 Jul 2020 10:42:50 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id x11sm13625799wmc.26.2020.07.03.10.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2020 10:42:49 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , Guenter Roeck , Heikki Krogerus , Yueyao Zhu Subject: [PATCH 22/30] usb: typec: tcpm: fusb302: Use 'gnu_printf' format notation Date: Fri, 3 Jul 2020 18:41:40 +0100 Message-Id: <20200703174148.2749969-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200703174148.2749969-1-lee.jones@linaro.org> References: <20200703174148.2749969-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/typec/tcpm/fusb302.c: In function ‘fusb302_log’: drivers/usb/typec/tcpm/fusb302.c:186:2: warning: function ‘fusb302_log’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 186 | _fusb302_log(chip, fmt, args); | ^~~~~~~~~~~~ Cc: Guenter Roeck Cc: Heikki Krogerus Cc: Yueyao Zhu Signed-off-by: Lee Jones --- drivers/usb/typec/tcpm/fusb302.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 Reviewed-by: Guenter Roeck diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index b28facece43c4..99562cc65ca69 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -178,6 +178,7 @@ static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, mutex_unlock(&chip->logbuffer_lock); } +__printf(2, 3) static void fusb302_log(struct fusb302_chip *chip, const char *fmt, ...) { va_list args;