diff for duplicates of <20131202185931.GA1992@ls3530.box> diff --git a/a/1.txt b/N1/1.txt index 9efd045..d82399c 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,27 +1,41 @@ -When compiling a 32bit kernel with CONFIG_LBDAF=n the compiler complains like -shown below. Fix this warning by instead using sector_div() which is provided +When compiling a 32bit kernel with CONFIG_LBDAF=3Dn the compiler compla= +ins like +shown below. Fix this warning by instead using sector_div() which is p= +rovided by the kernel.h header file. - -fs/nfs/blocklayout/extents.c: In function ‘normalize’: -include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast [enabled by default] -fs/nfs/blocklayout/extents.c:47:13: note: in expansion of macro ‘do_div’ -nfs/blocklayout/extents.c:47:2: warning: right shift count >= width of type [enabled by default] -fs/nfs/blocklayout/extents.c:47:2: warning: passing argument 1 of ‘__div64_32’ from incompatible pointer type [enabled by default] -include/asm-generic/div64.h:35:17: note: expected ‘uint64_t *’ but argument is of type ‘sector_t *’ +=20 +fs/nfs/blocklayout/extents.c: In function =E2=80=98normalize=E2=80=99: +include/asm-generic/div64.h:43:28: warning: comparison of distinct poin= +ter types lacks a cast [enabled by default] +fs/nfs/blocklayout/extents.c:47:13: note: in expansion of macro =E2=80=98= +do_div=E2=80=99 +nfs/blocklayout/extents.c:47:2: warning: right shift count >=3D width o= +f type [enabled by default] +fs/nfs/blocklayout/extents.c:47:2: warning: passing argument 1 of =E2=80= +=98__div64_32=E2=80=99 from incompatible pointer type [enabled by defau= +lt] +include/asm-generic/div64.h:35:17: note: expected =E2=80=98uint64_t *=E2= +=80=99 but argument is of type =E2=80=98sector_t *=E2=80=99 extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor); Signed-off-by: Helge Deller <deller@gmx.de> -diff --git a/fs/nfs/blocklayout/extents.c b/fs/nfs/blocklayout/extents.c +diff --git a/fs/nfs/blocklayout/extents.c b/fs/nfs/blocklayout/extents.= +c index 9c3e117..4d01614 100644 --- a/fs/nfs/blocklayout/extents.c +++ b/fs/nfs/blocklayout/extents.c @@ -44,7 +44,7 @@ static inline sector_t normalize(sector_t s, int base) { - sector_t tmp = s; /* Since do_div modifies its argument */ + sector_t tmp =3D s; /* Since do_div modifies its argument */ - return s - do_div(tmp, base); + return s - sector_div(tmp, base); } - +=20 static inline sector_t normalize_up(sector_t s, int base) +-- +To unsubscribe from this list: send the line "unsubscribe linux-parisc"= + in +the body of a message to majordomo@vger.kernel.org +More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/a/content_digest b/N1/content_digest index dbec942..8caca15 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -6,32 +6,46 @@ " linux-parisc@vger.kernel.org\0" "\00:1\0" "b\0" - "When compiling a 32bit kernel with CONFIG_LBDAF=n the compiler complains like\n" - "shown below. Fix this warning by instead using sector_div() which is provided\n" + "When compiling a 32bit kernel with CONFIG_LBDAF=3Dn the compiler compla=\n" + "ins like\n" + "shown below. Fix this warning by instead using sector_div() which is p=\n" + "rovided\n" "by the kernel.h header file.\n" - " \n" - "fs/nfs/blocklayout/extents.c: In function \342\200\230normalize\342\200\231:\n" - "include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast [enabled by default]\n" - "fs/nfs/blocklayout/extents.c:47:13: note: in expansion of macro \342\200\230do_div\342\200\231\n" - "nfs/blocklayout/extents.c:47:2: warning: right shift count >= width of type [enabled by default]\n" - "fs/nfs/blocklayout/extents.c:47:2: warning: passing argument 1 of \342\200\230__div64_32\342\200\231 from incompatible pointer type [enabled by default]\n" - "include/asm-generic/div64.h:35:17: note: expected \342\200\230uint64_t *\342\200\231 but argument is of type \342\200\230sector_t *\342\200\231\n" + "=20\n" + "fs/nfs/blocklayout/extents.c: In function =E2=80=98normalize=E2=80=99:\n" + "include/asm-generic/div64.h:43:28: warning: comparison of distinct poin=\n" + "ter types lacks a cast [enabled by default]\n" + "fs/nfs/blocklayout/extents.c:47:13: note: in expansion of macro =E2=80=98=\n" + "do_div=E2=80=99\n" + "nfs/blocklayout/extents.c:47:2: warning: right shift count >=3D width o=\n" + "f type [enabled by default]\n" + "fs/nfs/blocklayout/extents.c:47:2: warning: passing argument 1 of =E2=80=\n" + "=98__div64_32=E2=80=99 from incompatible pointer type [enabled by defau=\n" + "lt]\n" + "include/asm-generic/div64.h:35:17: note: expected =E2=80=98uint64_t *=E2=\n" + "=80=99 but argument is of type =E2=80=98sector_t *=E2=80=99\n" " extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);\n" "\n" "Signed-off-by: Helge Deller <deller@gmx.de>\n" "\n" - "diff --git a/fs/nfs/blocklayout/extents.c b/fs/nfs/blocklayout/extents.c\n" + "diff --git a/fs/nfs/blocklayout/extents.c b/fs/nfs/blocklayout/extents.=\n" + "c\n" "index 9c3e117..4d01614 100644\n" "--- a/fs/nfs/blocklayout/extents.c\n" "+++ b/fs/nfs/blocklayout/extents.c\n" "@@ -44,7 +44,7 @@\n" " static inline sector_t normalize(sector_t s, int base)\n" " {\n" - " \tsector_t tmp = s; /* Since do_div modifies its argument */\n" + " \tsector_t tmp =3D s; /* Since do_div modifies its argument */\n" "-\treturn s - do_div(tmp, base);\n" "+\treturn s - sector_div(tmp, base);\n" " }\n" - " \n" - static inline sector_t normalize_up(sector_t s, int base) + "=20\n" + " static inline sector_t normalize_up(sector_t s, int base)\n" + "--\n" + "To unsubscribe from this list: send the line \"unsubscribe linux-parisc\"=\n" + " in\n" + "the body of a message to majordomo@vger.kernel.org\n" + More majordomo info at http://vger.kernel.org/majordomo-info.html -ff5ea687d72dcfb0dba3bc657edfa76beca08841d352413202be3c984a78de29 +72d074793783938f16a38fdcf3916e0d1051cf691c3a9fbf3af20ea2ed753e12
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.