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: 11642557 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5111460D for ; Fri, 3 Jul 2020 17:49:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E3F80206B6 for ; Fri, 3 Jul 2020 17:49:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VYa+bBgE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uY+ZNl+v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3F80206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=63nSqvJyOe9izMGW60p2JvvsvRXvVvKZPBPEZd/7Ao8=; b=VYa+bBgEVOKU73QFdC+xJ+zN4 yoE4cOE65ndX6lhLlFH6IN8xudcDDOOo/UoOJQX6w7hTkfyBkRdklS/KKnsG+58vtdfTDBkDMXtF8 DidtEQ9Ny9BPmbTE1LtGkblE9RJDKE2XAJwQwV0x22Ame7+WwsSGuEyK5md1isKKBWo+fgXhQGMNI GczTrgsRU1T/XFxnrpKigc3X6v8LHfpHifLlkRq1IifXn7Bvsb0N2b3mgK15IDlGkONuIN+vSlpdS l8I87hklEriqnV5lrHR0dQm3ENHXhh/rKJ3mg9hnrDQI63Wx8QRZB66av8pBvKV85JEia2YuvRiiz 3SpJmO8Gw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jrPll-0004qg-Qt; Fri, 03 Jul 2020 17:46:39 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jrPi8-0002Hd-Ep for linux-arm-kernel@lists.infradead.org; Fri, 03 Jul 2020 17:42:56 +0000 Received: by mail-wm1-x343.google.com with SMTP id l17so32763570wmj.0 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=as85HGqJB/oYLxRwGjt0sZmohQknhiW9rknReAQStacv8BRbW5UNvmqG7P8Yh2i/K+ /nbu/bnQSDYksHIbdUVGgj6SuA+jMkC2pWADkLzhYg8DJIRxM6fajgsUKEdEacPYUTRg hUAYMzpzA2n/NLab3lc1ZQenTQmee7VPINxrXRT8+b0PxcSGGeW6lQt84BT/1jsUO3PB wHQWniTfIas6pnttn515kLOJ2dRE8MAnFUtu4vPd7sPPG7xUu4PdG6Mtr24apGh/mwzz ME8tLoziIwNO9mJUjVk4dEirf8mW4nkzKPiSPQM9gVksmFd9Wqf6Kr2F0dh8E+BiQi+0 1uwA== X-Gm-Message-State: AOAM5306G/LjLDAVOHQmCsDcUDlUdzBB9pbVI9KrdCTxA18WlWlRhZ9k nt6Lp4n81O/CKla2HvqSLPkus9Ep7iY= X-Google-Smtp-Source: ABdhPJysKzxS4hjJTRoccGdJEFKt9Uhy6x3GEl2dYE9hZrX5YGXPDhlo2QS2O0WssrmUH0r3f2lOtw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200703_134254_701708_7F748532 X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:343 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heikki Krogerus , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yueyao Zhu , Lee Jones , Guenter Roeck Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 Reviewed-by: Guenter Roeck --- drivers/usb/typec/tcpm/fusb302.c | 1 + 1 file changed, 1 insertion(+) 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;