From patchwork Wed Mar 17 08:56:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403047 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp283765jai; Wed, 17 Mar 2021 01:57:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOxzXn7S1sEiaJTf9TkSfNo1DOQTd0JNUZ1E9Iz1fOqAHkY4HGHUzzhaJGugu/MyL1z0gc X-Received: by 2002:a17:907:119b:: with SMTP id uz27mr33632065ejb.464.1615971473171; Wed, 17 Mar 2021 01:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615971473; cv=none; d=google.com; s=arc-20160816; b=boyj2fHGfG+QzfeC/9uds7WmjmYD+MT1dKL4D4tEcEX3oxJsPo2R0rbDwFs6F00wYe WBA8O40TGQarwOmgXUhjOhlyPy8EopqNLJagu8/g5pn+Q/EMYYiHV/IhA7/+cfJmR4vK iWRXx9vv3uKeMGadk5JywcnqVvQhXm41w46Pf3AcZmKiAahqjyDGUISy0EpKYyvySjZe bOJm64ssZS7ShHYurcbrB1DFL/EmNdUI4nhdj/QP+mBtIXKXnMJzlTPj5ITHPdU1mrEO DG9MVHnKDyd9SrR4JMlNinrToOyh0OlH+R9wPKj4NiE6HeRxE5uwz77CgENLCHBvIkSA VsPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KspmBqbjk4SwVrkpMki278CpteugIPA4FRqHSDe0Ld8=; b=jEj5WqNBUR3BnyMXF/G25IkmSUDZLw8BK58fzYzo8qLDrDBhXDdBKv2EHA/EeI8AGI oKTrHNFDCkEMFtyw/Imd+kTaIRqK/P8CHO+mhkgqB/pVyp0fwtiJVNrIri08Ek+0rmgm opVdlfsAOVa0ycDiuYYg5DHUS2AI0NdvjkxIaaUVlF2ml3hLXsmG82V55D1XuJsg8B1x TOJJxsZJu7WrHk9T96SMODnEVgSlzhhqS32YVSw3PI0h8+nYS2hZQnFT9OYG45gL3Wst WEsABWq5CoEIPXE0M5oKHLRGbpXfHb32z/B1NmETdSfm466uu7k5V4iMTjgCnE8mFcX1 LDdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f0wMl7PP; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 kd10si15492094ejc.41.2021.03.17.01.57.53 for ; Wed, 17 Mar 2021 01:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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=f0wMl7PP; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 S229721AbhCQI5U (ORCPT ); Wed, 17 Mar 2021 04:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbhCQI5L (ORCPT ); Wed, 17 Mar 2021 04:57:11 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7C4C061760 for ; Wed, 17 Mar 2021 01:57:11 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id x16so960047wrn.4 for ; Wed, 17 Mar 2021 01:57:11 -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=KspmBqbjk4SwVrkpMki278CpteugIPA4FRqHSDe0Ld8=; b=f0wMl7PPI9GyJQ54AsUw33UqcpCkutaW99aa+jPQ9689zDYUS3KVhJe4WI5qMqNIMx T0XQXz/xhmwwte8hcpnLMQZ+oKFfRkIzVEL8FEwBnOEdKMnGJfJvnBWyH0gg+QjzGKkP ouulMB01hntTnTyV5ZPGOSVNs5eq3hLvrbWC0pIbQi1k8XrTnDPLHxWf5T910lB7U7+J KDirvMUvLbDFUbILI65/V2KTy4LFIZRwRoJ7tDVGrrcL/py9f30rUdnozR3ZWli9q2QY ECsn1RWJYUel/qmol5Q8F6YE9PAMhJib289eXCSDAUuSngGXnCzyFVB7uRcmtsNVfe2I i23A== 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=KspmBqbjk4SwVrkpMki278CpteugIPA4FRqHSDe0Ld8=; b=saVyB8aVdB+sB0TOxuoiaw87ADSHchQkPMuwF+kQd5yneToXojVJEos99kmhUBDLbV M4AUCelAcLHZm2T5an00HVVHh0KnpbAlEn9awzSbJNY1mS1lbF7rACWpNM6A9U9kF48s aaM/NLxWLDxrmXhv1076fCFVEGbLoMhfKqiucyondNMt7LT0ww70xoxtkIt8tfLhLKod usIlKyAP8ACTtvkkp9bbZFfBtiyk8cZZQBv1tiDf8Yd/ndn9K+nLyCYgmcoxz6fhIwi8 2+qE2T+F12AQdn5Y37rkZfnZViI6V2GNC3l5oDDiGQ5ebdu55ptlJwo1ITmEWe/qK3XJ BtbA== X-Gm-Message-State: AOAM533EPWOkLItpgeEvkBULMhr/skeaBfZY+ccH0BgMy5UM+7meghcy 2b2jPHU6m0ZapSrxmLaXTbOzMg== X-Received: by 2002:a5d:528f:: with SMTP id c15mr3252496wrv.142.1615971429964; Wed, 17 Mar 2021 01:57:09 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id j123sm1807243wmb.1.2021.03.17.01.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 01:57:09 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Bradley Grove , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH 04/18] scsi: esas2r: esas2r_log: Supply __printf(x, y) formatting for esas2r_log_master() Date: Wed, 17 Mar 2021 08:56:47 +0000 Message-Id: <20210317085701.2891231-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210317085701.2891231-1-lee.jones@linaro.org> References: <20210317085701.2891231-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/esas2r/esas2r_log.c: In function ‘esas2r_log_master’: drivers/scsi/esas2r/esas2r_log.c:155:3: warning: function ‘esas2r_log_master’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: Bradley Grove Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/esas2r/esas2r_log.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.27.0 diff --git a/drivers/scsi/esas2r/esas2r_log.c b/drivers/scsi/esas2r/esas2r_log.c index b545798e400c4..d6c87a0bae098 100644 --- a/drivers/scsi/esas2r/esas2r_log.c +++ b/drivers/scsi/esas2r/esas2r_log.c @@ -101,6 +101,11 @@ static const char *translate_esas2r_event_level_to_kernel(const long level) } } +#pragma GCC diagnostic push +#ifndef __clang__ +#pragma GCC diagnostic ignored "-Wsuggest-attribute=format" +#endif + /* * the master logging function. this function will format the message as * outlined by the formatting string, the input device information and the @@ -170,6 +175,8 @@ static int esas2r_log_master(const long level, return 0; } +#pragma GCC diagnostic pop + /* * formats and logs a message to the system log. *