Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp417795imu; Fri, 7 Dec 2018 03:17:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/UujW94AmiaSCNBLJhrTIQjx6Lnz5TWDGHzm28jX1D7fX1ZSlqPnN+JkV3y+3qd0mO86ox+ X-Received: by 2002:a63:ce50:: with SMTP id r16mr1546842pgi.217.1544181450303; Fri, 07 Dec 2018 03:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544181450; cv=none; d=google.com; s=arc-20160816; b=oi8bi1rBSXlC8DlZPqc+s0uUH4YBXQ2ZnXl3k3pdJiTIS9JraWCOy68gyJ3Oa8MYks VD7Wp3sSLRAl3iLnAWSL9dPZUNUOlnHd5FqyyLRl/v/LugedSeMOfTC0z+NUB/OR0MDH ONCym3v3B79ug6hWRU9oQ6NaDIGgaAGqJreyyR6X/yGMQUR7p9pnDfb2jp8F5b+TuL8O ah/JZQP/88d61HH+f+tff2MQeu3oanxJU7YqIJO4UkRDP3HOpvjpo3Tl+juadd6BUGlo +XKfepQFR8Rjg4f3u9Sg95sc3obLsjqTmN44vhOyjYXmAB4sKrP1YrsY/h06tu6G0MyU h0vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=jBopewkriZtVz7hJkl/8sLOKOZMJdngLvbfwsYMXz4w=; b=AbKOZKuP9cW+CHv+TrMY/4HUngp5FCFbv3oLiOCZ4eSFn0fmj3rO0KPc8a0qRP5dk6 6ezpLUIAluXLPTh1LjbwF6dX+tZywFAIPMsHZxDz7oaNAOqO0DDX0W6QmACVbdnEgwpo eAkBq5SkeckC2kSAHpUlAS1DFJO+jPgCNJMov8tYeRPkf+gpqZiJg1cqq/4YeqT5sTIF l2n+ATyZ1My9kXP0MeM2cRtIjBJ13i/uMC3gLHnJ6Gj4P0T3bFspk/KtlyDzI1Yf0lIS /wiBwM/7DxV5XDy18Dw7xGjzlduj6AdENZbEQJGTdSj0uZ4wARWN6ZT8dd4R++fyMpf0 BY5g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si2879859plk.206.2018.12.07.03.17.15; Fri, 07 Dec 2018 03:17:30 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726130AbeLGLPW (ORCPT + 99 others); Fri, 7 Dec 2018 06:15:22 -0500 Received: from ozlabs.org ([203.11.71.1]:45329 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbeLGLPW (ORCPT ); Fri, 7 Dec 2018 06:15:22 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43B8yV2KbGz9s47; Fri, 7 Dec 2018 22:15:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Christophe Leroy , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Yoshinori Sato , Richard Kuo , Michal Simek , Ralf Baechle , Paul Burton , James Hogan , Ley Foon Tan , Benjamin Herrenschmidt , Paul Mackerras , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Jason Wessel , Daniel Thompson , "GitAuthor\: Christophe Leroy" , Douglas Anderson , Randy Dunlap , "Gustavo A. R. Silva" Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger.kernel.org, linux-mips@vger.kernel.org, nios2-dev@lists.rocketboards.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, kgdb-bugreport@lists.sourceforge.net Subject: Re: [PATCH v2 2/2] kgdb/treewide: constify struct kgdb_arch arch_kgdb_ops In-Reply-To: <5e130b11680be09537913aae9649c84ede763ec8.1544083483.git.christophe.leroy@c-s.fr> References: <030d63848e4b0ef4d76ca24597ab8302a393d692.1544083483.git.christophe.leroy@c-s.fr> <5e130b11680be09537913aae9649c84ede763ec8.1544083483.git.christophe.leroy@c-s.fr> Date: Fri, 07 Dec 2018 22:15:14 +1100 Message-ID: <87va45k2pp.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > checkpatch.pl reports the following: > > WARNING: struct kgdb_arch should normally be const > #28: FILE: arch/mips/kernel/kgdb.c:397: > +struct kgdb_arch arch_kgdb_ops = { > > This report makes sense, as all other ops struct, this > one should also be const. This patch does the change. ... > diff --git a/arch/powerpc/kernel/kgdb.c b/arch/powerpc/kernel/kgdb.c > index 59c578f865aa..bdb588b1d8fb 100644 > --- a/arch/powerpc/kernel/kgdb.c > +++ b/arch/powerpc/kernel/kgdb.c > @@ -477,7 +477,7 @@ int kgdb_arch_remove_breakpoint(struct kgdb_bkpt *bpt) > /* > * Global data > */ > -struct kgdb_arch arch_kgdb_ops; > +const struct kgdb_arch arch_kgdb_ops; > > static int kgdb_not_implemented(struct pt_regs *regs) > { Acked-by: Michael Ellerman (powerpc) cheers