Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1469392imm; Wed, 19 Sep 2018 20:02:29 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbg0y+bpRo5qK/m+mctNmhMsJFN/8Qx23QfSdq0H081Hp6at3OyUT2Pnj67KTI5A7v7tW4q X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr37255765plv.37.1537412549167; Wed, 19 Sep 2018 20:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537412549; cv=none; d=google.com; s=arc-20160816; b=GOrapnpMxiv8229jel5ijRazjlC3nti94rr88SEHt5BJxBI6gkuenDClm1lCwITm8a S/H4r/wnAxP1K22jKFaKeLEyEKnv8UvKRm6VXHP6sQOjBv2T7YuZYdVZQCYrPOoj1r8v h/qTzi1R2n8uoQ29PDY97FsCloYlmx3AD/3qQCA3uuQKPdLE49gP/3i9uaEHG7CsOlvD ECxX7/vmHozlBfsGWZk/GZ22qaQNPFHhl8+gknzoc7fJOibh+HAoPFxUhJLo8cK2oW2f Mui3ESuLLmYmR2TM98h987g9i3CJtrZIBvAQazAZvt7pOQwwUs0hmLqiecCVmW7bZSTz +ZlQ== 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:date:cc:to:from:subject:message-id; bh=TKm9jmROyKSb1guKZnZ8p21RVTfRNXmwyzAfbQKRSmA=; b=MpMs6BfZFBSCyhBB9vP799pi2McAklFU2g0/Co0BkQ1AaxMmJ1yHw1J+/Jw4wdaLBE s62Q/z9u1298RrtH8PhSZwsfAsE4E5H8UaQtIIZQn7CxdehI2wCGca1DVt9fnktqGJPm oA834QEhaDbzTcgovWJv/vwW7pjsLLuu3dk63xsEuM0pVxegX5fBpatbidLIoe7+Pwsd RImmwzqTbg+JxB5H1TLjywm3D++LUsQb6qF71RvXfGtTrOmg49kjjEVysKs68CGgqk49 jO/hshs4/xm3uN9Og+EIDqR68E9yuMH6cUqv8hz8Io0hgrqIJq5F2CM3TOrXUcv8KVoy g8JQ== 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 m64-v6si27312456pfc.17.2018.09.19.20.02.13; Wed, 19 Sep 2018 20:02:29 -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; 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 S1733089AbeITInN (ORCPT + 99 others); Thu, 20 Sep 2018 04:43:13 -0400 Received: from smtprelay0213.hostedemail.com ([216.40.44.213]:33031 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728111AbeITInN (ORCPT ); Thu, 20 Sep 2018 04:43:13 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 8248E180A8135; Thu, 20 Sep 2018 03:02:07 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:2899:3138:3139:3140:3141:3142:3350:3622:3865:3866:3867:3871:3872:3873:4321:5007:6691:10004:10400:10848:11026:11232:11658:11914:12043:12114:12295:12296:12740:12760:12895:13069:13255:13311:13357:13439:14659:14721:21080:21451:21627:30054:30083:30091,0,RBL:66.131.186.64:@perches.com:.lbl8.mailshell.net-62.8.55.145 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:36,LUA_SUMMARY:none X-HE-Tag: bird61_4c9ff76703f49 X-Filterd-Recvd-Size: 1644 Received: from XPS-9350 (modemcable064.186-131-66.mc.videotron.ca [66.131.186.64]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Thu, 20 Sep 2018 03:02:06 +0000 (UTC) Message-ID: <595c96f5adcccd7eab9dc95eb48618981af66d3c.camel@perches.com> Subject: Re: Checkpatch bad Warning (Re: [PATCH] powerpc/kgdb: add kgdb_arch_set/remove_breakpoint()) From: Joe Perches To: Christophe Leroy , Andy Whitcroft Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Wed, 19 Sep 2018 20:02:05 -0700 In-Reply-To: <2f5f572a-a28c-9d17-844b-9e1961febf64@c-s.fr> References: <872199441fd43b05fc1c7d049098ef7c0e83f4c5.1537262646.git.christophe.leroy@c-s.fr> <2f5f572a-a28c-9d17-844b-9e1961febf64@c-s.fr> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-09-18 at 09:33 +0000, Christophe Leroy wrote: > On the below patch, checkpatch reports > > WARNING: struct kgdb_arch should normally be const > #127: FILE: arch/powerpc/kernel/kgdb.c:480: > +struct kgdb_arch arch_kgdb_ops; > > But when I add 'const', I get compilation failure So don't add const. checkpatch is stupid. You are not. _Always_ take checkpatch bleats with very large grains of salt. Perhaps send a patch to remove kgbd_arch from scripts/const_structs.checkpatch as it seems not ever to be const.