From patchwork Thu Jul 23 12:24:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247060 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148794ecp; Thu, 23 Jul 2020 05:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIZ9xU6ePA3gyI51mkXVC9Me2IN1VlFWdW2Bu4dZSXS+Gbc8lLXM0LQI1IvQMtW/+yRIEs X-Received: by 2002:a50:d0cc:: with SMTP id g12mr3980059edf.57.1595507198208; Thu, 23 Jul 2020 05:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507198; cv=none; d=google.com; s=arc-20160816; b=jcCoiz4IN3S8k68IMmheViDwHp1tMTo5Z4VRP5h8tpzKLTOL7/Kl1zDGtadrMeip4h AYPWujrZs4l2qdo5UDawgaKqC7yL2yBqSZwtaNiaDX4imDINgTVLLPmZMjwQhuaRximr BqidbEBAiafYboc5Klr2/5CRVgW0S6yJ/2lPpA8oPonnIl9aAIsFqevgT8AMNmOV6BRL XkViOYd5nYxxWgczGmaCRl6mj+JKRpPNJcbgoNJmlpQIan7Zjlk5hdQ6IXsG56YQJnWy 7OVGrthv7vBP6hagAcxF6mEgqasbGNGUtpYKVwGQ+a8X/SIc1NLFx9oYjzA84Fa53ruX VIlw== 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=Va/Ff5G2hEmAhvKYYGy2WjvjWoULU+Qfw6mOj+wkLgk=; b=ujv32lpFcCikYDz2+UML5olVKgKKW5xISY5k2NQtlo8f5D90vfA9kYZHYbyagxXxpr MFJz7hUIzGXI04ua8Sbzrm6w00D9NEsaWWNnJJYJzte7RF4VX5rk8PqK/tPCg9xcZzeK J0RxifXYC3yem4MHeGWVCmGXsnxGVgN60cCsCEXj/nLroTPQJ/Q2GmIfoQWWlB9xrFHK ao4dM1qXw/3XnEj8u68P4wCERNhl+zO8jnwzSQNoWGavqwC1dVO7nP4N5sZwFZMUKrTQ JnSGiKslPRlfELMAeDPd1Ny/yYyJsM0KIYOixnwsQqvxmGKJX9VZUyORFDM/iGllJUoM q9kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GrbtluSJ; 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 pj28si1861418ejb.330.2020.07.23.05.26.38 for ; Thu, 23 Jul 2020 05:26:38 -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=GrbtluSJ; 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 S1728987AbgGWM0f (ORCPT ); Thu, 23 Jul 2020 08:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728971AbgGWMZQ (ORCPT ); Thu, 23 Jul 2020 08:25:16 -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 D8E5FC0619DC for ; Thu, 23 Jul 2020 05:25:15 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id o8so4783277wmh.4 for ; Thu, 23 Jul 2020 05:25:15 -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=Va/Ff5G2hEmAhvKYYGy2WjvjWoULU+Qfw6mOj+wkLgk=; b=GrbtluSJbKvXB3XVk94LANq0j8olHPMHyQJC8heK46kTGaizDW8xkyyCRV2sy9pwlO NasEXqqYQqCkCgZO0ZucEKCaIWJnxD/tqbrOLCncdpe4cvDbP7k6BQRTtUbG/NSQe+oT L83Mn0nJOjCPAmTCkeQMCxWoiPpP8Inh6/UGZZpWCOy25u2GUSx2WhoqplwC6orcnj0M aM9oFpQj+subQFcUjh2krxgDuvQf1dbVE6y1/+jQjR2YEbKkQoRikCw/CEL3QFjkPURz 0o1bHAHoxtzm8Huk5Gx3SI+LnKiR0z+DwrgcwFjez73AGGZ15h7Vy8jhvbTFO18BKka1 xTIQ== 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=Va/Ff5G2hEmAhvKYYGy2WjvjWoULU+Qfw6mOj+wkLgk=; b=ebU6l5Li/u6jHU9TvFQVeQOw2QjrCU8zzMSqXyDEEp6YTq19DALsUYXT9mRhfDEh75 fYLYhvKcJLLUPXTbQLd9in+prrv0b+L+pCxNFLZwHbLLEU2OY3AmjHZNjsySd56kLQyQ i6h1pM14XvkbHhCZh7Q9zcWg6wYkppwMT7scXOGbxQgai9L4H9H3pKQPqD8I+CZxU1Qa z2sWc0X/XCEngGcDST23sRroK7FJHcHocoW2TeFvBirlWhv1Y47YcfO60rksqpw1saJD A5VKvUGYUGWbPjbpqZ0x2xCnL7a4AcEDrwvnQnTeQtkKOfoCYaoNjVyVEL7Ua9T0JlC8 wRoA== X-Gm-Message-State: AOAM531bpDhNYt6WDZeNwAy+NFRt5Zd2EVt6S2Nirhu9ejj7hzaBAD3U v6hnzxPwC60GuE3ILQ3SWR596Q== X-Received: by 2002:a1c:790c:: with SMTP id l12mr3922082wme.50.1595507114637; Thu, 23 Jul 2020 05:25:14 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:14 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Arkadiusz Drabczyk Subject: [PATCH 21/40] scsi: csiostor: csio_hw: Mark known unused variable as __always_unused Date: Thu, 23 Jul 2020 13:24:27 +0100 Message-Id: <20200723122446.1329773-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/csiostor/csio_hw.c: In function ‘csio_hw_get_vpd_params’: drivers/scsi/csiostor/csio_hw.c:309:8: warning: variable ‘s’ set but not used [-Wunused-but-set-variable] Cc: Arkadiusz Drabczyk Signed-off-by: Lee Jones --- drivers/scsi/csiostor/csio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c index 950f9cdf0577f..98d4d39aaa572 100644 --- a/drivers/scsi/csiostor/csio_hw.c +++ b/drivers/scsi/csiostor/csio_hw.c @@ -306,7 +306,7 @@ csio_hw_get_vpd_params(struct csio_hw *hw, struct csio_vpd *p) uint8_t *vpd, csum; const struct t4_vpd_hdr *v; /* To get around compilation warning from strstrip */ - char *s; + char __always_unused *s; if (csio_is_valid_vpd(hw)) return 0;