Received: by 10.192.165.148 with SMTP id m20csp1473751imm; Sat, 5 May 2018 13:01:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrq/9oLXBahHwKL1JQdz1WXXM61h3lulfKCWTRz2DKnQkZynBr8XdO3umHVZYGcsSlDD4rv X-Received: by 2002:a65:4a02:: with SMTP id s2-v6mr25772426pgq.265.1525550470689; Sat, 05 May 2018 13:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525550470; cv=none; d=google.com; s=arc-20160816; b=VC+ipDgi44N3nUBC7+f+JE+8yRkWOm/ijHmG/etnhdO+DDgU3KC1X4MxbizLtRgOJ5 /vkcHK5VNCpIHhENYn6GVq14d29oFSVbXHWjFAp4yKNPVuAnxS8C2A+DvKYnXTakXrdI aEeX0ynHA9sFREHs5jW6v36a/UokLva2CVOXkj+0HTYuaU3iLF5kAJOirK1badzDwVeS nGEx84y1U72ZS/pjx/R0L8fluLdD01eCJXj0BUgBeYJ+t6Mrni0vvo/OVV8uPonsMIb6 jbwonzRm0PsbqdRkCPvGl+FeQwoBp5/YGCBnfkijNY6PbnVFR8go1wcMlZronj+s03z2 WK6w== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=4QQVvrZ4WdISkUey0UzF49gXp+MBaIXwOslM0Cgn4Ic=; b=0EoIMtoUzVlDSDgdBZVzYuyqGPYCIvg6SPybiiSNdDX1I2jOM0QeP+KJsjQOnk2Pbm 4/Suz8+iG6w836eV2uZ/wJdyoOhRXdFBFb+/rRPGl08Bydm0LY0y/aiTrkQQWxnbbd69 H1OaWKOn5vgTe8G+W9sbmLdFEs0KgKLVFy26bItKpVyTDxldZ9v5nLxoD+S/bTLdA47o KHbxG3Nhx3rXfSEimv+0K3c34KpBq0kMfJzYTX2rnvzfjc3dIeJ45KeLkHZVyLMkMLtL 0PCIUlwJfDHdjhSov8IDSK8EptkJEimcWT6x1rMaF1RXSMfDJm+IXyCfTuU0ipUoqBGN W3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=q0dCZjVC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i192-v6si3949563pgc.73.2018.05.05.13.00.55; Sat, 05 May 2018 13:01:10 -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=fail header.i=@gmail.com header.s=20161025 header.b=q0dCZjVC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751832AbeEEUAq (ORCPT + 99 others); Sat, 5 May 2018 16:00:46 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41407 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751248AbeEEUAo (ORCPT ); Sat, 5 May 2018 16:00:44 -0400 Received: by mail-wr0-f195.google.com with SMTP id g21-v6so24170112wrb.8; Sat, 05 May 2018 13:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4QQVvrZ4WdISkUey0UzF49gXp+MBaIXwOslM0Cgn4Ic=; b=q0dCZjVCRsWiqW3+FDl2IIb1yzobT1iK00NSb95gj4Ukfdj7Qrz82T3tbhXsKGnZXz Qw9DUB/mAetnCS++vVGXbfWfGzUbGbUoCOoyQigqqz2CzsPHWgeqQfR9Xu26kyT9DahL 1orU971cTRiCM1OBT+dUSTmnkCVXF7AZ9y55eo7gv5GN0LlVrNjSe2Ry7h5cPWpjn+ZK 6ME9jCIxDQfiJB5JxhzTHFMdg42lqbmdOL0nNOOOmttLbA+pI8U6TLxEqFpXGaA264/j DFnIQ3bAvKTbR4v9sGBilQnIESiymFLT1xYnO9LQdlKBqVB9HD/YZfjzaoesbgprxZAa Hrbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=4QQVvrZ4WdISkUey0UzF49gXp+MBaIXwOslM0Cgn4Ic=; b=m/QKh8/97/BSZnjwNP1CJGTR8zIE/6hVGHPhXVo/fW1K2gFO1DgBYqFsQ7pDH09Ejs XVzP3Wt2Vi+QUFMiI11wdtXcZa0fFpIfyIym8kZi5Q7Ks0B2+UmLJTWEuft+xnzXYic8 JH8x7ZoAB3WZcOD5Ej+kefPfTPBGTIMPtJz/nMdOm+4ChLfMIxVEflSklOKnCKGkgxiR IzdJdyZa38iyq3b+hJ9vqoaOIt6T5bym4/nTg1sSa3ZViQlxzkg+2xPXM39N126Whbii 5AFBqaBUK0NrR6hYtFa4s6pwdt22hH9at5h+l8Z8ld+45ppKFRXDEMh4n6N2AbgNvQPc LDew== X-Gm-Message-State: ALQs6tBafEHcPuXTKz2EHxdWkW5sbxBrx/fN+VitoGQmdT8G7Uv+Iigk Hs7ZhXTzU5G/wMJ7yhbU7c9BKt9U X-Received: by 2002:adf:984c:: with SMTP id v70-v6mr25432813wrb.100.1525550442920; Sat, 05 May 2018 13:00:42 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id k3-v6sm33586448wri.28.2018.05.05.13.00.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 May 2018 13:00:42 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 53D1E10C0604; Sat, 5 May 2018 22:00:41 +0200 (CEST) From: Mathieu Malaterre To: Tejun Heo Cc: Mathieu Malaterre , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] driver core: add __printf verification to __ata_ehi_pushv_desc Date: Sat, 5 May 2018 22:00:37 +0200 Message-Id: <20180505200038.17840-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __printf is useful to verify format and arguments. Remove the following warning (with W=1): drivers/ata/libata-eh.c:183:10: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Signed-off-by: Mathieu Malaterre --- drivers/ata/libata-eh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index c016829a38fd..513b260bcff1 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -175,8 +175,8 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) { } #endif /* CONFIG_PM */ -static void __ata_ehi_pushv_desc(struct ata_eh_info *ehi, const char *fmt, - va_list args) +static __printf(2, 0) void __ata_ehi_pushv_desc(struct ata_eh_info *ehi, + const char *fmt, va_list args) { ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len, ATA_EH_DESC_LEN - ehi->desc_len, -- 2.11.0