From patchwork Fri Aug 18 19:49:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 110437 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1344122qge; Fri, 18 Aug 2017 12:50:42 -0700 (PDT) X-Received: by 10.84.217.20 with SMTP id o20mr6449819pli.460.1503085842817; Fri, 18 Aug 2017 12:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503085842; cv=none; d=google.com; s=arc-20160816; b=OVWen3aVe2NwxDbUywuZFzFBvDPGQYxDcVxHLDyOnX8lrZw6a+6x13V6Cfq1miRgbe PXp+mffsOm4ycHbLbYaB7m7rZU7GhXePt4UGlyZCC5BN094GDZ95G48XIXdxfzQzAdFq psHvp4QW0MBC6Dfi89EOeYpjGnzMVVBpvv8zF4IkeLeA1sLsqyIGyOZBg/+nO3TtAvFV bZTv9RgT/Fmqkqv1Cb6rzNHHWqIlM4UYZivLFM0pEbG3N8srAnKsjsQ0mlln3ZxlcM/2 fwIf+rZxooW0XZqaxoYvbDaV0jKRRGVm1zTXwL6WvKmB3tTdIiqIe714jvwzyLAEy1gB hD0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=XQcVV2uPWKWYAbY23GNmnvtJTDbNp+dAe+biELBbMAY=; b=btxYVp1MKq4KqclOJPOMMTOcqys3z38/iMnQC37juM3/tip3k+rFb0f8CWWxyo/AvN KBuPBxVjFfWrQA2UsWuaaBN2OBQfdZ0VzW8zCLJXlGqrbafvqzpdN8ccq6Eod7nPJ6FZ qtuqr1hbGym3XKro2RnhSKIxlY4+a9Zz7YvRVYfrWuGbJU5ycVapXwvpLfWaLOgXoA3Q kpkyXH8Z3waRxzB/36115ug5zoCJIEGHoxHGgLZY4nxty0AdX2bzC6SQ5xdtJoAiGDHb OCuIuXCq9OPGnz+pZ+fKzLcqSYYTYYcXzjqDElOsMPfrXACiqFH9T+qnQtmoEzrJm2n+ WCbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cz2K9Xic; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si3971707pgr.186.2017.08.18.12.50.42; Fri, 18 Aug 2017 12:50:42 -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=@linaro.org header.s=google header.b=cz2K9Xic; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752661AbdHRTuk (ORCPT + 26 others); Fri, 18 Aug 2017 15:50:40 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37364 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752138AbdHRTuh (ORCPT ); Fri, 18 Aug 2017 15:50:37 -0400 Received: by mail-wm0-f46.google.com with SMTP id i66so7299025wmg.0 for ; Fri, 18 Aug 2017 12:50:37 -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; bh=XQcVV2uPWKWYAbY23GNmnvtJTDbNp+dAe+biELBbMAY=; b=cz2K9XiccfRoJvOOuLwfbnfHsf4C8XC/klBTzNZHlYGmIz4vTcwH5f+MCl56qIvPF5 tytiMNzW3NomgS84WH83/Z1rhfIKAuBjIFmTsy4fzB1TJ65VqKHnmppsko1S1LS9DJNg OWo/GnSADcFNKmfPA1gLBNfMhRCz1agIQK79A= 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; bh=XQcVV2uPWKWYAbY23GNmnvtJTDbNp+dAe+biELBbMAY=; b=P51YgZdn/F5BQlaoRXu826wLDk22dHsqlXqsDCEUb+2edmQv+clpjo4LGVuMshV7NQ cuBUEh/b5XaS3cJ13ufWs5CzjYypw792hhG6tDG2x7GYoTiAzR0xuly4/PW4Q810htXx IhYGvnuid9ZLRyWxdMYZLrkI6acZukjak5MFbA0mjZzVFFT1v+li2LgmCaFC3LGJ4ELV lmqelaDavQGzjD+v6H8KlPFjb2kZ5dTw0YXbLVsBTw3soQQPBlFlvdH9+J1dymfZUnY3 TvMkBVO51Jm25bsP5rqn1dihnLl/yFQ70xhSZVNWupFcl2ieI3GrFLZ9LJFZi/srC3r8 QUPA== X-Gm-Message-State: AHYfb5gT+j/tsnwSXNp1bdwKacMWNC9LoemygsjLlImf7WRhzGUfnbTG 0fvrW3aebzyTz0Of X-Received: by 10.28.46.197 with SMTP id u188mr1971016wmu.26.1503085836498; Fri, 18 Aug 2017 12:50:36 -0700 (PDT) Received: from localhost.localdomain ([154.146.161.128]) by smtp.gmail.com with ESMTPSA id k29sm5571168wrk.56.2017.08.18.12.50.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 12:50:35 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" Cc: Arvind Yadav , Ard Biesheuvel , linux-kernel@vger.kernel.org, Matt Fleming Subject: [PATCH 14/14] firmware: efi: esrt: constify attribute_group structures. Date: Fri, 18 Aug 2017 20:49:47 +0100 Message-Id: <20170818194947.19347-15-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170818194947.19347-1-ard.biesheuvel@linaro.org> References: <20170818194947.19347-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arvind Yadav attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Cc: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/esrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/firmware/efi/esrt.c b/drivers/firmware/efi/esrt.c index 8554d7aec31c..bd7ed3c1148a 100644 --- a/drivers/firmware/efi/esrt.c +++ b/drivers/firmware/efi/esrt.c @@ -230,7 +230,7 @@ static umode_t esrt_attr_is_visible(struct kobject *kobj, return attr->mode; } -static struct attribute_group esrt_attr_group = { +static const struct attribute_group esrt_attr_group = { .attrs = esrt_attrs, .is_visible = esrt_attr_is_visible, };