From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B08CE384A87E; Mon, 20 Apr 2020 23:08:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B08CE384A87E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587424084; bh=LsRu5iK1akE+uTt7RfmCqBiJjrrFEAfgzgvDJ0CTsHc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QAWn8nSDM30jkR5sLLQcv1m5wIn3JOiYbOJS9ZR1eypM0yREyLBAQ/bNC5Z90qj2D WJm0nUwhdecDxPrBlz6J0kVM4FXQsC1HzFknquhpWKb/jgfX54ojg4hVbCvt0uymL5 V+QjkQ1MNm2F96IJPAdz8notVtE1NFGhYNnzuxLQ= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94382] conflicting function types should show more context Date: Mon, 20 Apr 2020 23:08:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 23:08:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94382 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #1 from David Malcolm --- Beyond simply showing the entire prototype, some other ideas: ./fs/iomap/apply.c:13:1: error: conflicting types for =E2=80=98__iomap_appl= y=E2=80=99 13 | __iomap_apply(struct inode *inode, loff_t pos, loff_t length, unsig= ned flags, 14 | struct iomap *iomap, struct iomap *srcmap, | ------------------- -------------------- | | | | param 5 param 6 15 | const struct iomap_ops *ops, iomap_actor_t actor) | --------------------------- ------------------- | | | | param 7 param 8 In file included from ../fs/iomap/apply.c:9: ../include/linux/iomap.h:152:1: note: previous declaration of =E2=80=98__io= map_apply=E2=80=99 was here 152 | __iomap_apply(struct inode *inode, loff_t pos, loff_t length, unsig= ned flags, 153 | const struct iomap_ops *ops, iomap_actor_t actor, | --------------------------- ------------------- | | | | param 5 param 6 154 | struct iomap *iomap, struct iomap *srcmap); | ------------------- -------------------- | | | | param 7 param 8 note: you've transposed params 5 and 7, and params 6 and 8 But it's probably simplest to just show the full prototype.=