Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3473728pxb; Tue, 19 Apr 2022 03:28:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjA4Di4P9ipAvoak89b/THpFqFBck9m/DI+S5V98pOjwV2fn4OVxuq7KsbHZ9ATW2Yr/Sv X-Received: by 2002:a17:90b:4c8f:b0:1d2:90e4:26ef with SMTP id my15-20020a17090b4c8f00b001d290e426efmr10861586pjb.120.1650364080800; Tue, 19 Apr 2022 03:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650364080; cv=none; d=google.com; s=arc-20160816; b=kbDEJYpLjpIHb7+GfNQt/t7oNSwr6R3j7AfD77zI+EdotkS7sJPGBB47uSaMCZLCLj WkFaVXevjJhmZbKUI2RbJjv93qhOh5dc6+Q2h7+wVx/hNK1qtjCT0W1FacMOCcz1Mq5Q IY4eGAaIiOH3Jfi8X8CaYWN1bS+9cHBQGRL/8YmJz5P6BYDh5iJj/UqyB+EzB4mWhDfn DnKrznmI1GskYLmVWclXqgpHDmEZybBhSENPdOZdDNw8ScTm7mdl6W0VA81uoECRY4AZ 3rFJCWnfUQUpOfY580nWCam+hcL0o0kvCYFTqNuvwERraF3QpcC5MjTTLWaTiGP0eJ68 S8AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=myJJelebcRN8s1aVB7vQrt7wfdTd9Sa8rzRaCAGpRdI=; b=aG48dET921FfttKAgaMKVGWbij4IO3Xu+l5sebiv4vo7c4xhdwbTDYyyD64jr/va6x zyJ5UTzso24/4ZFmPorkLE4uigiSbEtT243vPYL7czVt1RIIIGyFqp0lCb7nbNoT3I+G a4paRvMzW7qRIfezEdLEe5jR5F3UyqEPp/CuWxxTiOkOVWXcwcjrQqkrH1qkk/rSEiI2 nlgN4pJqq2k4JlpBWMg+ReZA8jPr8AH3EHpTobnUbN6SbYv9Ju3+9IrqSD67KhkqHFw8 e/iMWNEvMiaOKSPAx1sdjQ1WGCyjUIAy79//biTwFu0vfcRLA7lXLLy4qOzYaLaz0/iZ xVcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a056a00130c00b0050a8e9acae6si2758934pfu.102.2022.04.19.03.27.44; Tue, 19 Apr 2022 03:28:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236526AbiDRPvD (ORCPT + 99 others); Mon, 18 Apr 2022 11:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345887AbiDRPtu (ORCPT ); Mon, 18 Apr 2022 11:49:50 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3545E101C8; Mon, 18 Apr 2022 08:28:05 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 92BB792009E; Mon, 18 Apr 2022 17:28:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 8BB2992009C; Mon, 18 Apr 2022 16:28:04 +0100 (BST) Date: Mon, 18 Apr 2022 16:28:04 +0100 (BST) From: "Maciej W. Rozycki" To: Andy Shevchenko cc: Greg Kroah-Hartman , Jiri Slaby , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List Subject: Re: [PATCH v4 3/5] serial: 8250: Export ICR access helpers for internal use In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Apr 2022, Andy Shevchenko wrote: > > Index: linux-macro/drivers/tty/serial/8250/8250.h > > =================================================================== > > --- linux-macro.orig/drivers/tty/serial/8250/8250.h > > +++ linux-macro/drivers/tty/serial/8250/8250.h > > @@ -120,6 +120,29 @@ static inline void serial_out(struct uar > > up->port.serial_out(&up->port, offset, value); > > } > > > > +/* > > + * For the 16C950 > > + */ > > +static void __maybe_unused serial_icr_write(struct uart_8250_port *up, > > + int offset, int value) > > I think you may drop __maybe_unused here, because it's always used by > the code below. So it will be eliminated altogether when the below > won't be used. Right, the absence of this annotation doesn't cause GCC to complain about sources that define this function but do not make use of it, so I have removed the atttribute in v5. Maciej