Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1490344imc; Sun, 17 Mar 2019 16:10:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoGl6Umrc+LHV6Zfwnc6+Ka19BG2IBLVBYRoSCppYPrGEFYJwFatoGChCnwPIm244eue1N X-Received: by 2002:a17:902:f095:: with SMTP id go21mr16317231plb.199.1552864217161; Sun, 17 Mar 2019 16:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552864217; cv=none; d=google.com; s=arc-20160816; b=VjDOsvKomX1R/V9gfEeZ1to0JQCOUlY6KICi7f4tMD4qyKWPVhohHQZOyTDg1La7KM e04Jmsg4KenKpK/dS4qRAN76hwQIN3IS2wupQ9eyd6yERsAlP+xO7meYosu+X1OmcjFf 1Z7mETbDOmYjFpOj8MwuyfP5kh87PixtdzAsVhIABUjQx0qnZlF3CCIjjWpb1Qt1QVJK Rr2JZs3E9PmukmCUHo2RcgUV+K5BAjXmay3dZCwRhPhlfMucXsagdaCwLcsLqb0ip9ZU XY6nkTB6Rq0CkCIa/a+g1nlx6PsA73s3s7rOkj/WrrUk9qZkJ7Z0GM0TVgU5pySpAXWH ffwQ== 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 :message-id:date:subject:cc:to:from; bh=902zaxdAhD9tm4Y7DLDy7bRpdDlmo05+HKQMMVC0TfM=; b=zAznxF9OSZoq7nLtav9HB0LqAf605d0hn0kCvSnBJbIb8Fc+fiG37b7EkYJDr7Dftd 85BCsE/DxNt+axcmS5nvQ3/FMCvnmPwPE2oPG+CGMKs+IkIHw9hJ7LF1ZVFZ8EMcMsso 1WdwtueKZmFV0Bk+klxxX4jIqvghQVUFNdDmielScHjm/eJQZGdcKih5PGOnOD3F3lao /OtTlJnuN0ONfOqdkQU8oZ9nFP+Jo1OxUZRK/J7cixapEC6z6+sK7A/rR0IykU2xIE3Z G3Ivxpt67s+sqA2iJjbax4U47WfGgkL7e+Rx6YaAe3XSfnGs39gEAS68/NbO0EVvJLeh x08A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si7334695pgv.70.2019.03.17.16.10.01; Sun, 17 Mar 2019 16:10:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727534AbfCQXJS (ORCPT + 99 others); Sun, 17 Mar 2019 19:09:18 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:55271 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbfCQXJS (ORCPT ); Sun, 17 Mar 2019 19:09:18 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1h5etx-0006Eq-WF; Sun, 17 Mar 2019 23:09:10 +0000 From: Colin King To: Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hostfs: fix mismatch between link_file definition and declaration Date: Sun, 17 Mar 2019 23:09:09 +0000 Message-Id: <20190317230909.7373-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The function link_file declaration in the header file has the order of the two arguments (from, to) swapped when compared to the definition arguments of (to, from). Fix this by swapping them around to match the definition. This error predates the git history, so no idea when this error was introduced. Signed-off-by: Colin Ian King --- fs/hostfs/hostfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index 33b8423ef0c9..f4295aa19350 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h @@ -87,7 +87,7 @@ extern int do_mkdir(const char *file, int mode); extern int hostfs_do_rmdir(const char *file); extern int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor); -extern int link_file(const char *from, const char *to); +extern int link_file(const char *to, const char *from); extern int hostfs_do_readlink(char *file, char *buf, int size); extern int rename_file(char *from, char *to); extern int rename2_file(char *from, char *to, unsigned int flags); -- 2.20.1