Message ID | 1502040240-6867-1-git-send-email-bhumirks@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 40F2F60364 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 7 Aug 2017 07:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3692C285A2 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 7 Aug 2017 07:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A36D285A9; Mon, 7 Aug 2017 07:12:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B16E2285A2 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 7 Aug 2017 07:12:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3397A13A45; Mon, 7 Aug 2017 07:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3397A13A45 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3397A13A45 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j+pRlwBL" Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D40527E661; Mon, 7 Aug 2017 07:12:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1A58A1805974; Mon, 7 Aug 2017 07:12:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v76HOIJt005661 for <dm-devel@listman.util.phx.redhat.com>; Sun, 6 Aug 2017 13:24:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id ED7F077ED4; Sun, 6 Aug 2017 17:24:18 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3AB2917BB1; Sun, 6 Aug 2017 17:24:15 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D830859FA; Sun, 6 Aug 2017 17:24:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1D830859FA Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bhumirks@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 1D830859FA Received: by mail-pf0-f195.google.com with SMTP id j68so6878061pfc.2; Sun, 06 Aug 2017 10:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WZ8U2fX4V24pZYkDyMbpan1AwM8sZE+W5LiVlcB0ejw=; b=j+pRlwBLd0BXsQBPJKrVDrCJY+dvQ51H5EXVnHPlJg6tdq3+LpJYTS0PHKpn1eRfOY HuYGxARMZjDp920ZYGbmtAHQQEhV2JpYzgDv6x5ALUXoeSS0piIpoNaURcXbpr1EHteT rlqmIpiXJxtutWPmENsgX48V1jtVcK/X0qlrFAS08eNCg0R11YMHBQP/WXNoMpfqkDr9 SJRBwtz3Mp8I4kL6WQ4LEmR41416U3aID1IDHeMKUi9iXfVzvjssbN6gkhkxPEWRpgY1 qqGXiR16f4y7XJllK9E5YM2LTpLhtz4jGqYzAl7pP9iRe+TNB/ZTW4WAM1uMrrtFyc9a E1Dg== 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; bh=WZ8U2fX4V24pZYkDyMbpan1AwM8sZE+W5LiVlcB0ejw=; b=Ii+ggxHCvCmi8LIfx6y2RC5yDBBSeEa7q1Isue9IIsY8JyRlpMc4zI0W4ZcDYmgOmo 3tBPL94SKxLT/AyFsDfetAPqNMm9EG6ABFXacZCuIX0fwv7nuc87vfOCv8ny88kxCcVh 2Fb7RJPxozsjVUtbTWYSRet6Wg+kYNy16TOCiXg67GSdNuiiVNwlcmgPdNyzB1EB19hK Qyvh/5x5SucVt/Y+bDldZpPIQ1lgCt4NKGfVXZA5OIfpP8yuBHxIUvwhpvhp9lx04G1F TDk398aTGbZ5BpgRAhGU4p3SBYP5sOyttoMGKNHnONXrYfjl6++MkDOzBxYZgwR0sfdb FMXw== X-Gm-Message-State: AIVw111iTYQwuYoSgQFk4gw1h0AQHfu57YvD0otvtiwhO4xKDddmPCrQ wTojeuWeEtyU5A== X-Received: by 10.99.37.6 with SMTP id l6mr8762117pgl.407.1502040253508; Sun, 06 Aug 2017 10:24:13 -0700 (PDT) Received: from gmail.com ([117.196.205.59]) by smtp.gmail.com with ESMTPSA id v19sm8834879pgc.93.2017.08.06.10.24.09 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 06 Aug 2017 10:24:13 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sun, 06 Aug 2017 22:54:06 +0530 From: Bhumika Goyal <bhumirks@gmail.com> To: julia.lawall@lip6.fr, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, shli@kernel.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 6 Aug 2017 22:54:00 +0530 Message-Id: <1502040240-6867-1-git-send-email-bhumirks@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 06 Aug 2017 17:24:14 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 06 Aug 2017 17:24:14 +0000 (UTC) for IP:'209.85.192.195' DOMAIN:'mail-pf0-f195.google.com' HELO:'mail-pf0-f195.google.com' FROM:'bhumirks@gmail.com' RCPT:'' X-RedHat-Spam-Score: -2.41 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.192.195 mail-pf0-f195.google.com 209.85.192.195 mail-pf0-f195.google.com <bhumirks@gmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 07 Aug 2017 03:12:11 -0400 Cc: Bhumika Goyal <bhumirks@gmail.com> Subject: [dm-devel] [PATCH] dm integrity: make blk_integrity_profile structure const X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 07 Aug 2017 07:12:36 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 293a196..e522a94 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -299,7 +299,7 @@ static void __DEBUG_bytes(__u8 *bytes, size_t len, const char *msg, ...) /* * DM Integrity profile, protection is performed layer above (dm-crypt) */ -static struct blk_integrity_profile dm_integrity_profile = { +static const struct blk_integrity_profile dm_integrity_profile = { .name = "DM-DIF-EXT-TAG", .generate_fn = NULL, .verify_fn = NULL,
Make this structure const as it is only stored in the profile field of a blk_integrity structure. This field is of type const, so make structure as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> --- drivers/md/dm-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)