Received: by 10.213.65.68 with SMTP id h4csp453173imn; Tue, 13 Mar 2018 09:31:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELsudXWng6J53LjHh/by+ARrDZ6iiNtVBLOX22UrM4EZht6yh1BRJ5L6ZBrdItcQx5E6eSy+ X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr1123454plb.170.1520958679636; Tue, 13 Mar 2018 09:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958679; cv=none; d=google.com; s=arc-20160816; b=Hl0qzXJwr8VExVt24q4CEOqJLk6Y6YSCJ2wS2wO/fAJJEFv6FEZtmxit1vCUixJ9vT k8uJKtJ+8wLWePZZrsKfrV9cf2M0ztcwlSQQ5gq+7INUz389jEnykyZ4Dh/gVGgPsxFB 1VZS/gtGQVjYyxo8mg88DEtxAiQvMBWMwpa8OAeEF1h7RXGxyzvNl3jnG+noWsksaEV2 9xZwti7A//CNiWnlCP6nv+jx8/4FqLb9wy7nNKbA1imoJYsLPKPfXehLRupUHsb9AwCK m7fDZm1WqVCd59w6zChOn5f/HLB2LXOguDOs9O1sSBAVYg9immsT0+MlbRyv//Mbm8m6 NKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5y46l69kOT2kYhEnbPoMo6ghhWA9K3lw//D6Xm1I4hs=; b=H4dMs23Q5Nvcl7oAdFcdBt3mjbIByjQIDZGz73eiPKKdOYgrDplho1Ve2LZxPEwzu5 Vr54jMT6m6IT124PIpxuGYvHruiebB7gzJMQaOuFzGhRDZF0wlCyoQ+1l87GjID8/hyE zhK+DHt8D516Be89QUQDeo7tMOJD5eJnmRlML+AFfJrNJoeiPUOqPqiu4q/bGij6muII f4mXPHPhlmrQoMjNJk+jYn4L7alJx7je+Ncbx5ta0gQYESE31BeLxPMn/y7XUEU2a3XW VQIVSqGqv3mvfVxAMsf+7wOBpwPVby7z41RtM/0+OC6NEFFxQCdp3GdLBAcTzTgnKSYt 23bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=SB8YMoOq; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si306175plj.126.2018.03.13.09.31.05; Tue, 13 Mar 2018 09:31:19 -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=pass header.i=@broadcom.com header.s=google header.b=SB8YMoOq; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933715AbeCMQ3j (ORCPT + 99 others); Tue, 13 Mar 2018 12:29:39 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34225 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbeCMQ3g (ORCPT ); Tue, 13 Mar 2018 12:29:36 -0400 Received: by mail-pg0-f65.google.com with SMTP id m15so85250pgc.1 for ; Tue, 13 Mar 2018 09:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=5y46l69kOT2kYhEnbPoMo6ghhWA9K3lw//D6Xm1I4hs=; b=SB8YMoOqSONaEb4BTH425tVfzJbxVMu9/gfwpzUd8NWWr1kt4i2M51Zbwaf7ySgWSA aL+8MD5HDXbD5kYMfV1c8MSw78Uh9O+69eUhTB1woqEM6kCnGfh4azt8yAdxV10Th227 zSnNzUkKu0e18efbI5EtZ17gGL/hwzjTa+vB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=5y46l69kOT2kYhEnbPoMo6ghhWA9K3lw//D6Xm1I4hs=; b=FYk8YYh7lqjpJ2ziHPSzCix7TiBIKUWfHpxTaNxKhT5Vmgrlj+b6o4asn9e30Ox3eK W6AH+C5I3OX57jhTsg70FNRC1ezHvNZXvGIUNuOWm1kUSr393we3RIX9Hlu3J8GlopNv Gk0DIEy0Vtgy+IjZq7ymWJAegF8Yt2/L/KyEp5n0M5Kj/NpwzO8BrHqq4mZDHD/y5555 EOLiIooOn3n0kmTsgB8AG7PvmvUYhvzvz7rhhjOk4L5O7QD4A/AmxWlcj78QOYKY9GvK G9bnfspXi/1sY8qUKfzFUCvaQlBCxy//h0qYg+YVOnmKPKjTdYyOkmqYcta+5BP50meg dLTg== X-Gm-Message-State: AElRT7FayrWrHvFHqH2xstWfDINVVfa2JvxVQ7Enbs6yNCT+8mqTy6BL 0Xa2GF0EYlaF50ug7p3bIW6cTUQqRUk= X-Received: by 10.98.211.198 with SMTP id z67mr1221216pfk.0.1520958576315; Tue, 13 Mar 2018 09:29:36 -0700 (PDT) Received: from [10.69.49.71] ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id o5sm1184897pfh.51.2018.03.13.09.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 09:29:35 -0700 (PDT) Subject: Re: [PATCH][next] scsi: lpfc: make several unions static, fix non-ANSI prototype To: Colin King , Dick Kennedy , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180313120849.30128-1-colin.king@canonical.com> From: James Smart Message-ID: <566b5646-80a8-bca3-5f35-d78a97960ed2@broadcom.com> Date: Tue, 13 Mar 2018 09:29:34 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180313120849.30128-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/13/2018 5:08 AM, Colin King wrote: > From: Colin Ian King > > There are several unions that are local to the source and do not need > to be in global scope, so make them static. Also add in a missing void > parameter to functions lpfc_nvme_cmd_template and > lpfc_nvmet_cmd_template to clean up non-ANSI warning. > > Cleans up sparse warnings: > drivers/scsi/lpfc/lpfc_nvme.c:68:19: warning: symbol > 'lpfc_iread_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvme.c:69:19: warning: symbol > 'lpfc_iwrite_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvme.c:70:19: warning: symbol > 'lpfc_icmnd_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvme.c:74:24: warning: non-ANSI function > 'lpfc_tsend_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvmet.c:78:19: warning: symbol > 'lpfc_treceive_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvmet.c:79:19: warning: symbol > 'lpfc_trsp_cmd_template' was not declared. Should it be static? > drivers/scsi/lpfc/lpfc_nvmet.c:83:25: warning: non-ANSI function > declaration of function 'lpfc_nvmet_cmd_template' > > Signed-off-by: Colin Ian King > --- > drivers/scsi/lpfc/lpfc_nvme.c | 8 ++++---- > drivers/scsi/lpfc/lpfc_nvmet.c | 8 ++++---- > 2 files changed, 8 insertions(+), 8 deletions(-) > > Signed-off-by:   James Smart