Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3486615pxb; Mon, 4 Apr 2022 18:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvMx6GPXrKAPUIyYTAOqF6awkRj7nn7kMgaxJin6EWEtz2NU6wYvSkGr7k2OSM0vKQk0eA X-Received: by 2002:a63:d64d:0:b0:374:6edc:989c with SMTP id d13-20020a63d64d000000b003746edc989cmr836692pgj.434.1649122328850; Mon, 04 Apr 2022 18:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649122328; cv=none; d=google.com; s=arc-20160816; b=nNDlc5Nu6UU4ZNxNo2LWrb3x8dArTq43alpalDDDACfKEgfBHRQJ9yHBFrvfYJrojJ OG2TXBNw9cNNwmbXmMOgHIy/Y1TT5HF0QAxYHVhxuBu21dlsG75zUHO4VTcZSLWBb6oP ATPC86p/5C7Hz+Td5TXoSgg2oliQw7rRB0HJa4SsS/xyvEIFm2wZ+RqRKc/tYOlhv9hX bjWsw/Ycs4k5yghLdjs+lmqZWnhEpn3AOz+YUMQ4IG1dW1DpBdqgE/PN22u7d7IlEaqs 0jQdtL64EjqEuLshixqPp7o15b2r9NMyPvRKBDerZcTQa0O2V78FsORnx/qBoEGN7wV2 P6/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=fj+wd/2v6FRkr034Acv8LZELXHqGPrWGbj+tFgFbubY=; b=Wu6uYsFthDMOX2hHgTXdpa8xDXUk18a64aFLzhEx+An8g/EN7i/P+XNZJbOQ1r0sC4 rxrsk5ORmk4F7X/W6I6kmMP4CC2pGq5xjvE8aRdq3rHoaNz8S+8uLD36ZddQ9cWoAiWR qigGIljkQlV+ORRcVZM6NsIBoL6PSx8el6XOiNZLr/dqGKSUT8rW3B2hI42IYGLxVAgZ oqalDiMr4vg05+KBPypwDf9JSbT5Ep30h/pNBbF2RZCFvRJOBEokj5AsXIsSi5Hl5aQL gjRDTubU9Y/fuQ30j71KKAnRRhes55vPoXLWS+Zc2tMvExmAqXy5SnuYvbWdSTDwPPJD Hcsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kaOgw6HG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=27WJJ7ig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ob6-20020a17090b390600b001c9986bb739si757241pjb.32.2022.04.04.18.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kaOgw6HG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=27WJJ7ig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 09B021D59C5; Mon, 4 Apr 2022 17:22:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377367AbiDDFx0 (ORCPT + 99 others); Mon, 4 Apr 2022 01:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377383AbiDDFxU (ORCPT ); Mon, 4 Apr 2022 01:53:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2717C326F6; Sun, 3 Apr 2022 22:51:24 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 913F11F383; Mon, 4 Apr 2022 05:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1649051483; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fj+wd/2v6FRkr034Acv8LZELXHqGPrWGbj+tFgFbubY=; b=kaOgw6HGtvpDqeWH1CKjqQSi72DzrDVnoF0CU0UPZCWT+QQk5UOrMBokL0Cgka8ERVtZjj 877I1qwDxQTVgsRC4IVE2UmU2+sJrkD6NpzSOVCppOQ8kOon32713rD6+VNTIx2rtvR/Ew nQQ/KTOILjB3Rmh8jgBCWofXDqNlv5I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1649051483; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fj+wd/2v6FRkr034Acv8LZELXHqGPrWGbj+tFgFbubY=; b=27WJJ7igCjs3DXe7ttPbMZkzDZsf7bC3ueDeKiASacGR5LNYofIYb5e4rLTM/rjIhMNllA jzRyDzTO8KbZlYAA== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 583A1A3B82; Mon, 4 Apr 2022 05:51:23 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Linus Torvalds , Guenter Roeck Subject: [PATCH] tty: serial: mpc52xx_uart: make rx/tx hooks return unsigned, part II. Date: Mon, 4 Apr 2022 07:51:22 +0200 Message-Id: <20220404055122.31194-1-jslaby@suse.cz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The below commit changed types of some hooks in struct psc_ops. It also changed the types of the functions which are referenced in the instances of the above struct. However the commit did so only for CONFIG_PPC_MPC52xx, but not for CONFIG_PPC_MPC512x. This results in build errors like: mpc52xx_uart.c:static unsigned int mpc52xx_psc_raw_tx_rdy(struct uart_port *port) mpc52xx_uart.c:static int mpc512x_psc_raw_tx_rdy(struct uart_port *port) ^^^ mpc52xx_uart.c:static int mpc5125_psc_raw_tx_rdy(struct uart_port *port) ^^^ Therefore, fix the latter case now too. Cc: Linus Torvalds Reported-by: Guenter Roeck Fixes: 18662a1d8f35 (tty: serial: mpc52xx_uart: make rx/tx hooks return unsigned) Signed-off-by: Jiri Slaby --- drivers/tty/serial/mpc52xx_uart.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index 8a6958377764..3acc0f185762 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c @@ -436,31 +436,31 @@ static void mpc512x_psc_fifo_init(struct uart_port *port) out_be32(&FIFO_512x(port)->rximr, MPC512x_PSC_FIFO_ALARM); } -static int mpc512x_psc_raw_rx_rdy(struct uart_port *port) +static unsigned int mpc512x_psc_raw_rx_rdy(struct uart_port *port) { return !(in_be32(&FIFO_512x(port)->rxsr) & MPC512x_PSC_FIFO_EMPTY); } -static int mpc512x_psc_raw_tx_rdy(struct uart_port *port) +static unsigned int mpc512x_psc_raw_tx_rdy(struct uart_port *port) { return !(in_be32(&FIFO_512x(port)->txsr) & MPC512x_PSC_FIFO_FULL); } -static int mpc512x_psc_rx_rdy(struct uart_port *port) +static unsigned int mpc512x_psc_rx_rdy(struct uart_port *port) { return in_be32(&FIFO_512x(port)->rxsr) & in_be32(&FIFO_512x(port)->rximr) & MPC512x_PSC_FIFO_ALARM; } -static int mpc512x_psc_tx_rdy(struct uart_port *port) +static unsigned int mpc512x_psc_tx_rdy(struct uart_port *port) { return in_be32(&FIFO_512x(port)->txsr) & in_be32(&FIFO_512x(port)->tximr) & MPC512x_PSC_FIFO_ALARM; } -static int mpc512x_psc_tx_empty(struct uart_port *port) +static unsigned int mpc512x_psc_tx_empty(struct uart_port *port) { return in_be32(&FIFO_512x(port)->txsr) & MPC512x_PSC_FIFO_EMPTY; @@ -780,29 +780,29 @@ static void mpc5125_psc_fifo_init(struct uart_port *port) out_be32(&FIFO_5125(port)->rximr, MPC512x_PSC_FIFO_ALARM); } -static int mpc5125_psc_raw_rx_rdy(struct uart_port *port) +static unsigned int mpc5125_psc_raw_rx_rdy(struct uart_port *port) { return !(in_be32(&FIFO_5125(port)->rxsr) & MPC512x_PSC_FIFO_EMPTY); } -static int mpc5125_psc_raw_tx_rdy(struct uart_port *port) +static unsigned int mpc5125_psc_raw_tx_rdy(struct uart_port *port) { return !(in_be32(&FIFO_5125(port)->txsr) & MPC512x_PSC_FIFO_FULL); } -static int mpc5125_psc_rx_rdy(struct uart_port *port) +static unsigned int mpc5125_psc_rx_rdy(struct uart_port *port) { return in_be32(&FIFO_5125(port)->rxsr) & in_be32(&FIFO_5125(port)->rximr) & MPC512x_PSC_FIFO_ALARM; } -static int mpc5125_psc_tx_rdy(struct uart_port *port) +static unsigned int mpc5125_psc_tx_rdy(struct uart_port *port) { return in_be32(&FIFO_5125(port)->txsr) & in_be32(&FIFO_5125(port)->tximr) & MPC512x_PSC_FIFO_ALARM; } -static int mpc5125_psc_tx_empty(struct uart_port *port) +static unsigned int mpc5125_psc_tx_empty(struct uart_port *port) { return in_be32(&FIFO_5125(port)->txsr) & MPC512x_PSC_FIFO_EMPTY; } -- 2.35.1